The Lab
TASK native

TASK_SHOOT_AT_ENTITY

returns void5 paramsbuild 1207

Tasks entity to shoot at targetEntity for duration milliseconds using firingPattern.

Signature

C
void TASK_SHOOT_AT_ENTITY(Entity entity, Entity targetEntity, int duration, Hash firingPattern, BOOL affectCockedState); // 0x08DA95E8298AE772 b1207

Parameters

#NameType
1entityEntity
2targetEntityEntity
3durationint
4firingPatternHash
5affectCockedStateBOOL

Facts

Facts about TASK_SHOOT_AT_ENTITY
Name
TASK_SHOOT_AT_ENTITY
Hash
0x08DA95E8298AE772
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(0x08DA95E8298AE772, -- TASK_SHOOT_AT_ENTITY
  PlayerPedId(), -- Entity entity
  PlayerPedId(), -- Entity targetEntity
  0, -- int duration
  GetHashKey("name"), -- Hash firingPattern
  false -- BOOL affectCockedState
)
JavaScript
Citizen.invokeNative("0x08DA95E8298AE772", // TASK_SHOOT_AT_ENTITY
  PlayerPedId(), // Entity entity
  PlayerPedId(), // Entity targetEntity
  0, // int duration
  GetHashKey("name"), // Hash firingPattern
  false // BOOL affectCockedState
);
C#
Function.Call((Hash)0x08DA95E8298AE772, // TASK_SHOOT_AT_ENTITY
  API.PlayerPedId(), // Entity entity
  API.PlayerPedId(), // Entity targetEntity
  0, // int duration
  (uint)API.GetHashKey("name"), // Hash firingPattern
  false // BOOL affectCockedState
);
All TASK natives

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