TASK_AIM_GUN_AT_ENTITY
Hash
0x9B53BB6E8943AF53Runtime name
TaskAimGunAtEntityNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x9B53BB6E8943AF53Signature
void TASK_AIM_GUN_AT_ENTITY(Ped ped, Entity targetEntity, int duration, BOOL p3, int p4);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
targetEntity | Entity | — |
duration | int | — |
p3 | BOOL | — |
p4 | int | — |
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
TaskAimGunAtEntity(ped, targetEntity, duration, p3, p4)
-- always works, by hash
Citizen.InvokeNative(0x9B53BB6E8943AF53, ped, targetEntity, duration, p3, p4)JavaScript and C#
TaskAimGunAtEntity(ped, targetEntity, duration, p3, p4);
// by hash
Citizen.invokeNative('0x9B53BB6E8943AF53', ped, targetEntity, duration, p3, p4);Function.Call((Hash)0x9B53BB6E8943AF53, ped, targetEntity, duration, p3, p4);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.