getWeaponComponentVariantExtraCount
GET_WEAPON_COMPONENT_VARIANT_EXTRA_COUNT0x6558AC7C17BFEF58The GTA V native GET_WEAPON_COMPONENT_VARIANT_EXTRA_COUNT of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeaponComponentVariantExtraCount, in JavaScript and in Lua.
getWeaponComponentVariantExtraCount(componentHash: Hash): numbergetWeaponComponentVariantExtraCount(componentHash: Hash): integerUsage
JavaScript
const result = getWeaponComponentVariantExtraCount(componentHash);Lua
local result = getWeaponComponentVariantExtraCount(componentHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
componentHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns the amount of extra components the specified component has.
Reference
- Namespace
- Weapon WEAPON
- In the game
int GET_WEAPON_COMPONENT_VARIANT_EXTRA_COUNT(Hash componentHash)- Hash
0x6558AC7C17BFEF58- Introduced
- Game build 372 legacy numbering
- Formerly
_GET_WEAPON_COMPONENT_VARIANT_EXTRA_COMPONENT_COUNT