{"hash":"0xE141F6B40B1E3683","ns":"STATS","name":"_0xE141F6B40B1E3683","slug":"0xE141F6B40B1E3683","official":false,"named":false,"luaName":"N_0xe141f6b40b1e3683","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"statId","type":"Any*"},{"name":"value","type":"float"}],"summary":"Only used in R* SP Scripts _STAT_ID_SET_*","descriptions":[{"source":"alloc8or","format":"text","body":"statId: see STAT_ID_IS_VALID\nOnly used in R* SP Scripts\n_STAT_ID_SET_*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/STATS/0xE141F6B40B1E3683","markdownUrl":"https://natives.borderlinerp.com/natives/STATS/0xE141F6B40B1E3683.md","snippets":{"lua":"local statId = N_0xe141f6b40b1e3683(value)","luaInvoke":"local statId = Citizen.InvokeNative(0xE141F6B40B1E3683, Citizen.PointerValueInt(), value)","js":"const statId = N_0xe141f6b40b1e3683(value);","jsInvoke":"const statId = Citizen.invokeNative('0xE141F6B40B1E3683', Citizen.pointerValueInt(), value + 0.0000001);","csharp":"var statId = new OutputArgument();\nFunction.Call((Hash)0xE141F6B40B1E3683, statId, value);\n// statId.GetResult<int>()","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","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_0xe141f6b40b1e3683` (if present in the client snapshot). `InvokeNative` with the hash always works."]}}