The Lab
WEAPON native

SET_CURRENT_PED_VEHICLE_WEAPON

returns BOOL2 paramsbuild 1207

Sets the ped's current vehicle weapon. Returns true on success.

Signature

C
BOOL SET_CURRENT_PED_VEHICLE_WEAPON(Ped ped, Hash weaponHash); // 0x75C55983C2C39DAA b1207

Parameters

#NameType
1pedPed
2weaponHashHash

Facts

Facts about SET_CURRENT_PED_VEHICLE_WEAPON
Name
SET_CURRENT_PED_VEHICLE_WEAPON
Hash
0x75C55983C2C39DAA
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x75C55983C2C39DAA, -- SET_CURRENT_PED_VEHICLE_WEAPON
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman") -- Hash weaponHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x75C55983C2C39DAA", // SET_CURRENT_PED_VEHICLE_WEAPON
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x75C55983C2C39DAA, // SET_CURRENT_PED_VEHICLE_WEAPON
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);
All WEAPON natives

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