βš™οΈConfiguration

Detailed explanation of the config file to adapt the resource to your player needs.

The config.lua

Config = {}

-- ============================================================
-- πŸ”§ General Settings
-- ============================================================

Config.debug    = false        -- Enable debug mode (prints detailed logs to console)
Config.Language = 'en'         -- UI language
-- Available: 'en', 'fr', 'es', 'de', 'it', 'pt', 'pl', 'tr', 'ru', 'ar'

-- ============================================================
-- πŸ›‘οΈ Admin Panel Settings
-- ============================================================

Config.Admin = {
    command = 'jobadminpanel',  -- Chat command to open admin panel (e.g. /jobadminpanel)
    key     = false,            -- Keyboard shortcut ('F1', 'F2')
}

-- ============================================================
-- πŸ§‘β€πŸ€β€πŸ§‘ Gang Management
-- ============================================================
-- Works ONLY with default QBCore gang system
-- Disable if using a custom gang script

Config.ManageGangs = false

-- ============================================================
-- πŸ–ΌοΈ Default Gallery Images
-- ============================================================
-- Images shown when no custom images are uploaded
-- Useful to showcase your business or organization

Config.DefaultGallery = {
    -- {
    --     name    = 'Streets HD',
    --     url     = 'https://example.com/image.png',
    --     creator = 'Your Name',
    --     date    = '2024-01-15', -- YYYY-MM-DD
    -- },
}

-- ============================================================
-- πŸ“‹ Boss Menu Sections
-- ============================================================
-- Toggle menu visibility for all users
-- true  = enabled
-- false = hidden completely

Config.Menus = {
    Dashboard = true,  -- Statistics & charts
    Employees = true,  -- Hire / fire / promote employees
    Money     = true,  -- Society money management
    Outfits   = true,  -- Uniform creation & management
    Gallery   = true,  -- Image upload & viewer
    Stash     = true,  -- Boss stash access
    Notes     = true,  -- Notes & pinned memos
    Vehicles  = true,  -- Vehicle spawning & assignment
    Logs      = true,  -- Action & activity logs
    Ranks     = true,  -- Rank labels & salaries (salary ≀ boss salary)
}

-- ============================================================
-- πŸ” Admin Allowlist (OVERRIDES ALL PERMISSIONS)
-- ============================================================
-- IMPORTANT:
-- If this list contains ANY identifiers, ONLY those listed
-- will have access to the admin panel.
--
-- If EMPTY, normal framework / ACE permissions apply.

-- Supported identifier formats:
--  β€’ Steam License : license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
--  β€’ Discord ID    : discord:xxxxxxxxxxxxxxxxxxx
--  β€’ FiveM ID      : fivem:xxxxxxx
--  β€’ IP Address    : ip:xxx.xxx.xx.xx   (not recommended)
--  β€’ Steam Hex     : steam:xxxxxxxxxxxxxxx

-- Example:
-- Config.Allowlist = {
--     'license:8839E9088F7F45D5A879F1A5B5C5A5C5A5C5',
--     'discord:123456789012345678',
-- }

Config.Allowlist = {
    -- 'license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    -- 'discord:xxxxxxxxxxxxxxxxxxx',
    -- 'fivem:xxxxxxx',
    -- 'ip:xxx.xxx.xx.xx',
    -- 'steam:xxxxxxxxxxxxxxx',
}

Last updated