getNumDlcWeaponComponentsSp
GET_NUM_DLC_WEAPON_COMPONENTS_SP0xAD2A7A6DFF55841BThe GTA V native GET_NUM_DLC_WEAPON_COMPONENTS_SP of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function getNumDlcWeaponComponentsSp, in JavaScript and in Lua.
getNumDlcWeaponComponentsSp(dlcWeaponIndex: number): numbergetNumDlcWeaponComponentsSp(dlcWeaponIndex: integer): integerUsage
JavaScript
const result = getNumDlcWeaponComponentsSp(dlcWeaponIndex);Lua
local result = getNumDlcWeaponComponentsSp(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 that are available in SP.
Reference
- Namespace
- Shop metadata EXTRAMETADATA
- In the game
int GET_NUM_DLC_WEAPON_COMPONENTS_SP(int dlcWeaponIndex)- Hash
0xAD2A7A6DFF55841B- Introduced
- Game build 2060 legacy numbering
- Formerly
_GET_NUM_DLC_WEAPON_COMPONENTS_SP