removeWeaponComponentFromPed
REMOVE_WEAPON_COMPONENT_FROM_PED0x1E8BE90C74FB4C09The 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.
removeWeaponComponentFromPed(
ped: Ped,
weaponHash: Hash,
componentHash: Hash
): voidremoveWeaponComponentFromPed(
ped: Ped,
weaponHash: Hash,
componentHash: Hash
)Usage
JavaScript
removeWeaponComponentFromPed(ped, weaponHash, componentHash);Lua
removeWeaponComponentFromPed(ped, weaponHash, componentHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
weaponHash | Hash | number | integer |
componentHash | Hash | number | integer |
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