# config

Responsible for getting / setting config values.


# Functions

# config.set(key: string, value: any)

config.set(key: string, value: any)
  • Sets a configuration value identified by the specified key to the desired value.
secret.config.set("misc_auto_strafe", false)
secret.config.set("misc_auto_strafe_smooth", 50)
secret.config.set("Scheme", {255, 255, 255, 255})

# config.get(key: string): any

config.get(key: string): any
  • Retrieves the current value of a configuration parameter identified by the specified key.
local autostrafe = secret.config.get("misc_auto_strafe")
local strafesmooth = secret.config.get("misc_auto_strafe_smooth")
print("misc_auto_strafe:", autostrafe) 
print("misc_auto_strafe_smooth:", strafesmooth) 

local r, g, b, a = secret.config.get("Scheme")
print("Menu Scheme:", r, g, b, a)

# config.load(config_name: string)

config.load(config_name: string)
  • Loads an existing configuration file by its name.
secret.config.load("my_config")