Config
The config variables of Orbit are also available to the API. They work very similarly to LUA menu elements.
If you are unsure of the config element names, just open up a ".cfg" file generated by Orbit, and take a look.
Getting config elements
local bool = GetConfigBool("ConfigElement")
local int = GetConfigInt("ConfigElement")
local float = GetConfigFloat("ConfigElement")
local color = GetConfigColor("ConfigElement")
Setting config elements
local Value = false
SetConfigBool("ConfigElement", Value)
local Value = 0
SetConfigInt("ConfigElement", Value)
local Value = 0.0
SetConfigFloat("ConfigElement", Value)
local Value = Color(255, 255, 255, 255)
SetConfigColor("ConfigElement", Value)
Last updated on
Was this page helpful?