OnClientPedStep: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client event}} __NOTOC__ {{New feature/item|3.0157|1.5.6|14735| This event is called when a peds foot has come on to the ground after jumping or taking a full step. }} {{Not...") |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 13: | Line 13: | ||
==Source== | ==Source== | ||
The [[event system#Event source|source]] of this event is the [[ped]] who stepped. | The [[event system#Event source|source]] of this event is the [[ped]] who stepped. | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addEventHandler("onClientPedStep", localPlayer, | addEventHandler("onClientPedStep", localPlayer, | ||
Line 30: | Line 26: | ||
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== |
Latest revision as of 17:15, 7 November 2024
This event is called when a peds foot has come on to the ground after jumping or taking a full step.
Parameters
bool leftFoot
- leftFoot: a bool representing if it was the left foot that moved.
Source
The source of this event is the ped who stepped.
Example
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
Client ped events
- onClientPedDamage
- onClientPedHeliKilled
- onClientPedHitByWaterCannon
- onClientPedVehicleEnter
- onClientPedVehicleExit
- onClientPedWasted
- onClientPedWeaponFire
- onClientPedStep
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled