{"hash":"0x71EFA7999AE79408","ns":"ITEMDATABASE","name":"_ITEMDATABASE_CREATE_ITEM_COLLECTION","slug":"_ITEMDATABASE_CREATE_ITEM_COLLECTION","official":false,"named":true,"luaName":"ItemdatabaseCreateItemCollection","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"data","type":"Any*"},{"name":"size","type":"int*"},{"name":"comparisonType","type":"int"}],"summary":"Returns collectionId to be used with 0x8750F69A720C2E41 (p0) and 0xCBB7B6EDFA933ADE (p0) alignas(8) Hash slotId; alignas(8) Hash slotId2; alignas(8) Hash tag; alignas(8) Hash ciCategory; alignas(8) Hash cost; alignas(8) Hash unk5; aligna…","descriptions":[{"source":"alloc8or","format":"text","body":"Returns collectionId to be used with 0x8750F69A720C2E41 (p0) and 0xCBB7B6EDFA933ADE (p0)\nstruct ItemCollectionFilter\n{\n\talignas(8) Hash slotId;\n\talignas(8) Hash slotId2;\n\talignas(8) Hash tag;\n\talignas(8) Hash ciCategory;\n\talignas(8) Hash cost;\n\talignas(8) Hash unk5;\n\talignas(8) int  flags;\n\talignas(8) Hash itemType;\n\talignas(8) Hash ciTag;\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_CREATE_ITEM_COLLECTION","markdownUrl":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_CREATE_ITEM_COLLECTION.md","snippets":{"lua":"local retval, data, size = ItemdatabaseCreateItemCollection(comparisonType)","luaInvoke":"local retval, data, size = Citizen.InvokeNative(0x71EFA7999AE79408, Citizen.PointerValueInt(), Citizen.PointerValueInt(), comparisonType, Citizen.ResultAsInteger())","js":"const [retval, data, size] = ItemdatabaseCreateItemCollection(comparisonType);","jsInvoke":"const [retval, data, size] = Citizen.invokeNative('0x71EFA7999AE79408', Citizen.pointerValueInt(), Citizen.pointerValueInt(), comparisonType, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var data = new OutputArgument();\nvar size = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x71EFA7999AE79408, data, size, comparisonType);\n// data.GetResult<int>()\n// size.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`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."]}}