Docs Configuration

Configuration

Change how a script works from its config files, without touching the core code.

The config file

Open config.lua inside the resource. Every option is commented; change what you need and restart the resource.

config.lua
Config = {}

Config.Framework = 'auto'  -- or 'esx', 'qbcore', 'qbox'
Config.Locale    = 'en'
Config.UseTarget = true    -- use a target system instead of key prompts
Config.Debug     = false

Common options

OptionWhat it does
Config.FrameworkWhich framework to use. 'auto' detects it when the script starts.
Config.LocaleLanguage of the texts players see.
Config.UseTargetUse a target system instead of key prompts.
Config.DebugPrint extra information to the console. Turn it off on a live server.

Apply your changes

Save the file and restart the resource from the server console:

server console
restart swagstudio_script
Tip: keep your changes in the config files only. When an update comes out, you can copy your config back over without merging code.