Configuration Basics
Learn how to configure Tworst Scripts for your server.
Config File Structure
All Tworst Scripts use a config/config.lua file for configuration. Here's the basic structure:
Config = {}
-- Framework Selection
-- 'standalone' = No framework required, money system only (no inventory script needed)
-- Other options: esx, oldesx, qb, oldqb, vrp, vrp2
Config.Framework = 'qb'
-- Language
Config.Locale = 'en' -- Available: 'en', 'tr', 'de', 'fr', 'pt', 'ru', 'ar'
-- Currency Display
Config.CurrencyUnit = '$' -- Options: '$', '€', '₺'
-- Database Resource
Config.SQL = "oxmysql" -- Options: 'oxmysql', 'mysql-async', 'ghmattimysql'
-- Inventory System (only for framework modes)
Config.Inventory = "qb_inventory" -- Options: 'qb_inventory', 'esx_inventory', 'ox_inventory', 'qs_inventory', 'tgiann-inventory', 'codem-inventory'
-- Interaction System
Config.InteractionHandler = 'drawtext' -- Options: 'drawtext', 'ox-target', 'qb-target'
-- Debug Mode
Config.Debug = false -- Set to true for developmentFramework Settings
Selecting Your Framework
Inventory Settings
Supported Inventory Systems
QBCore Inventory
'qb_inventory'
ESX Inventory
'esx_inventory'
ox_inventory
'ox_inventory'
qs-inventory
'qs_inventory'
tgiann-inventory
'tgiann-inventory'
codem-inventory
'codem-inventory'
Inventory systems only work with framework modes (not standalone).
Interaction Settings
DrawText
'drawtext'
Built-in text prompts (no dependency)
qb-target
'qb-target'
QBCore target system
ox_target
'ox-target'
Overextended target system
Clothing System
If your script supports job clothing:
Supported Clothing Scripts
qb-clothing
'qb-clothing'
illenium-appearance
'illenium-appearance'
fivem-appearance
'fivem-appearance'
esx_skin
'esx_skin'
rcore_clothing
'rcore_clothing'
Vehicle Key System
For scripts that use vehicles:
The script automatically detects your vehicle key system. Supported systems:
qb-vehiclekeys
✅
qbx-vehiclekeys
✅
qs-vehiclekeys
✅
wasabi-carlock
✅
cd_garage
✅
Renewed-Vehiclekeys
✅
Fuel System
For scripts that spawn vehicles:
Job Settings
Common job-related settings:
Debug Settings
Always set Config.Debug = false on production servers for better performance.
Commands
Most scripts include configurable commands:
UI Positions
Some scripts allow you to customize UI element positions:
Best Practices
Always backup your config before making changes
Test changes on a development server first
Read comments in the config file for guidance
Check console for errors after changes
Use correct config values - refer to the tables above
After modifying config.lua, restart the resource with ensure [script-name] or restart the server.
Need Help?
Last updated

