GetPlayerState: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
{{FuncParam|player|The player identifier.}} | {{FuncParam|player|The player identifier.}} | ||
{{FuncReturnValue|Returns an integer. See [[ | {{FuncReturnValue|Returns an integer. See [[PlayerState]].}} | ||
== Example == | == Example == |
Revision as of 13:02, 14 August 2020
Description
Get the player ped state.
Syntax
GetPlayerState(player)
Parameters
- player
The player identifier.
Return Value
- Returns an integer. See PlayerState.
Example
if GetPlayerState(playerid) == PS_DRIVER then
print("This player state is driver.")
end