- Documentation
- Shared functions
- isPedDucked
Function
isPedDucked
Checks whether a ped is crouching (the crouch key). On the server the state comes from the player's game; on the client straight from the game. A crouching ped is a smaller target and moves slower.
Syntax
bool isPedDucked(ped ped)Arguments
pedped- A player or an NPC.
Returns
true when crouching.
Example
if isPedDucked(player) then outputChatBox("Kucasz.", player) end