# setPedStrafePower (Client)

> Sets how a ped speeds up when strafing while fighting or aiming a gun.

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

## Syntax

```lua
bool setPedStrafePower(ped ped, float power)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |
| `power` | `float` | From `0` to `1`. With `0` the movement speeds up as a whole; with `1` each axis speeds up on its own, as in SA. Values in between mix the two. The default is `0`. |

## Returns

`true` if it was set, `false` if the ped does not exist in the game.

## Example

```lua
setPedStrafePower(localPlayer, 1)
```

## See also

- [getPedStrafePower (Client)](https://wiki.mymp.gg/en/getPedStrafePower.md): Gets how a ped speeds up when strafing while fighting or aiming a gun.
- [setPedMeleeStrength (Client)](https://wiki.mymp.gg/en/setPedMeleeStrength.md): Sets how hard a ped hits in melee.
