# onClientPedStep (Client)

> Fired on each step of a ped or player, when the foot touches the ground.

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

## Syntax

```lua
addEventHandler("onClientPedStep", root, function(bool leftFoot) ... end)
```

## Handler parameters

| Name | Type | Description |
| --- | --- | --- |
| `leftFoot` | `bool` | `true` if it was the left foot, `false` if it was the right one. |

## Source

The ped or player that took the step.

It fires with the footstep sound, when walking, running or crouched.

## Example

```lua
addEventHandler("onClientPedStep", localPlayer, function(leftFoot)
    print(leftFoot and "left" or "right")
end)
```

## See also

- [getPedMoveState (Client)](https://wiki.mymp.gg/en/getPedMoveState.md): Tells how a ped on foot is moving.
- [onClientPedsProcessed (Client)](https://wiki.mymp.gg/en/onClientPedsProcessed.md): Fired every frame after peds and objects have been animated, before they are presented and drawn.
