🛜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