βš™οΈ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.


Default Position Configuration

Defines where notifications appear on the screen.

Options:

πŸ”Ήtop-left

πŸ”Ήtop-center

πŸ”Ήtop-right

πŸ”Ήbottom-left

πŸ”Ήbottom-center

πŸ”Ήbottom-right


Settings Command

Defines the command to open the notification settings menu.

Players type /notisettings (by default) to customize their notification preferences.


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:

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