_REMOVE_WEAPON_FROM_PED_BY_GUID
Hash
0x51C3B71591811485Runtime name
RemoveWeaponFromPedByGuidNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1311
Signature
void _REMOVE_WEAPON_FROM_PED_BY_GUID(Ped ped, Any* weaponGuid, Hash removeReason);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponGuid | Any* | — |
removeReason | Hash | — |
Returns void
Usage
local weaponGuid = RemoveWeaponFromPedByGuid(ped, removeReason)
-- always works, by hash
local weaponGuid = Citizen.InvokeNative(0x51C3B71591811485, ped, Citizen.PointerValueInt(), removeReason)JavaScript and C#
const weaponGuid = RemoveWeaponFromPedByGuid(ped, removeReason);
// by hash
const weaponGuid = Citizen.invokeNative('0x51C3B71591811485', ped, Citizen.pointerValueInt(), removeReason);var weaponGuid = new OutputArgument();
Function.Call((Hash)0x51C3B71591811485, ped, weaponGuid, removeReason);
// weaponGuid.GetResult<int>()- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.