{"hash":"0xD08685BA892DBFAB","ns":"INVENTORY","name":"_0xD08685BA892DBFAB","slug":"0xD08685BA892DBFAB","official":false,"named":false,"luaName":"N_0xd08685ba892dbfab","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"inventoryId","type":"int"},{"name":"guid","type":"Any*"},{"name":"p2","type":"int*"},{"name":"p3","type":"int*"}],"summary":"Only used in R* SP Scripts","descriptions":[{"source":"alloc8or","format":"text","body":"Params: p3 returns an int between 0 and 20 (?)\nOnly used in R* SP Scripts"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/0xD08685BA892DBFAB","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/0xD08685BA892DBFAB.md","snippets":{"lua":"local retval, guid, p2, p3 = N_0xd08685ba892dbfab(inventoryId)","luaInvoke":"local retval, guid, p2, p3 = Citizen.InvokeNative(0xD08685BA892DBFAB, inventoryId, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, guid, p2, p3] = N_0xd08685ba892dbfab(inventoryId);","jsInvoke":"const [retval, guid, p2, p3] = Citizen.invokeNative('0xD08685BA892DBFAB', inventoryId, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var guid = new OutputArgument();\nvar p2 = new OutputArgument();\nvar p3 = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xD08685BA892DBFAB, inventoryId, guid, p2, p3);\n// guid.GetResult<int>()\n// p2.GetResult<int>()\n// p3.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.","This native has no known name, so the runtime exposes it only as `N_0xd08685ba892dbfab` (if present in the client snapshot). `InvokeNative` with the hash always works."]}}