Configuration
The configuration file can be found in the config.lua
file.
Framework
Option | Type | Description |
---|---|---|
Framework | string | Framework support (qbCore, esx or standalone) |
config.lua
Config.Framework = "qbCore"
Notification
Option | Type | Description |
---|---|---|
useCustom | boolean | Use custom notifications |
customNotify | function | Custom notification function |
Styling
Option | Type | Description |
---|---|---|
group | boolean | Allow stacking with a badge instead of repeating |
position | string | Position (top-left, top-right, bottom-left, bottom-right, top, bottom, left, right, center) |
progress | boolean | Display progress bar |
Variants
Option | Type | Description |
---|---|---|
classes | string | CSS classes |
icon | string | CSS icon (Font Awesome) |
config.lua
Config.Notification = {
useCustom = false,
customNotify = function(text, textType, length)
--- Your custom notification code
end,
styling = {
group = false,
position = "right",
progress = true
},
variants = {
info = {
classes = 'info',
icon = 'fa-solid fa-circle-info'
},
success = {
classes = 'success',
icon = 'fa-solid fa-circle-check'
},
warning = {
classes = 'warning',
icon = 'fa-solid fa-triangle-exclamation'
},
error = {
classes = 'error',
icon = 'fa-solid fa-circle-xmark'
}
}
}