SA-MP Forums Archive
how to get 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: how to get vehicle id? (/showthread.php?tid=371075)



how to get vehicle id? - akki - 22.08.2012

hey i was a bit confused actually i want to get the vehicles id and not the model id
i searched it on ****** ******* but no help there was help to get the vehicle id but no help with the vehicle id
any help please


Re: how to get vehicle id? - Ranama - 22.08.2012

type /dl ingame and look at a car or you'll have to set the value that CreateVehicle returns into a variable and use that.


Re: how to get vehicle id? - FalconX - 22.08.2012

Quote:
Originally Posted by Ranama
Посмотреть сообщение
type /dl ingame and look at a car or you'll have to set the value that CreateVehicle returns into a variable and use that.
You can use

pawn Код:
GetPlayerVehicleID( playerid );
It returns the current vehicle id of the vehicle he is currently in.

https://sampwiki.blast.hk/wiki/GetPlayerVehicleID