Skip to main content

Discord Bot Token

Config.DiscordBotToken = ""
Used for Discord avatar fetching in logs. Leave blank to disable.

Logging

Config.Logging = {
    Enabled               = true,
    System                = '',         -- 'discord' or 'fivemanage'
    FivemanageToken       = '',
    WebhookAdminActions   = '',
    WebhookPublicCrafting = '',
    UILogAutoDelete       = false,
    UILogDeleteDays       = 30,
    Colors = {
        CraftSuccess = 65280,       -- Green
        CraftFail    = 16711680,    -- Red
        Security     = 16776960,    -- Yellow
    }
}
  • System'discord' for webhook logging, 'fivemanage' for FiveManage integration
  • WebhookAdminActions — Receives admin events: XP changes, bench/recipe edits
  • WebhookPublicCrafting — Receives public events: orders, failures, exploit attempts

Admins

Config.Admins = {
    "license:YOUR_LICENSE_HASH_HERE",
}
License identifiers with full admin panel access. Server-side only. Add multiple entries for multiple admins.
Config.AdminAccessAlways = true
When true, admins bypass all bench restrictions — time locks, job/gang/item locks, etc.

Commands

Config.Commands = {
    AddXP      = 'addcraftxp',
    RemoveXP   = 'removecraftxp',
    AdminPanel = 'craftadmin'
}
Rename any command to avoid conflicts with existing resources.

UI

Config.UI = {
    Logo          = 'img/server_logo.png',
    ServerName    = 'Your Server Name',
    Description   = 'Underground Manufacturing',
    DiscordLink   = 'discord.gg/yourlink',
    InventoryPath = 'nui://qb-inventory/html/images/',
    MoneyLabels = {
        ['cash']        = 'Cash',
        ['bank']        = 'Bank',
        ['black_money'] = 'Dirty Money'
    }
}
  • Logo — Path relative to html/. Drop your logo into html/img/
  • InventoryPath — Points to your inventory script’s image folder for item icons
InventoryPath
qb-inventorynui://qb-inventory/html/images/
qs-inventorynui://qs-inventory/html/images/

Runtime Data

The following are populated at runtime from data/ JSON files and the admin panel. Do not edit these in config.lua — changes will be overwritten:
Config.CategoryLabels  = {}
Config.Locations       = {}
Config.PortableBenches = {}
Config.Recipes         = {}
Config.Locales         = {}
Config.Pager           = {}
All of these are managed through the in-game admin panel.