TasksClient

updateTaskSweepAimPosition

UPDATE_TASK_SWEEP_AIM_POSITION0xBB106883F5201FC4

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

SignatureJavaScript
updateTaskSweepAimPosition(ped: Ped, x: number, y: number, z: number): void
SignatureLua
updateTaskSweepAimPosition(ped: Ped, x: number, y: number, z: number)

Usage

JavaScript
updateTaskSweepAimPosition(ped, x, y, z);
Lua
updateTaskSweepAimPosition(ped, x, y, z)

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
updateTaskSweepAimPosition(ped, pos);
Lua · with vectors
updateTaskSweepAimPosition(ped, pos)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void UPDATE_TASK_SWEEP_AIM_POSITION(Ped ped, float x, float y, float z)
Hash
0xBB106883F5201FC4

Open in the interactive natives reference