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
| Option | What it does |
|---|---|
Config.Framework | Which framework to use. 'auto' detects it when the script starts. |
Config.Locale | Language of the texts players see. |
Config.UseTarget | Use a target system instead of key prompts. |
Config.Debug | Print 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.