mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

createWater doesn't work

Open borsuczyna opened this issue 3 years ago • 4 comments

Describe the bug

createWater doesn't work at all when resource is restarted, it works only when resource is already started and you join server or any water wasn't created yet

Steps to reproduce

  1. Make simple createWater script
  2. Start resource - water will (probably) create
  3. Restart resource - water will not create

Version

Client: 1.5.9-release-21140

Additional context

No response

Relevant log output

No response

Security Policy

  • [X] I have read and understood the Security Policy and this issue is not security related.

borsuczyna avatar Apr 23 '22 17:04 borsuczyna

Any code to reproduce? any resource?

CrosRoad95 avatar Apr 23 '22 18:04 CrosRoad95

https://pastebin.com/JdDtUGmU

borsuczyna avatar Apr 24 '22 10:04 borsuczyna

I can't reproduce this issue. Did you try your code on a default server?

PlatinMTA avatar Apr 24 '22 22:04 PlatinMTA

Don't know why you set the position of the water elements to the same coords again but okay. Works fine for me, might be a dimension issue? Try to add setElementDimension(water, getElementDimension(localPlayer)) to your script or check if player and water elements are in same interior/dimension.

ffsPLASMA avatar May 02 '22 14:05 ffsPLASMA

Unable to reproduce.

patrikjuvonen avatar Apr 10 '23 16:04 patrikjuvonen