Difference between revisions of "OnClientPedStep"

From Multi Theft Auto: Wiki
m (fix typo)
Line 31: Line 31:
==See Also==
==See Also==

Revision as of 01:43, 6 September 2019

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

Dialog-information.png This article needs checking.

Reason(s): This event only seems to trigger for the local player
[[{{{image}}}|link=]] Note: This event is only triggered for peds that are streamed in


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


The source of this event is the ped who stepped.


Minimum supported server n/a
Minimum supported client

Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="" />


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

See Also

Client ped events

Client event functions