⚙️Full Configuration Breakdown

🔹config.lua (Server-Side)

🔧 Core Settings

-- Notification duration (default: 5 seconds)  
Config.DefaultDuration = 5000 -- in milliseconds  

-- Framework detection (supports ESX/QBCore/standalone)  
Config.Framework = {  
    AutoDetect = true,          -- Automatically detect ESX/QBCore  
    Type = "newesx",            -- Manual override: "oldesx", "newesx", "qbcore"  
    ESXExport = "es_extended",  -- ESX resource name  
    QBCoreResource = "qb-core"  -- QBCore resource name  
}  

💬 Team Chat

Config.TeamChat = {  
    Enabled = true,  
    Command = "tc",               -- Command: /tc [message]  
    AllowedGroups = {             -- Staff groups with access  
        ["admin"] = true,  
        ["mod"] = true  
    },  
    ShowSteamID = true,           -- Log SteamID to deter trolling  
    Cooldown = 3000,              -- 3-second delay between messages  
    Prefix = "[STAFF]"            -- Chat message prefix  
}  

👮 Job Chat

📩 Direct Messages


🔸 html/config.js (Client-Side UI)

📍 Position & Layout

🎨 Appearance

✨ Animations

🔔 Notification Types


3. translation.lua (Multi-Language)


🔧 Common Config Scenarios

Change Notification Position

  1. Edit html/config.js

  2. Set positionPreset: "bottom-right"

Add a New Job Chat

  1. Edit config.lua under Config.JobChat.AllowedJobs:

Disable Glass Effect for Low-End PCs


🚦 Troubleshooting

  • Notifications Not Showing?

    1. Check ensure X_HUD_Notify in server.cfg.

    2. Verify no conflicts with other HUD scripts.

  • Chat Commands Not Working?

    1. Ensure Config.Framework.AutoDetect matches your framework.

    2. Check group/job names in config.lua.

Need Help? Join FiveWorld Discordarrow-up-right for config reviews and optimization! 🚗💨

Last updated