RedM Natives

TASK_SHOOT_AT_ENTITY

Hash0x08DA95E8298AE772
Runtime nameTaskShootAtEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x08DA95E8298AE772

Signature

void TASK_SHOOT_AT_ENTITY(Entity entity, Entity targetEntity, int duration, Hash firingPattern, BOOL affectCockedState);

Parameters

NameTypeDescription
entityEntity—
targetEntityEntity—
durationint—
firingPatternHash—
affectCockedStateBOOL—

Returns void

Usage

Lua
TaskShootAtEntity(entity, targetEntity, duration, firingPattern, affectCockedState)

-- always works, by hash
Citizen.InvokeNative(0x08DA95E8298AE772, entity, targetEntity, duration, firingPattern, affectCockedState)
JavaScript and C#
JavaScript
TaskShootAtEntity(entity, targetEntity, duration, firingPattern, affectCockedState);

// by hash
Citizen.invokeNative('0x08DA95E8298AE772', entity, targetEntity, duration, firingPattern, affectCockedState);
C#
Function.Call((Hash)0x08DA95E8298AE772, entity, targetEntity, duration, firingPattern, affectCockedState);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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