getShopPedApparelVariantPropCount

GET_SHOP_PED_APPAREL_VARIANT_PROP_COUNT0xD40AAC51E8E4C663

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

SignatureJavaScript
getShopPedApparelVariantPropCount(propHash: Hash): number
SignatureLua
getShopPedApparelVariantPropCount(propHash: Hash): integer

Usage

JavaScript
const result = getShopPedApparelVariantPropCount(propHash);
Lua
local result = getShopPedApparelVariantPropCount(propHash)

Parameters

ParameterTypeJavaScriptLua
propHashHashnumberinteger

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.

propHash: Ped helmet prop hash?
This native returns 1 when the player helmet has a visor (there is another prop index for the same helmet with closed/opened visor variant) that can be toggled. 0 if there's no alternative version with a visor for this helmet prop.

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
int GET_SHOP_PED_APPAREL_VARIANT_PROP_COUNT(Hash propHash)
Hash
0xD40AAC51E8E4C663
Introduced
Game build 791 legacy numbering
Formerly
_GET_SHOP_PED_APPAREL_VARIANT_PROP_COUNT

Open in the interactive natives reference