setNeonClientSetting
Client-side
Applies a resource-owned session override for an allowlisted San Andreas Online radar or SkyGFX setting.
Syntax
bool setNeonClientSetting(string name, bool|number|string value)Arguments
namestringAllowlisted setting name.
valuebool|number|stringValue with the type and range required by that setting.
Returns
true when the override was validated and applied; false otherwise.
Ownership and lifecycle
Visual overrides belong to the calling client resource, stack by resource ownership, never replace the player's saved preferences, and are removed automatically when the resource stops.
Important behavior
- Overrides never overwrite the player's saved preference.
- Setting radar.style also applies the neutral San Andreas Online radar geometry baseline for that profile.
- Later resource overrides stack; stopping a resource reveals the previous effective value.
Example
setNeonClientSetting("radar.style", "definitive")Where this comes from
SOURCECLuaClientDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaClientDefs.cpp INTRODUCED / EXTENDEDfb8ee02c4Read the commit and why the change was made
RELATED SA:O APIS
Read the system guide → Continue exploring
← Back to the SA:O Lua API · How San Andreas Online client visuals works →