WeaponClient

removeWeaponComponentFromPed

REMOVE_WEAPON_COMPONENT_FROM_PED0x1E8BE90C74FB4C09

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

SignatureJavaScript
removeWeaponComponentFromPed(
  ped: Ped,
  weaponHash: Hash,
  componentHash: Hash
): void
SignatureLua
removeWeaponComponentFromPed(
  ped: Ped,
  weaponHash: Hash,
  componentHash: Hash
)

Usage

JavaScript
removeWeaponComponentFromPed(ped, weaponHash, componentHash);
Lua
removeWeaponComponentFromPed(ped, weaponHash, componentHash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
weaponHashHashnumberinteger
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.

Full list of weapons & components by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json

Reference

Namespace
Weapon WEAPON
In the game
void REMOVE_WEAPON_COMPONENT_FROM_PED(Ped ped, Hash weaponHash, Hash componentHash)
Hash
0x1E8BE90C74FB4C09

Open in the interactive natives reference