GetPlayerVehicleID Help
#2

You need the vehicle model, not the ID.
PHP код:
if(GetVehicleModel(vehicleid) == 81
You don't need GetVehicleID neither since it's already there.
Enjoy and welcome back.

Edit; My bad, I didn't read clearly.
Use vehicleid, since OnPlayerEnterVehicle is when you press enter and start running to the door.
If you'd like to see the message when you are inside the vehicle, use OnPlayerStateChange.
PHP код:
if(vehicleid == 81
Reply


Messages In This Thread
GetPlayerVehicleID Help - by KingOfStarfox - 11.08.2016, 16:22
Re: GetPlayerVehicleID Help - by Luicy. - 11.08.2016, 16:27
Re: GetPlayerVehicleID Help - by WhiteGhost - 11.08.2016, 16:27
Re: GetPlayerVehicleID Help - by Konstantinos - 11.08.2016, 16:28
Re: GetPlayerVehicleID Help - by Luicy. - 11.08.2016, 16:30
Re: GetPlayerVehicleID Help - by KingOfStarfox - 11.08.2016, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)