OnClientPedStep: Difference between revisions
Jump to navigation
Jump to search
(works fine with peds) |
|||
Line 4: | Line 4: | ||
This event is called when a peds foot has come on to the ground after jumping or taking a full step. | This event is called when a peds foot has come on to the ground after jumping or taking a full step. | ||
}} | }} | ||
{{Note|This event is only triggered for peds that are streamed in}} | {{Note|This event is only triggered for peds that are streamed in}} | ||
==Parameters== | ==Parameters== |
Revision as of 12:54, 9 March 2020
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.
Requirements
This template will be deleted.
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