RedM Natives

TASK_AIM_GUN_AT_ENTITY

Hash0x9B53BB6E8943AF53
Runtime nameTaskAimGunAtEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9B53BB6E8943AF53

Signature

void TASK_AIM_GUN_AT_ENTITY(Ped ped, Entity targetEntity, int duration, BOOL p3, int p4);

Parameters

NameTypeDescription
pedPed—
targetEntityEntity—
durationint—
p3BOOL—
p4int—

Returns void

Description

duration: the amount of time in milliseconds to do the task. -1 will keep the task going until either another task is applied, or CLEAR_ALL_TASKS() is called with the ped

Usage

Lua
TaskAimGunAtEntity(ped, targetEntity, duration, p3, p4)

-- always works, by hash
Citizen.InvokeNative(0x9B53BB6E8943AF53, ped, targetEntity, duration, p3, p4)
JavaScript and C#
JavaScript
TaskAimGunAtEntity(ped, targetEntity, duration, p3, p4);

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

Sources

alloc8or RDR3 NativeDB

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