SA-MP Forums Archive
Objects - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Objects (/showthread.php?tid=548173)



Objects - BoU3A - 28.11.2014

How to give my objects id so i can destroy them by id sorry for my english


Re: Objects - AIped - 28.11.2014

You need to find the objects id in a map editor because you also need the coordinates of where that object
is located.
Then you can use the RemoveBuildingForPlayerFunction in your script.


Re: Objects - Jonesy96 - 28.11.2014

If you need to remove an object that is there from GTA SA itself then do it as AIped post above.

If it's an object you've created in the script then you can do this:

Код:
myobject = CreateDynamicObject(2780, 2465.7588,-1690.2830,13.5115, 0.0, 0.0, 0.0, 100);