GetPlayerStance
How a player stands - on their feet, crouching, in a saddle or in a cart seat.
As their game last reported it: one of STANCE_STANDING, STANCE_CROUCHING, STANCE_MOUNTED and STANCE_SEATED.
OnPlayerStanceChange follows every change. STANCE_SEATED is a cart’s seat only; a player on a bench, a chair or a
bed of the level is STANCE_STANDING, and GetPlayerSeat says what they sit or lie on.
Syntax
Section titled “Syntax”GetPlayerStance(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the stance; STANCE_STANDING when not connected
Example
Section titled “Example”if GetPlayerStance(pid) == STANCE_MOUNTED then SendClientMessage(pid, COLOR_RED, "Get off your horse first.") endSee also
Section titled “See also”IsPlayerCrouching · OnPlayerStanceChange · GetPlayerSeat · the Players group of the index
