getNumDlcWeaponComponents
GET_NUM_DLC_WEAPON_COMPONENTS0x405425358A7D61FEThe GTA V native GET_NUM_DLC_WEAPON_COMPONENTS of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function getNumDlcWeaponComponents, in JavaScript and in Lua.
getNumDlcWeaponComponents(dlcWeaponIndex: number): numbergetNumDlcWeaponComponents(dlcWeaponIndex: integer): integerUsage
JavaScript
const result = getNumDlcWeaponComponents(dlcWeaponIndex);Lua
local result = getNumDlcWeaponComponents(dlcWeaponIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
dlcWeaponIndex | int | 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 total number of DLC weapon components.
Reference
- Namespace
- Shop metadata EXTRAMETADATA
- In the game
int GET_NUM_DLC_WEAPON_COMPONENTS(int dlcWeaponIndex)- Hash
0x405425358A7D61FE