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 development

Framework Settings

Selecting Your Framework

circle-info

QBox Users: QBox is fully compatible with our scripts. Simply set Config.Framework = 'qb' to use QBox.

circle-info

Standalone Mode: In standalone mode, there is no inventory system. Rewards are handled through the money system only.


Inventory Settings

Supported Inventory Systems

System
Config Value

QBCore Inventory

'qb_inventory'

ESX Inventory

'esx_inventory'

ox_inventory

'ox_inventory'

qs-inventory

'qs_inventory'

tgiann-inventory

'tgiann-inventory'

codem-inventory

'codem-inventory'

circle-exclamation

Interaction Settings

System
Config Value
Description

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

System
Config Value

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:

System
Auto-detected

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

circle-exclamation

Commands

Most scripts include configurable commands:


UI Positions

Some scripts allow you to customize UI element positions:


Best Practices

  1. Always backup your config before making changes

  2. Test changes on a development server first

  3. Read comments in the config file for guidance

  4. Check console for errors after changes

  5. Use correct config values - refer to the tables above

circle-exclamation

Need Help?

circle-info

Having configuration issues? Join our Discord serverarrow-up-right and open a support ticket.

Last updated