Skip to main content

Configuration

Everything is in config.lua.

Appearance​

SettingDefaultWhat it does
Config.DefaultPosition'top-center'Where notifications appear by default
Config.DefaultType'info'The type used when none is given
Config.UiScale1.0Size of the notifications
Config.SafeX / Config.SafeY26 / 30Pixels from the screen edges
Config.AvoidMinimaptrueKeeps notifications from covering the minimap

Limits​

SettingDefaultWhat it does
Config.MaxVisible5How many show at once per position
Config.MaxQueue30How many can wait to be shown
Config.MaxMessageLength300Longest message, in characters
Config.DefaultDuration5500Milliseconds on screen
Config.MaxDuration60000Longest duration allowed, in milliseconds
Config.Volume0.5Sound 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.