multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.41k stars 438 forks source link

removeAllGameBuildings doesn't remove the whole map #3607

Open MrSol0 opened 3 months ago

MrSol0 commented 3 months ago

Describe the bug

The issue i'm having is that removeAllGameBuildingscauses some world models such as palm trees ID 710 to not get deleted or the hanger door, or some gates, and even using things such as removeWorldObject in a map file or removeWorldModel doesn't affect these objects left on the map and doesn't delete them, and if you done so before using removeAllGameBuildings they are restored again and not able to be deleted even after you disconnect, the only way to delete them again is exiting the game and connecting again.

1-- This is after deleting the palm trees using removeWorldObject map file.

Capture

2-- This is after using removeAllGameBuildings() for the first time. after the first picture directly

Capture

3- Now the palm trees are permanently not deleteable even after you reconnect, and the only way to delete the palm trees again is after you exit GTA SA game and start it again.

Capture

4- To note this is not just for Palm trees but other world objects too.

Steps to reproduce

1- use removeAllGameBuildings() to delete the whole map 2- this step you can do either after or before, make a map file and this line <removeWorldObject id="removeWorldObject (vgs_palm01) (1)" radius="2000" interior="-1" model="710" lodModel="0" posX="1402.0859" posY="785.11719" posZ="25.54688" rotX="0" rotY="0" rotZ="0"></removeWorldObject> those trees exist in the LV church beside the bridge to LS. and notice how it doesn't get deleted even after you reconnect to the server.

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy