getPedBikeControl
Client
Gets a ped's skill at riding bikes and motorbikes.
float|false getPedBikeControl(ped ped)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
Returns
The stored value (the default is 0), or false if the ped does not exist in the game.
Example
local skill = getPedBikeControl(localPlayer)
setPedBikeControl(localPlayer, math.min(skill + 0.1, 1))