# setPedBikeControl (Client)

> Sets a ped's skill at riding bikes and motorbikes.

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

## Syntax

```lua
bool setPedBikeControl(ped ped, float control)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |
| `control` | `float` | From `0` to `1`. The default is `0`. Values out of range are clamped when used. |

## Returns

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

The skill changes how the rider leans and balances the bike. In the original SA this value came from a player stat; here every ped has its own.

## Example

```lua
setPedBikeControl(localPlayer, 1)
```

## See also

- [getPedBikeControl (Client)](https://wiki.mymp.gg/en/getPedBikeControl.md): Gets a ped's skill at riding bikes and motorbikes.
- [setPedCanBeKnockedOffBike (Client)](https://wiki.mymp.gg/en/setPedCanBeKnockedOffBike.md): Sets whether a ped can be knocked off a bike or motorbike in a crash.
- [setPedCyclePower (Client)](https://wiki.mymp.gg/en/setPedCyclePower.md): Sets how hard a ped pedals a bicycle.
