RedM Natives

REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT

Hash0xF7D82B0D66777611
Runtime nameRemoveWeaponComponentFromWeaponObject
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF7D82B0D66777611

Signature

void REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT(Object weaponObject, Hash component);

Parameters

NameTypeDescription
weaponObjectObject—
componentHash—

Returns void

Usage

Lua
RemoveWeaponComponentFromWeaponObject(weaponObject, component)

-- always works, by hash
Citizen.InvokeNative(0xF7D82B0D66777611, weaponObject, component)
JavaScript and C#
JavaScript
RemoveWeaponComponentFromWeaponObject(weaponObject, component);

// by hash
Citizen.invokeNative('0xF7D82B0D66777611', weaponObject, component);
C#
Function.Call((Hash)0xF7D82B0D66777611, weaponObject, component);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.