Configuration
Everything is in config.lua.
Appearance
| Setting | Default | What it does |
|---|---|---|
Config.DefaultPosition | 'top-center' | Where notifications appear by default |
Config.DefaultType | 'info' | The type used when none is given |
Config.UiScale | 1.0 | Size of the notifications |
Config.SafeX / Config.SafeY | 26 / 30 | Pixels from the screen edges |
Config.AvoidMinimap | true | Keeps notifications from covering the minimap |
Limits
| Setting | Default | What it does |
|---|---|---|
Config.MaxVisible | 5 | How many show at once per position |
Config.MaxQueue | 30 | How many can wait to be shown |
Config.MaxMessageLength | 300 | Longest message, in characters |
Config.DefaultDuration | 5500 | Milliseconds on screen |
Config.MaxDuration | 60000 | Longest duration allowed, in milliseconds |
Config.Volume | 0.5 | Sound volume, 0.0 to 1.0 |
Player settings menu
config.lua
Config.AllowPlayerSettings = true
Config.SettingsCommand = 'notifysettings'
Buttons
config.lua
Config.FocusKey = 'F10' -- shows the cursor (ESC hides it)
Config.FocusCommand = 'notifyfocus'
Config.ActionEventAllowlist = {} -- empty = any event, or e.g. { 'myjob:setGps' }
Test commands
config.lua
Config.EnableTestCommands = true -- set to false on a live server
Config.TestCommand = 'notifytest'
Config.ShowcaseCommand = 'notifyshowcase'
Config.ClearCommand = 'notifyclear'
Permissions
config.lua
Config.AdminAce = 'gs.notify.admin'
Config.ServerEventRateLimit = { count = 8, window = 5000 } -- requests per window (ms)
Works with other notification systems
These are off by default. Turn on only what you need, or you may see notifications twice:
config.lua
Config.Compatibility = {
qbcoreEvent = false, -- QBCore:Notify
esxEvent = false, -- esx:showNotification
oxLibEvent = false, -- ox_lib:notify
genericEvents = false -- gs_notify:notify, notifications:client:notify
}
warning
Qbox uses ox_lib's notifications. If you turn on oxLibEvent, turn off ox_lib's own notifications too, or every notification shows twice.