_GET_SHOP_PED_APPAREL_VARIANT_PROP_COUNT
Docslocal retval = GetShopPedApparelVariantPropCount(propHash)Parameters
| Name | Type | Description |
|---|---|---|
propHash | Hash | Ped helmet prop hash |
Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
intReturns an integer value.
Examples
Official
local iVar16 = GetPedPropIndex(PlayerPedId(), 0) -- helmet prop index
local iVar17 = GetPedPropTextureIndex(PlayerPedId(), 0) -- helmet prop index
local iVar18 = GetHashNameForProp(PlayerPedId(), 0, iVar16, iVar17) -- gets the hash name for the helmet
if N_0xd40aac51e8e4c663(iVar18) > 0 then -- visor variant so can toggle the visor
BeginTextCommandDisplayHelp("VISOR_TOGGLE") -- Hold ~INPUT_SWITCH_VISOR~ to flip your helmet visor open or closed when on foot or on a motorcycle. You can also set the default state of your Helmet Visor in the Style section of the Interaction menu.
EndTextCommandDisplayHelp(0, 0, true, 6000)
end