RedM Natives

TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY

Hash0xB2A16444EAD9AE47
Runtime nameTaskGoToCoordWhileAimingAtEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB2A16444EAD9AE47

Signature

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

NameTypeDescription
ped1Ped—
xfloat—
yfloat—
zfloat—
ped2Ped—
p5float—
p6Any—
p7float—
p8float—
p9Any—
p10Any—
p11Any—
firingPatternHash—
p13int—
p14Any—

Returns void

Usage

Lua
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#
JavaScript
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);
C#
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.InvokeNative needs the number — pass joaat("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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.