M MY Multiplayer: Wiki
Side
Kind

onClientPedStep

ClientEvent

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

addEventHandler("onClientPedStep", root, function(bool leftFoot) … end)

Handler parameters

NameTypeDescription
leftFootbooltrue 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

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

See also