getNumDlcWeaponComponentsSp

GET_NUM_DLC_WEAPON_COMPONENTS_SP0xAD2A7A6DFF55841B

The 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.

SignatureJavaScript
getNumDlcWeaponComponentsSp(dlcWeaponIndex: number): number
SignatureLua
getNumDlcWeaponComponentsSp(dlcWeaponIndex: integer): integer

Usage

JavaScript
const result = getNumDlcWeaponComponentsSp(dlcWeaponIndex);
Lua
local result = getNumDlcWeaponComponentsSp(dlcWeaponIndex)

Parameters

ParameterTypeJavaScriptLua
dlcWeaponIndexintnumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference