The Lab
TASK native

TASK_SHOOT_WITH_WEAPON

returns void2 paramsbuild 1207

Tasks ped to shoot with its weapon using the options in args.

Signature

C
void TASK_SHOOT_WITH_WEAPON(Ped ped, Any* args); // 0x08AA95E8298AE772 b1207

Parameters

#NameType
1pedPed
2argsAny* (out pointer)

Facts

Facts about TASK_SHOOT_WITH_WEAPON
Name
TASK_SHOOT_WITH_WEAPON
Hash
0x08AA95E8298AE772
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local args = Citizen.InvokeNative(0x08AA95E8298AE772, -- TASK_SHOOT_WITH_WEAPON
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueInt() -- Any* args
)
print(args)
JavaScript
const args = Citizen.invokeNative("0x08AA95E8298AE772", // TASK_SHOOT_WITH_WEAPON
  PlayerPedId(), // Ped ped
  Citizen.pointerValueInt() // Any* args
);
console.log(args)
C#
var argsArg = new OutputArgument();
Function.Call((Hash)0x08AA95E8298AE772, // TASK_SHOOT_WITH_WEAPON
  API.PlayerPedId(), // Ped ped
  argsArg // Any* args
);
int args = argsArg.GetResult<int>();
All TASK natives

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