The Lab
TASK native

TASK_AIM_GUN_AT_ENTITY

returns void5 paramsbuild 1207

Tasks ped to aim its gun at targetEntity for duration milliseconds.

Signature

C
void TASK_AIM_GUN_AT_ENTITY(Ped ped, Entity targetEntity, int duration, BOOL p3, int p4); // 0x9B53BB6E8943AF53 b1207

Parameters

#NameType
1pedPed
2targetEntityEntity
3durationint
4p3BOOL
5p4int

Facts

Facts about TASK_AIM_GUN_AT_ENTITY
Name
TASK_AIM_GUN_AT_ENTITY
Hash
0x9B53BB6E8943AF53
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x9B53BB6E8943AF53, -- TASK_AIM_GUN_AT_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity targetEntity
  0, -- int duration
  false, -- BOOL p3
  0 -- int p4
)
JavaScript
Citizen.invokeNative("0x9B53BB6E8943AF53", // TASK_AIM_GUN_AT_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity targetEntity
  0, // int duration
  false, // BOOL p3
  0 // int p4
);
C#
Function.Call((Hash)0x9B53BB6E8943AF53, // TASK_AIM_GUN_AT_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity targetEntity
  0, // int duration
  false, // BOOL p3
  0 // int p4
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.