CONFIG
DEFAULT CONFIG
Config = {}
Config.Styles = {
-- must include default, this is a fallback for an invalid style
["default"] = {
shape = "diamond",
color = "#E3A428",
icon = "fa-solid fa-bell"
},
-- default qbcore / esx
["success"] = {
shape = "diamond",
color = "#28E373",
icon = "fa-solid fa-thumbs-up"
},
["info"] = {
shape = "diamond",
color = "#28A0E3",
icon = "fa-solid fa-lightbulb"
},
["warning"] = {
shape = "diamond",
color = "#E36028",
icon = "fa-solid fa-exclamation"
},
["error"] = {
shape = "diamond",
color = "#FF2222",
icon = "fa-solid fa-xmark"
},
["phonemessage"] = {
shape = "diamond",
color = "#E328AF",
icon = "fa-solid fa-phone"
},
-- add custom styles here
-- ["custom"] = {
-- shape = "diamond",
-- color = "#8628E3",
-- icon = "fa-solid fa-plus"
-- },
}
--[[
DOCUMENTATION:
https://docs.ratlabs.pro/docs/scripts/rat-notify
]]
ADDING NEW STYLES
Insert your custom styles inside of the config.lua
file in the Config.Styles table
EXAMPLE
Config.Styles = {
-- existing styles here
["warning"] = {
color = "FF0000", -- red hex color
icon = "fa-solid fa-triangle-exclamation", -- https://fontawesome.com/icons/triangle-exclamation?f=classic&s=solid
shape = "circle"
}
}
Last updated