# isPedDucked (Shared)

> Tells whether a ped or player is crouching.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Peds
- **URL**: https://wiki.mymp.gg/en/isPedDucked

## Syntax

```lua
bool isPedDucked(ped ped)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |

## Returns

`true` if it is crouching, `false` if not or if there is no state to read.

On the server, the value is the last one sent by the client that syncs the ped.

## Example

```lua
addEventHandler("onClientRender", root, function()
    if isPedDucked(localPlayer) then
        dxDrawText("Crouching", 20, 300)
    end
end)
```

## See also

- [isPedOnGround (Shared)](https://wiki.mymp.gg/en/isPedOnGround.md): Tells whether a ped or player is on the ground.
- [getPedMoveState (Client)](https://wiki.mymp.gg/en/getPedMoveState.md): Tells how a ped on foot is moving.
- [isPedInWater (Shared)](https://wiki.mymp.gg/en/isPedInWater.md): Tells whether a ped or player is in the water.
