TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
Hash
0xB2A16444EAD9AE47Runtime name
TaskGoToCoordWhileAimingAtEntityNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB2A16444EAD9AE47Signature
void TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY(Ped ped1, float x, float y, float z, Ped ped2, float p5, Any p6, float p7, float p8, Any p9, Any p10, Any p11, Hash firingPattern, int p13, Any p14);Parameters
| Name | Type | Description |
|---|---|---|
ped1 | Ped | — |
x | float | — |
y | float | — |
z | float | — |
ped2 | Ped | — |
p5 | float | — |
p6 | Any | — |
p7 | float | — |
p8 | float | — |
p9 | Any | — |
p10 | Any | — |
p11 | Any | — |
firingPattern | Hash | — |
p13 | int | — |
p14 | Any | — |
Returns void
Usage
TaskGoToCoordWhileAimingAtEntity(ped1, x, y, z, ped2, p5, p6, p7, p8, p9, p10, p11, firingPattern, p13, p14)
-- always works, by hash
Citizen.InvokeNative(0xB2A16444EAD9AE47, ped1, x, y, z, ped2, p5, p6, p7, p8, p9, p10, p11, firingPattern, p13, p14)JavaScript and C#
TaskGoToCoordWhileAimingAtEntity(ped1, x, y, z, ped2, p5, p6, p7, p8, p9, p10, p11, firingPattern, p13, p14);
// by hash
Citizen.invokeNative('0xB2A16444EAD9AE47', ped1, x + 0.0000001, y + 0.0000001, z + 0.0000001, ped2, p5 + 0.0000001, p6, p7 + 0.0000001, p8 + 0.0000001, p9, p10, p11, firingPattern, p13, p14);Function.Call((Hash)0xB2A16444EAD9AE47, ped1, x, y, z, ped2, p5, p6, p7, p8, p9, p10, p11, firingPattern, p13, p14);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.