{"hash":"0x112BCA290D2EB53C","ns":"INVENTORY","name":"_INVENTORY_GET_INVENTORY_ITEM_LAST_CREATION","slug":"_INVENTORY_GET_INVENTORY_ITEM_LAST_CREATION","official":false,"named":true,"luaName":"InventoryGetInventoryItemLastCreation","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"inventoryId","type":"int"},{"name":"item","type":"Hash"},{"name":"year","type":"int*"},{"name":"month","type":"int*"},{"name":"day","type":"int*"},{"name":"hour","type":"int*"},{"name":"minute","type":"int*"},{"name":"second","type":"int*"}],"summary":"Outputs the last creation date of the item for the selected inventory.","descriptions":[{"source":"alloc8or","format":"text","body":"Outputs the last creation date of the item for the selected inventory. Returns true if successful, false otherwise."},{"source":"vorp","format":"text","body":"Returns the last creation date of an inventory item"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_LAST_CREATION","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_LAST_CREATION.md","snippets":{"lua":"local retval, year, month, day, hour, minute, second = InventoryGetInventoryItemLastCreation(inventoryId, item)","luaInvoke":"local retval, year, month, day, hour, minute, second = Citizen.InvokeNative(0x112BCA290D2EB53C, inventoryId, item, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, year, month, day, hour, minute, second] = InventoryGetInventoryItemLastCreation(inventoryId, item);","jsInvoke":"const [retval, year, month, day, hour, minute, second] = Citizen.invokeNative('0x112BCA290D2EB53C', inventoryId, item, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var year = new OutputArgument();\nvar month = new OutputArgument();\nvar day = new OutputArgument();\nvar hour = new OutputArgument();\nvar minute = new OutputArgument();\nvar second = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x112BCA290D2EB53C, inventoryId, item, year, month, day, hour, minute, second);\n// year.GetResult<int>()\n// month.GetResult<int>()\n// day.GetResult<int>()\n// hour.GetResult<int>()\n// minute.GetResult<int>()\n// second.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` ``.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","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."]}}