GetPlayerState

From Onset Developer Wiki
Revision as of 15:01, 4 January 2020 by 28days (talk | contribs)
GetPlayerState

Type: Function
Context: Server
Introduced: v1.0

Description

Get the player ped state.

Syntax

GetPlayerState(player)

Parameters

  • player
    The player identifier.

Return Value

Example

if GetPlayerState(playerid) == PS_DRIVER then
    print("This player state is driver.")
end

See also

Template:PlayerFunctions