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...") |
|||
(2 intermediate revisions by one other user not shown) | |||
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. | ||
}} | }} | ||
{{Needs Checking|This event only seems to trigger for the local player}} | |||
{{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== | ||
Line 30: | Line 31: | ||
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==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.
This article needs checking. | |
Reason(s): This event only seems to trigger for the local player |
Note: 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
The source of this event is the ped who stepped.
Requirements
Minimum server version | n/a |
---|---|
Minimum client version | 1.5.6.14735 |
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.6.14735" />
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
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- triggerLatentServerEvent
- triggerServerEvent
- wasEventCancelled