TASK_SHOOT_AT_ENTITY
Hash
0x08DA95E8298AE772Runtime name
TaskShootAtEntityNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x08DA95E8298AE772Signature
void TASK_SHOOT_AT_ENTITY(Entity entity, Entity targetEntity, int duration, Hash firingPattern, BOOL affectCockedState);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
targetEntity | Entity | — |
duration | int | — |
firingPattern | Hash | — |
affectCockedState | BOOL | — |
Returns void
Usage
TaskShootAtEntity(entity, targetEntity, duration, firingPattern, affectCockedState)
-- always works, by hash
Citizen.InvokeNative(0x08DA95E8298AE772, entity, targetEntity, duration, firingPattern, affectCockedState)JavaScript and C#
TaskShootAtEntity(entity, targetEntity, duration, firingPattern, affectCockedState);
// by hash
Citizen.invokeNative('0x08DA95E8298AE772', entity, targetEntity, duration, firingPattern, affectCockedState);Function.Call((Hash)0x08DA95E8298AE772, entity, targetEntity, duration, firingPattern, affectCockedState);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.