getShopPedApparelForcedComponentCount
GET_SHOP_PED_APPAREL_FORCED_COMPONENT_COUNT0xC6B9DB42C04DD8C3The 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.
getShopPedApparelForcedComponentCount(componentHash: Hash): numbergetShopPedApparelForcedComponentCount(componentHash: Hash): integerUsage
JavaScript
const result = getShopPedApparelForcedComponentCount(componentHash);Lua
local result = getShopPedApparelForcedComponentCount(componentHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
componentHash | Hash | 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 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