mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 00:01:22 +00:00
refactor(ui/notify): Cleanup internal code & new config options
This commit is contained in:
+34
@@ -33,3 +33,37 @@ QBConfig.Server.uptime = 0 -- Time the server has been up.
|
||||
QBConfig.Server.whitelist = false -- Enable or disable whitelist on the server
|
||||
QBConfig.Server.discord = "" -- Discord invite link
|
||||
QBConfig.Server.PermissionList = {} -- permission list
|
||||
|
||||
QBConfig.Notify = {}
|
||||
|
||||
QBConfig.Notify.NotificationStyling = {
|
||||
group = false, -- Allow notifications to stack with a badge instead of repeating
|
||||
position = "right", -- top-left | top-right | bottom-left | bottom-right | top | bottom | left | right | center
|
||||
progress = true -- Display Progress Bar
|
||||
}
|
||||
|
||||
-- These are how you define different notification variants
|
||||
-- The "color" key is background of the notification
|
||||
-- The "icon" key is the css-icon code, this project uses `Material Icons` & `Font Awesome`
|
||||
QBconfig.Notify.VariantDefinitions = {
|
||||
success = {
|
||||
color = 'green',
|
||||
icon = 'done'
|
||||
},
|
||||
primary = {
|
||||
color = 'blue',
|
||||
icon = 'info'
|
||||
},
|
||||
error = {
|
||||
color = 'red',
|
||||
icon = 'dangerous'
|
||||
},
|
||||
police = {
|
||||
color = 'blue',
|
||||
icon = 'local_police'
|
||||
},
|
||||
ambulance = {
|
||||
color = 'red',
|
||||
icon = 'fas fa-ambulance'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user