addVehicleSubtaskAttackCoord
ADD_VEHICLE_SUBTASK_ATTACK_COORD0x5CF0D8F9BBA0DD75The GTA V native ADD_VEHICLE_SUBTASK_ATTACK_COORD of the TASK namespace, as LS:MP client scripts call it: the global function addVehicleSubtaskAttackCoord, in JavaScript and in Lua.
addVehicleSubtaskAttackCoord(ped: Ped, x: number, y: number, z: number): voidaddVehicleSubtaskAttackCoord(ped: Ped, x: number, y: number, z: number)Usage
JavaScript
addVehicleSubtaskAttackCoord(ped, x, y, z);Lua
addVehicleSubtaskAttackCoord(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
addVehicleSubtaskAttackCoord(ped, pos);Lua · with vectors
addVehicleSubtaskAttackCoord(ped, pos)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
ped | Ped | number | integer | |
x | float | number | number | offset in world coords from some entity. |
y | float | number | number | offset in world coords from some entity. |
z | float | number | number | offset in world coords from some entity. |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Tasks TASK
- In the game
void ADD_VEHICLE_SUBTASK_ATTACK_COORD(Ped ped, float x, float y, float z)- Hash
0x5CF0D8F9BBA0DD75