getShopPedApparelVariantPropCount
GET_SHOP_PED_APPAREL_VARIANT_PROP_COUNT0xD40AAC51E8E4C663The 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.
getShopPedApparelVariantPropCount(propHash: Hash): numbergetShopPedApparelVariantPropCount(propHash: Hash): integerUsage
JavaScript
const result = getShopPedApparelVariantPropCount(propHash);Lua
local result = getShopPedApparelVariantPropCount(propHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
propHash | 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.
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