{"hash":"0x6243635AF2F1B826","ns":"PED","name":"_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX","slug":"_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX","official":false,"named":true,"luaName":"GetShopItemWearableStateByIndex","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"componentHash","type":"Hash"},{"name":"wearableStateIndex","type":"int"},{"name":"isMpFemale","type":"BOOL"},{"name":"p3","type":"BOOL"}],"summary":"Gets an available wearable state by index for a shop item / component - it does not retreive what the current state is.","descriptions":[{"source":"alloc8or","format":"text","body":"Gets an available wearable state by index for a shop item / component - it does not retreive what the current state is. p3 seems to be true in scripts.\n\nUse 0xFFCC2DB2D9953401 (_GET_SHOP_ITEM_NUM_WEARABLE_STATES) to get the number of available wearable states"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX.md","snippets":{"lua":"local retval = GetShopItemWearableStateByIndex(componentHash, wearableStateIndex, isMpFemale, p3)","luaInvoke":"local retval = Citizen.InvokeNative(0x6243635AF2F1B826, componentHash, wearableStateIndex, isMpFemale, p3, Citizen.ResultAsInteger())","js":"const retval = GetShopItemWearableStateByIndex(componentHash, wearableStateIndex, isMpFemale, p3);","jsInvoke":"const retval = Citizen.invokeNative('0x6243635AF2F1B826', componentHash, wearableStateIndex, isMpFemale, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x6243635AF2F1B826, componentHash, wearableStateIndex, isMpFemale, p3);","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."]}}