TasksClient

taskJump

TASK_JUMP0x0AE4086104E067B1

The GTA V native TASK_JUMP of the TASK namespace, as LS:MP client scripts call it: the global function taskJump, in JavaScript and in Lua.

SignatureJavaScript
taskJump(
  ped: Ped,
  usePlayerLaunchForce: boolean,
  doSuperJump: boolean,
  useFullSuperJumpForce: boolean
): void
SignatureLua
taskJump(
  ped: Ped,
  usePlayerLaunchForce: boolean,
  doSuperJump: boolean,
  useFullSuperJumpForce: boolean
)

Usage

JavaScript
taskJump(ped, usePlayerLaunchForce, doSuperJump, useFullSuperJumpForce);
Lua
taskJump(ped, usePlayerLaunchForce, doSuperJump, useFullSuperJumpForce)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
usePlayerLaunchForceBOOLbooleanboolean
doSuperJumpBOOLbooleanboolean
useFullSuperJumpForceBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Definition is wrong. This has 4 parameters (Not sure when they were added. v350 has 2, v678 has 4).

v350: Ped ped, bool unused
v678: Ped ped, bool unused, bool flag1, bool flag2

flag1 = super jump, flag2 = do nothing if flag1 is false and doubles super jump height if flag1 is true.

Reference

Namespace
Tasks TASK
In the game
void TASK_JUMP(Ped ped, BOOL usePlayerLaunchForce, BOOL doSuperJump, BOOL useFullSuperJumpForce)
Hash
0x0AE4086104E067B1

Open in the interactive natives reference