getShopPedApparelForcedComponentCount

GET_SHOP_PED_APPAREL_FORCED_COMPONENT_COUNT0xC6B9DB42C04DD8C3

The GTA V native GET_SHOP_PED_APPAREL_FORCED_COMPONENT_COUNT of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function getShopPedApparelForcedComponentCount, in JavaScript and in Lua.

SignatureJavaScript
getShopPedApparelForcedComponentCount(componentHash: Hash): number
SignatureLua
getShopPedApparelForcedComponentCount(componentHash: Hash): integer

Usage

JavaScript
const result = getShopPedApparelForcedComponentCount(componentHash);
Lua
local result = getShopPedApparelForcedComponentCount(componentHash)

Parameters

ParameterTypeJavaScriptLua
componentHashHashnumberinteger

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 number of possible values of the forcedComponentIndex argument of getForcedComponent.

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
int GET_SHOP_PED_APPAREL_FORCED_COMPONENT_COUNT(Hash componentHash)
Hash
0xC6B9DB42C04DD8C3
Formerly
_GET_NUM_FORCED_COMPONENTS

Open in the interactive natives reference