ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isPedDucked

Function

isPedDucked

Server and clientPedsIdentical to MTA:SA

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

See also