getShopPedApparelForcedPropCount

GET_SHOP_PED_APPAREL_FORCED_PROP_COUNT0x017568A8182D98A6

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

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

Usage

JavaScript
const result = getShopPedApparelForcedPropCount(componentHash);
Lua
local result = getShopPedApparelForcedPropCount(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 forcedPropIndex argument of getForcedProp.

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
int GET_SHOP_PED_APPAREL_FORCED_PROP_COUNT(Hash componentHash)
Hash
0x017568A8182D98A6

Open in the interactive natives reference