DestroyVehicle question - 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: DestroyVehicle question (
/showthread.php?tid=339699)
DestroyVehicle question -
Typhome - 04.05.2012
Hello,
Like as example:
Vehicle ID is 100 and destroying that vehicle using DestroyVehicle(100); then i create vehicle again, then vehicle ID will be same 100 (Before this vehicle ID was destroyed) vehicle? Or it will generates new ID like 101?
Re: DestroyVehicle question -
MP2 - 04.05.2012
Created vehicles take the lowest available slot, so yes it will be the same ID unless you create another vehicle before.
Re: DestroyVehicle question -
admantis - 04.05.2012
If you destroy a vehicle, the next vehicle will take that same ID.
Re: DestroyVehicle question -
ViniBorn - 04.05.2012
ID 100 again...
The id assumes the first free ...
Re: DestroyVehicle question -
Typhome - 04.05.2012
Thanks guys, now i can continue to build carsystem.