The Lab
TASK native

TASK_AIM_AT_ENTITY

returns void5 paramsbuild 1207

Tasks ped to aim at targetEntity for time milliseconds.

Signature

C
void TASK_AIM_AT_ENTITY(Ped ped, Entity targetEntity, int time, BOOL p3, BOOL p4); // 0xCF7569BD0FB480A0 b1207

Parameters

#NameType
1pedPed
2targetEntityEntity
3timeint
4p3BOOL
5p4BOOL

Facts

Facts about TASK_AIM_AT_ENTITY
Name
TASK_AIM_AT_ENTITY
Hash
0xCF7569BD0FB480A0
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(0xCF7569BD0FB480A0, -- TASK_AIM_AT_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity targetEntity
  0, -- int time
  false, -- BOOL p3
  false -- BOOL p4
)
JavaScript
Citizen.invokeNative("0xCF7569BD0FB480A0", // TASK_AIM_AT_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity targetEntity
  0, // int time
  false, // BOOL p3
  false // BOOL p4
);
C#
Function.Call((Hash)0xCF7569BD0FB480A0, // TASK_AIM_AT_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity targetEntity
  0, // int time
  false, // BOOL p3
  false // BOOL p4
);
All TASK natives

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