{"hash":"0x82FA24C3D3FCD9B7","ns":"INVENTORY","name":"_INVENTORY_GET_ITEM_FROM_COLLECTION_INDEX","slug":"_INVENTORY_GET_ITEM_FROM_COLLECTION_INDEX","official":false,"named":true,"luaName":"InventoryGetItemFromCollectionIndex","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"collectionId","type":"int"},{"name":"itemIndex","type":"int"},{"name":"itemData","type":"Any*"}],"summary":"collectionId is < outCollectionSize","descriptions":[{"source":"alloc8or","format":"text","body":"collectionId is < outCollectionSize"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_ITEM_FROM_COLLECTION_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_ITEM_FROM_COLLECTION_INDEX.md","snippets":{"lua":"local retval, itemData = InventoryGetItemFromCollectionIndex(collectionId, itemIndex, itemData)","luaInvoke":"local retval, itemData = Citizen.InvokeNative(0x82FA24C3D3FCD9B7, collectionId, itemIndex, Citizen.PointerValueIntInitialized(itemData), Citizen.ReturnResultAnyway())","js":"const [retval, itemData] = InventoryGetItemFromCollectionIndex(collectionId, itemIndex, itemData);","jsInvoke":"const [retval, itemData] = Citizen.invokeNative('0x82FA24C3D3FCD9B7', collectionId, itemIndex, Citizen.pointerValueIntInitialized(itemData), Citizen.returnResultAnyway());","csharp":"var itemData = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x82FA24C3D3FCD9B7, collectionId, itemIndex, itemData);\n// itemData.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","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."]}}