RedM Natives

TASK_SHOOT_WITH_WEAPON

Hash0x08AA95E8298AE772
Runtime nameTaskShootWithWeapon
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_SHOOT_WITH_WEAPON(Ped ped, Any* args);

Parameters

NameTypeDescription
pedPed—
argsAny*—

Returns void

Usage

Lua
local args = TaskShootWithWeapon(ped, args)

-- always works, by hash
local args = Citizen.InvokeNative(0x08AA95E8298AE772, ped, Citizen.PointerValueIntInitialized(args))
JavaScript and C#
JavaScript
const args = TaskShootWithWeapon(ped, args);

// by hash
const args = Citizen.invokeNative('0x08AA95E8298AE772', ped, Citizen.pointerValueIntInitialized(args));
C#
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

alloc8or RDR3 NativeDB

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