ORION SOLUTIONS LUA API
Settings
Read, update and check Orion Solutions settings from Lua.
The settings library provides access to settings registered with the Orion Solutions Lua settings layer.
settings.get
settings.get(name: string): boolean | number | table | nilReturns the current value of a registered setting, or nil when the name is not registered.
Example
local enabled = settings.get("misc.auto_jump")
print(enabled)
settings.set
settings.set(name: string, value: any): booleanUpdates a registered setting. Returns whether the value could be applied.
Example
settings.set("misc.auto_jump", true)
settings.set("ragebot.deagle.min_damage", 70)
settings.exists
settings.exists(name: string): booleanReturns whether a setting name is registered.
Example
if settings.exists("misc.auto_jump") then
print(settings.get("misc.auto_jump"))
end
Color Values
Color settings are represented as Lua tables containing r, g, b and a.
settings.set("example.color", {
r = 118,
g = 118,
b = 255,
a = 255
})