{"hash":"0xA4DDF5DF95E65EEE","ns":"STATS","name":"STAT_ID_SET_INT","slug":"STAT_ID_SET_INT","official":true,"named":true,"luaName":"StatIdSetInt","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"statId","type":"Any*"},{"name":"value","type":"int"},{"name":"p2","type":"BOOL"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"statId: see STAT_ID_IS_VALID"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/STATS/STAT_ID_SET_INT","markdownUrl":"https://natives.borderlinerp.com/natives/STATS/STAT_ID_SET_INT.md","snippets":{"lua":"local retval, statId = StatIdSetInt(value, p2)","luaInvoke":"local retval, statId = Citizen.InvokeNative(0xA4DDF5DF95E65EEE, Citizen.PointerValueInt(), value, p2, Citizen.ReturnResultAnyway())","js":"const [retval, statId] = StatIdSetInt(value, p2);","jsInvoke":"const [retval, statId] = Citizen.invokeNative('0xA4DDF5DF95E65EEE', Citizen.pointerValueInt(), value, p2, Citizen.returnResultAnyway());","csharp":"var statId = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xA4DDF5DF95E65EEE, statId, value, p2);\n// statId.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."]}}