{"hash":"0x481BDF6A10C5EF68","ns":"STATS","name":"STAT_ID_SET_FLOAT","slug":"STAT_ID_SET_FLOAT","official":true,"named":true,"luaName":"StatIdSetFloat","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"statId","type":"Any*"},{"name":"value","type":"float"},{"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_FLOAT","markdownUrl":"https://natives.borderlinerp.com/natives/STATS/STAT_ID_SET_FLOAT.md","snippets":{"lua":"local retval, statId = StatIdSetFloat(value, p2)","luaInvoke":"local retval, statId = Citizen.InvokeNative(0x481BDF6A10C5EF68, Citizen.PointerValueInt(), value, p2, Citizen.ReturnResultAnyway())","js":"const [retval, statId] = StatIdSetFloat(value, p2);","jsInvoke":"const [retval, statId] = Citizen.invokeNative('0x481BDF6A10C5EF68', Citizen.pointerValueInt(), value + 0.0000001, p2, Citizen.returnResultAnyway());","csharp":"var statId = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x481BDF6A10C5EF68, statId, value, p2);\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."]}}