M MY Multiplayer: Wiki
Side
Kind

getPedBikeControl

Client

Gets a ped's skill at riding bikes and motorbikes.

float|false getPedBikeControl(ped ped)

Parameters

NameTypeDescription
pedpedThe 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))

See also