mtasa-blue
                                
                                 mtasa-blue copied to clipboard
                                
                                    mtasa-blue copied to clipboard
                            
                            
                            
                        createWater doesn't work
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
- Make simple createWater script
- Start resource - water will (probably) create
- 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.
Any code to reproduce? any resource?
https://pastebin.com/JdDtUGmU
I can't reproduce this issue. Did you try your code on a default server?
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.
Unable to reproduce.