onClientPedStep | Multi Theft Auto: Wiki Skip to content

onClientPedStep

Client-side
Server-side
Shared

This event is called when a peds foot has come on to the ground after jumping or taking a full step.

This event is only triggered for peds that are streamed in

Parameters

bool leftFoot
  • leftFoot: a bool representing if it was the left foot that moved.

Source

element: The source of this event is the ped who stepped.

Code Examples

client
addEventHandler("onClientPedStep", localPlayer,
function(leftFoot)
if (leftFoot) then
outputChatBox("Your left foot hit the ground.", 0, 255, 0)
else
outputChatBox("Your right foot hit the ground.", 0, 255, 0)
end
end
)

See Also