taskJump
TASK_JUMP0x0AE4086104E067B1The 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.
taskJump(
ped: Ped,
usePlayerLaunchForce: boolean,
doSuperJump: boolean,
useFullSuperJumpForce: boolean
): voidtaskJump(
ped: Ped,
usePlayerLaunchForce: boolean,
doSuperJump: boolean,
useFullSuperJumpForce: boolean
)Usage
JavaScript
taskJump(ped, usePlayerLaunchForce, doSuperJump, useFullSuperJumpForce);Lua
taskJump(ped, usePlayerLaunchForce, doSuperJump, useFullSuperJumpForce)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
usePlayerLaunchForce | BOOL | boolean | boolean |
doSuperJump | BOOL | boolean | boolean |
useFullSuperJumpForce | BOOL | boolean | boolean |
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