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