Skip to content

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.

GetPlayerStance(pid)
Parameter Type
pid number the player

number - the stance; STANCE_STANDING when not connected

if GetPlayerStance(pid) == STANCE_MOUNTED then SendClientMessage(pid, COLOR_RED, "Get off your horse first.") end

IsPlayerCrouching · OnPlayerStanceChange · GetPlayerSeat · the Players group of the index