setPedJump
Starts GTA's native jump, airborne, optional climb, and landing task chain on a ped simulated by this client.
Syntax
bool setPedJump(ped thePed [, bool allowClimb = true])GTA task mapping
CTaskComplexJumpCTaskSimpleJumpCTaskComplexInAirAndLandCTaskSimpleLandCTaskSimpleClimbSCM equivalent: TASK_JUMP
GTA owns the launch, airborne, optional climb, and landing chain after dispatch. The audited source does not verify a numeric SCM opcode for this mapping.
Arguments
thePedpedLiving streamed ped simulated by the local player, its owning resource, or the current syncer.
allowClimbbooloptional · default trueAllow GTA to scan for a climb or vault during the jump.
Returns
true when GTA accepted the jump task; false for an invalid, dead, unstreamed, or remotely simulated ped, a missing native game object, or task-construction failure.
Ownership and lifecycle
Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.
- Commit 161dc1b7 extended the original dispatch so script peds use GTA's native climb scan.
- The focused handoff tests cover the supported airborne and climb state, not arbitrary GTA task reconstruction.
OOP aliases
ped:setJump([allowClimb])
Example
if isElementStreamedIn(ped) then setPedJump(ped, true)endWhere this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →