π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