πŸ›œExports

Client Side

Send a notification for the player

exports['mg-notify']:Notify(text, type, title, time)

πŸ“Œ Parameters:

πŸ”Ήtext β†’ Notification content

πŸ”Ήtype β†’ Notification theme/type

πŸ”Ήtitle β†’ Header text (optional)

πŸ”Ήtime β†’ Display duration in ms (optional)

Example:

exports['mg-notify']:Notify("Heist failed", "error", "Pacific Standard", 5000) 

Server Side

Send a notification to a specific player

exports['mg-notify']:NotifyPlayer(target, text, type, title, time) 

πŸ“Œ Parameters:

πŸ”Ήtarget β†’ Player server ID or source

πŸ”Ήtext β†’ Notification content

πŸ”Ήtype β†’ Notification theme

πŸ”Ήtitle β†’ Header text (optional)

πŸ”Ήtime β†’ Display duration in ms (optional)

Example:

exports['mg-notify']:NotifyPlayer(source, "Backup requested", "lspd", "10-13", 4000) 

Send a notification to all players

exports['mg-notify']:NotifyAll(text, type, title, time) 

πŸ“Œ Parameters:

πŸ”Ήtext β†’ Notification content

πŸ”Ήtype β†’ Notification theme

πŸ”Ήtitle β†’ Header text (optional)

πŸ”Ήtime β†’ Display duration in ms (optional)

Example:

exports['mg-notify']:NotifyPlayer(source, "Backup requested", "lspd", "10-13", 4000) 

Last updated