GetPlayerState: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
{{FuncParam|player|The player identifier.}}
{{FuncParam|player|The player identifier.}}


{{FuncReturnValue|Returns an integer. See [[PlayerStateTypes]].}}
{{FuncReturnValue|Returns an integer. See [[PlayerState]].}}


== Example ==
== Example ==
Line 18: Line 18:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{PlayerFunctions}}
{{ServerPlayerFunctions}}

Latest revision as of 14:47, 26 June 2021

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