{"hash":"0x97A3646645727F42","ns":"INVENTORY","name":"_INVENTORY_CREATE_ITEM_COLLECTION_2","slug":"_INVENTORY_CREATE_ITEM_COLLECTION_2","official":false,"named":true,"luaName":"InventoryCreateItemCollection_2","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"collectionSize","type":"int*"}],"summary":"Returns collectionId","descriptions":[{"source":"alloc8or","format":"text","body":"Returns collectionId"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1232","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_CREATE_ITEM_COLLECTION_2","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_CREATE_ITEM_COLLECTION_2.md","snippets":{"lua":"local retval, collectionSize = InventoryCreateItemCollection_2(collectionSize)","luaInvoke":"local retval, collectionSize = Citizen.InvokeNative(0x97A3646645727F42, Citizen.PointerValueIntInitialized(collectionSize), Citizen.ResultAsInteger())","js":"const [retval, collectionSize] = InventoryCreateItemCollection_2(collectionSize);","jsInvoke":"const [retval, collectionSize] = Citizen.invokeNative('0x97A3646645727F42', Citizen.pointerValueIntInitialized(collectionSize), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var collectionSize = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x97A3646645727F42, collectionSize);\n// collectionSize.GetResult<int>()","notes":["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."]}}