The Lab
WEAPON native

_REMOVE_WEAPON_FROM_PED_BY_GUID

returns void3 paramsbuild 1311

Removes the weapon identified by its inventory GUID from the ped.

Signature

C
void _REMOVE_WEAPON_FROM_PED_BY_GUID(Ped ped, Any* weaponGuid, Hash removeReason); // 0x51C3B71591811485 b1311

Parameters

#NameType
1pedPed
2weaponGuidAny* (out pointer)
3removeReasonHash

Facts

Facts about _REMOVE_WEAPON_FROM_PED_BY_GUID
Name
_REMOVE_WEAPON_FROM_PED_BY_GUID
Hash
0x51C3B71591811485
Namespace
Returns
void
Game build
1311

Examples

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

Lua
local weaponGuid = Citizen.InvokeNative(0x51C3B71591811485, -- _REMOVE_WEAPON_FROM_PED_BY_GUID
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueInt(), -- Any* weaponGuid
  GetHashKey("name") -- Hash removeReason
)
print(weaponGuid)
JavaScript
const weaponGuid = Citizen.invokeNative("0x51C3B71591811485", // _REMOVE_WEAPON_FROM_PED_BY_GUID
  PlayerPedId(), // Ped ped
  Citizen.pointerValueInt(), // Any* weaponGuid
  GetHashKey("name") // Hash removeReason
);
console.log(weaponGuid)
C#
var weaponGuidArg = new OutputArgument();
Function.Call((Hash)0x51C3B71591811485, // _REMOVE_WEAPON_FROM_PED_BY_GUID
  API.PlayerPedId(), // Ped ped
  weaponGuidArg, // Any* weaponGuid
  (uint)API.GetHashKey("name") // Hash removeReason
);
int weaponGuid = weaponGuidArg.GetResult<int>();
All WEAPON natives

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