Difference IsPlayerInVehicle and GetPlayerVehicleID?
#1

Hello,

There are two function: GetPlayerVehicleID and IsPlayerInVehicle. As far as I know, these two don't have a difference in what they do? I used the wiki, but it doesn't say anything about it. It does the same for me.

Can someone tell me the difference?

Regards, Jochem
Reply
#2

IsPlayerInVehicle - returns 1 for yes, and 0 for no.
GetPlayerVehicleID- returns the id of the vehicle the player is currently in.
Reply
#3

GetPlayerVehicleID returns the id of the vehicle the player is in, or 0, if he is in no.
IsPlayerIn(any)Vehicle just returns 1 if the player is in the specified (or any) vehicle, and 0 if not
Reply
#4

Ok, thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)