New vehicle ID after death. - 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: New vehicle ID after death. (
/showthread.php?tid=610179)
New vehicle ID after death. -
Luicy. - 20.06.2016
How can I get the new vehicle id after it respawns?
I got 8 objects for each police vehicle, but I can't use if model== since it's a admiral, which can be owned by players.
Re: New vehicle ID after death. -
Vince - 20.06.2016
Vehicles that respawn retain their ID. The ID is only lost if the vehicle is explicitly destroyed (DestroyVehicle).
Re: New vehicle ID after death. -
Luicy. - 20.06.2016
Ohh, okay, Thank you.
Re: New vehicle ID after death. -
Luicy. - 20.06.2016
So is this legit?
http://pastebin.com/TVZ4yr1c
Re: New vehicle ID after death. -
XVlaDX - 20.06.2016
Quote:
Originally Posted by Meller
|
Skimmed through it, but yeah it would work.