{"hash":"0xFFCC2DB2D9953401","ns":"PED","name":"_GET_SHOP_ITEM_NUM_WEARABLE_STATES","slug":"_GET_SHOP_ITEM_NUM_WEARABLE_STATES","official":false,"named":true,"luaName":"GetShopItemNumWearableStates","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"componentHash","type":"Hash"},{"name":"isMpFemale","type":"BOOL"},{"name":"p2","type":"BOOL"}],"summary":"Returns the number of wearable states available for a shop item / component.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the number of wearable states available for a shop item / component. p2 seems to be true in scripts.\n\nFor use with 0x6243635AF2F1B826 (_GET_SHOP_ITEM_AVAILABLE_WEARABLE_STATE_BY_INDEX)"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_NUM_WEARABLE_STATES","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_NUM_WEARABLE_STATES.md","snippets":{"lua":"local retval = GetShopItemNumWearableStates(componentHash, isMpFemale, p2)","luaInvoke":"local retval = Citizen.InvokeNative(0xFFCC2DB2D9953401, componentHash, isMpFemale, p2, Citizen.ResultAsInteger())","js":"const retval = GetShopItemNumWearableStates(componentHash, isMpFemale, p2);","jsInvoke":"const retval = Citizen.invokeNative('0xFFCC2DB2D9953401', componentHash, isMpFemale, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xFFCC2DB2D9953401, componentHash, isMpFemale, p2);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}