TASK_SHOOT_WITH_WEAPON
Hash
0x08AA95E8298AE772Runtime name
TaskShootWithWeaponNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_SHOOT_WITH_WEAPON(Ped ped, Any* args);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
args | Any* | — |
Returns void
Usage
local args = TaskShootWithWeapon(ped, args)
-- always works, by hash
local args = Citizen.InvokeNative(0x08AA95E8298AE772, ped, Citizen.PointerValueIntInitialized(args))JavaScript and C#
const args = TaskShootWithWeapon(ped, args);
// by hash
const args = Citizen.invokeNative('0x08AA95E8298AE772', ped, Citizen.pointerValueIntInitialized(args));var args = new OutputArgument();
Function.Call((Hash)0x08AA95E8298AE772, ped, args);
// args.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.