# getPedMoveState (Client)

> Tells how a ped on foot is moving.

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

## Syntax

```lua
string|false getPedMoveState(ped ped)
```

## Parameters

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

## Returns

One of: `stand`, `walk`, `jog`, `sprint`, `crouch`, `crawl`, `roll`, `climb`, `hanging`, `jump`, `walk_to_point`, `swim` or `fall`. `false` when the ped is in a vehicle, getting in or out of one, or in none of those states.

`hanging` is the ped holding on to a ledge while climbing. `crawl` and `roll` are a crouched ped moving, `roll` when it is also aiming.

## Example

```lua
addEventHandler("onClientRender", root, function()
    local state = getPedMoveState(localPlayer)
    if state then
        dxDrawText(state, 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.
- [isPedDucked (Shared)](https://wiki.mymp.gg/en/isPedDucked.md): Tells whether a ped or player is crouching.
- [getPedSimplestTask (Client)](https://wiki.mymp.gg/en/getPedSimplestTask.md): Gets the simplest task the ped is running right now.
- [getPedControlState (Client)](https://wiki.mymp.gg/en/getPedControlState.md): Tells whether one of a ped's controls is pressed, such as forwards, fire or accelerate.
