{"hash":"0xD1D31681","ns":"CFX","name":"SET_VISUAL_SETTING_FLOAT","slug":"SET_VISUAL_SETTING_FLOAT","official":true,"named":true,"luaName":"SetVisualSettingFloat","game":"cfx","apiset":"client","returnType":"void","params":[{"name":"name","type":"char*","description":"The name of the value to set, such as `pedLight.color.red`."},{"name":"value","type":"float","description":"The value to write."}],"summary":"Overrides a floating point value from visualsettings.dat temporarily.","descriptions":[{"source":"cfx","format":"md","body":"Overrides a floating point value from `visualsettings.dat` temporarily."}],"examples":[],"aliases":[],"enums":[],"related":["0x15346B4D"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_VISUAL_SETTING_FLOAT","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_VISUAL_SETTING_FLOAT.md","snippets":{"lua":"SetVisualSettingFloat(name, value)","luaInvoke":"Citizen.InvokeNative(0xd1d31681, name, value)","js":"SetVisualSettingFloat(name, value);","jsInvoke":"Citizen.invokeNative('0xd1d31681', name, value + 0.0000001);","csharp":"Function.Call((Hash)0xd1d31681, name, value);","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."]}}