The Lab
WEAPON native

SET_CURRENT_PED_WEAPON

returns void6 paramsbuild 1207

Selects the weapon weaponHash as the ped's current weapon, optionally equipping it immediately at the given attach point.

Signature

C
void SET_CURRENT_PED_WEAPON(Ped ped, Hash weaponHash, BOOL equipNow, int attachPoint, BOOL p4, BOOL p5); // 0xADF692B254977C0C b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3equipNowBOOL
4attachPointint
5p4BOOL
6p5BOOL

Facts

Facts about SET_CURRENT_PED_WEAPON
Name
SET_CURRENT_PED_WEAPON
Hash
0xADF692B254977C0C
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(0xADF692B254977C0C, -- SET_CURRENT_PED_WEAPON
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  false, -- BOOL equipNow
  0, -- int attachPoint
  false, -- BOOL p4
  false -- BOOL p5
)
JavaScript
Citizen.invokeNative("0xADF692B254977C0C", // SET_CURRENT_PED_WEAPON
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  false, // BOOL equipNow
  0, // int attachPoint
  false, // BOOL p4
  false // BOOL p5
);
C#
Function.Call((Hash)0xADF692B254977C0C, // SET_CURRENT_PED_WEAPON
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  false, // BOOL equipNow
  0, // int attachPoint
  false, // BOOL p4
  false // BOOL p5
);
All WEAPON natives

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