RedM Natives

TASK_LOOK_AT_COORD

Hash0x6FA46612594F7973
Runtime nameTaskLookAtCoord
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6FA46612594F7973

Signature

void TASK_LOOK_AT_COORD(Ped ped, float x, float y, float z, int duration, int flags, int p6, BOOL p7);

Parameters

NameTypeDescription
pedPed—
xfloat—
yfloat—
zfloat—
durationint—
flagsint—
p6int—
p7BOOL—

Returns void

Usage

Lua
TaskLookAtCoord(ped, x, y, z, duration, flags, p6, p7)

-- always works, by hash
Citizen.InvokeNative(0x6FA46612594F7973, ped, x, y, z, duration, flags, p6, p7)
JavaScript and C#
JavaScript
TaskLookAtCoord(ped, x, y, z, duration, flags, p6, p7);

// by hash
Citizen.invokeNative('0x6FA46612594F7973', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, duration, flags, p6, p7);
C#
Function.Call((Hash)0x6FA46612594F7973, ped, x, y, z, duration, flags, p6, p7);
  • 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.