updateTaskAimGunScriptedTarget
UPDATE_TASK_AIM_GUN_SCRIPTED_TARGET0x9724FB59A3E72AD0The GTA V native UPDATE_TASK_AIM_GUN_SCRIPTED_TARGET of the TASK namespace, as LS:MP client scripts call it: the global function updateTaskAimGunScriptedTarget, in JavaScript and in Lua.
updateTaskAimGunScriptedTarget(
ped: Ped,
target: Ped,
x: number,
y: number,
z: number,
disableBlockingClip: boolean
): voidupdateTaskAimGunScriptedTarget(
ped: Ped,
target: Ped,
x: number,
y: number,
z: number,
disableBlockingClip: boolean
)Usage
JavaScript
updateTaskAimGunScriptedTarget(ped, target, x, y, z, disableBlockingClip);Lua
updateTaskAimGunScriptedTarget(ped, target, x, y, z, disableBlockingClip)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
updateTaskAimGunScriptedTarget(ped, target, pos, disableBlockingClip);Lua · with vectors
updateTaskAimGunScriptedTarget(ped, target, pos, disableBlockingClip)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
target | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
disableBlockingClip | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Tasks TASK
- In the game
void UPDATE_TASK_AIM_GUN_SCRIPTED_TARGET(Ped ped, Ped target, float x, float y, float z, BOOL disableBlockingClip)- Hash
0x9724FB59A3E72AD0