getNumDlcWeaponsSp
GET_NUM_DLC_WEAPONS_SP0x4160B65AE085B5A9The GTA V native GET_NUM_DLC_WEAPONS_SP of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function getNumDlcWeaponsSp, in JavaScript and in Lua.
getNumDlcWeaponsSp(): numbergetNumDlcWeaponsSp(): integerUsage
JavaScript
const result = getNumDlcWeaponsSp();Lua
local result = getNumDlcWeaponsSp()Parameters
None.
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 weapons that are available in SP (availableInSP field in shop_weapon.meta).
Reference
- Namespace
- Shop metadata EXTRAMETADATA
- In the game
int GET_NUM_DLC_WEAPONS_SP()- Hash
0x4160B65AE085B5A9- Introduced
- Game build 2060 legacy numbering
- Formerly
_GET_NUM_DLC_WEAPONS_SP