โš™๏ธ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 Discord for config reviews and optimization! ๐Ÿš—๐Ÿ’จ

Last updated