getNumDlcWeaponComponents

GET_NUM_DLC_WEAPON_COMPONENTS0x405425358A7D61FE

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

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

Usage

JavaScript
const result = getNumDlcWeaponComponents(dlcWeaponIndex);
Lua
local result = getNumDlcWeaponComponents(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.

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
int GET_NUM_DLC_WEAPON_COMPONENTS(int dlcWeaponIndex)
Hash
0x405425358A7D61FE

Open in the interactive natives reference