SA-MP Forums Archive
Vehicle ID - 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: Vehicle ID (/showthread.php?tid=348978)



Vehicle ID - wilko1995 - 07.06.2012

Hey,

How do i get the id of a vehicle that a player is not sitting in? so like i want to set a variable to the id of a car when my cmd is used to spawn a car but i dont know how to get the id. I dont want to put the player in the vehicle to get the id. Please Help


Re: Vehicle ID - MadeMan - 07.06.2012

When spawning the vehicle with CreateVehicle

pawn Код:
new vehicleid = CreateVehicle(...
then 'vehicleid' will have the ID.


Re: Vehicle ID - wilko1995 - 07.06.2012

Oh ok, thank you very much