IsPlayerCrouching
Whether a player is crouching.
Syntax
Section titled “Syntax”IsPlayerCrouching(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - true while their stance is STANCE_CROUCHING; false when not connected
Example
Section titled “Example”if IsPlayerCrouching(pid) then SendClientMessage(pid, COLOR_GOLD, "You move quietly.") endSee also
Section titled “See also”GetPlayerStance · OnPlayerStanceChange · the Players group of the index
