{"hash":"0x80D78BDC9D88EF07","ns":"INVENTORY","name":"_INVENTORY_CREATE_ITEM_COLLECTION","slug":"_INVENTORY_CREATE_ITEM_COLLECTION","official":false,"named":true,"luaName":"InventoryCreateItemCollection","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"inventoryId","type":"int"},{"name":"filterName","type":"const char*"},{"name":"slotId","type":"Hash"},{"name":"size","type":"int*"}],"summary":"filterName (collections): \"ALL\", \"ALL SATCHEL\", \"ALL HORSES\", \"ALL COACHES\", \"ALL MOUNTS\", \"ALL CLOTHING\", \"ALL WEAPONS\", \"ALL SATCHEL EXCLUDING CLOTHING\", \"ALL EXCLUDING CLOTHING\" Returns collectionId","descriptions":[{"source":"alloc8or","format":"text","body":"filterName (collections): \"ALL\", \"ALL SATCHEL\", \"ALL HORSES\", \"ALL COACHES\", \"ALL MOUNTS\", \"ALL CLOTHING\", \"ALL WEAPONS\", \"ALL SATCHEL EXCLUDING CLOTHING\", \"ALL EXCLUDING CLOTHING\"\nslotId: -1591664384\np3: outCollectionSize (?)\nReturns collectionId"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_CREATE_ITEM_COLLECTION","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_CREATE_ITEM_COLLECTION.md","snippets":{"lua":"local retval, size = InventoryCreateItemCollection(inventoryId, filterName, slotId, size)","luaInvoke":"local retval, size = Citizen.InvokeNative(0x80D78BDC9D88EF07, inventoryId, filterName, slotId, Citizen.PointerValueIntInitialized(size), Citizen.ResultAsInteger())","js":"const [retval, size] = InventoryCreateItemCollection(inventoryId, filterName, slotId, size);","jsInvoke":"const [retval, size] = Citizen.invokeNative('0x80D78BDC9D88EF07', inventoryId, filterName, slotId, Citizen.pointerValueIntInitialized(size), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var size = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x80D78BDC9D88EF07, inventoryId, filterName, slotId, size);\n// size.GetResult<int>()","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 last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","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."]}}