⚙️Script Configuration
Adjustments guide for mg-notify
Database Configuration
Specifies which MySQL library your server uses for database operations.
Options include:
🔹oxmysql
🔹ghmattimysql
🔹mysql-async
🔹autodetect
(automatically detects installed SQL resource)
Config.SQL = "oxmysql" -- oxmysql | -- ghmattimysql | -- mysql-async | -- autodetect
Default Volume Configuration
Sets the volume level for notification sounds (0.0 = silent, 1.0 = max volume).
Example: 0.30
= 30% volume.
Config.Volume = 0.30
Default Timer Configuration
Sets the default display duration (in milliseconds) for notifications when no specific time is provided. Example: 5000
= 5 seconds.
Config.DefaultTime = 5000
Default Position Configuration
Defines where notifications appear on the screen.
Options:
🔹top-left
🔹top-center
🔹top-right
🔹bottom-left
🔹bottom-center
🔹bottom-right
Config.DefaultNotificationPosition = "top-right"
Settings Command
Defines the command to open the notification settings menu.
Players type /notisettings
(by default) to customize their notification preferences.
Config.CommandName = "notisettings"
Language Configuration
Modify these values to translate UI elements (titles, buttons, position options) or adapt wording for your server.

Theme Configuration
This block defines the notification Themes:
["example"] = { -- Theme ID used in scripts/events
background = {
color = 'linear-gradient(135deg, #2A0944 0%, rgba(42, 9, 68, 0.8) 100%)', -- Purple gradient
},
title = {
color = '#FEC260', -- Golden yellow text
textShadow = 'rgba(254, 194, 96, 0.35)', -- Subtle golden glow
},
iconBox = {
overlayColor = '#3B185F', -- Dark purple overlay
shadow = 'rgba(59, 24, 95, 0.25)', -- Purple shadow
},
timerBar = {
trailColor = '#2A094440', -- Transparent purple trail
color = '#A12568', -- Pinkish progress bar
shadow = '0px 0px 12px #A12568', -- Pink glow
},
defaultHeader = 'EXAMPLE NOTIFICATION', -- Default header text
icon = 'example', -- Requires example.svg in assets/icons
},
Explanation:
🔹 Each theme requires a unique ID (e.g., "police"
, "admin"
)
🔹 SVG icons must be placed in html/assets/icons
🔹 Colors support HEX, RGB, and gradient formats
🔹 All parameters have default fallback values
Last updated