{"hash":"0x4A47E38EA3D60939","ns":"STATS","name":"_STAT_ID_INCREMENT_FLOAT","slug":"_STAT_ID_INCREMENT_FLOAT","official":false,"named":true,"luaName":"StatIdIncrementFloat","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"statId","type":"Any*"},{"name":"value","type":"float"}],"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_INCREMENT_FLOAT","markdownUrl":"https://natives.borderlinerp.com/natives/STATS/_STAT_ID_INCREMENT_FLOAT.md","snippets":{"lua":"local statId = StatIdIncrementFloat(value)","luaInvoke":"local statId = Citizen.InvokeNative(0x4A47E38EA3D60939, Citizen.PointerValueInt(), value)","js":"const statId = StatIdIncrementFloat(value);","jsInvoke":"const statId = Citizen.invokeNative('0x4A47E38EA3D60939', Citizen.pointerValueInt(), value + 0.0000001);","csharp":"var statId = new OutputArgument();\nFunction.Call((Hash)0x4A47E38EA3D60939, 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.","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."]}}