WeaponClient

removeWeaponComponentFromWeaponObject

REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT0xF7D82B0D66777611

The GTA V native REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT of the WEAPON namespace, as LS:MP client scripts call it: the global function removeWeaponComponentFromWeaponObject, in JavaScript and in Lua.

SignatureJavaScript
removeWeaponComponentFromWeaponObject(
  object: Object,
  componentHash: Hash
): void
SignatureLua
removeWeaponComponentFromWeaponObject(object: Object, componentHash: Hash)

Usage

JavaScript
removeWeaponComponentFromWeaponObject(object, componentHash);
Lua
removeWeaponComponentFromWeaponObject(object, componentHash)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger
componentHashHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

see doesWeaponTakeWeaponComponent for full list of weapons & components

Reference

Namespace
Weapon WEAPON
In the game
void REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT(Object object, Hash componentHash)
Hash
0xF7D82B0D66777611

Open in the interactive natives reference