RedM Natives

TASK_AIM_AT_ENTITY

Hash0xCF7569BD0FB480A0
Runtime nameTaskAimAtEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_AIM_AT_ENTITY(Ped ped, Entity targetEntity, int time, BOOL p3, BOOL p4);

Parameters

NameTypeDescription
pedPed—
targetEntityEntity—
timeint—
p3BOOL—
p4BOOL—

Returns void

Usage

Lua
TaskAimAtEntity(ped, targetEntity, time, p3, p4)

-- always works, by hash
Citizen.InvokeNative(0xCF7569BD0FB480A0, ped, targetEntity, time, p3, p4)
JavaScript and C#
JavaScript
TaskAimAtEntity(ped, targetEntity, time, p3, p4);

// by hash
Citizen.invokeNative('0xCF7569BD0FB480A0', ped, targetEntity, time, p3, p4);
C#
Function.Call((Hash)0xCF7569BD0FB480A0, ped, targetEntity, time, p3, p4);

Sources

alloc8or RDR3 NativeDB

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