GetPlayerState
From Onset Developer Wiki
Description
Get the player ped state.
Syntax
GetPlayerState(player)
Parameters
- player
The player identifier.
Return Value
- Returns an integer. See PlayerStateTypes.
Example
if GetPlayerState(playerid) == PS_DRIVER then
print("This player state is driver.")
end