The Lab
TASK native

TASK_WEAPON

returns void1 parambuild 1207

Based on its name and signature, here is our best reading:

Gives ped a generic weapon task.

Signature

C
void TASK_WEAPON(Ped ped); // 0x7157B82D60E4BC46 b1207

Parameters

#NameType
1pedPed

Facts

Facts about TASK_WEAPON
Name
TASK_WEAPON
Hash
0x7157B82D60E4BC46
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0x7157B82D60E4BC46, -- TASK_WEAPON
  PlayerPedId() -- Ped ped
)
JavaScript
Citizen.invokeNative("0x7157B82D60E4BC46", // TASK_WEAPON
  PlayerPedId() // Ped ped
);
C#
Function.Call((Hash)0x7157B82D60E4BC46, // TASK_WEAPON
  API.PlayerPedId() // Ped ped
);
All TASK natives

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