Notification Usage

Types

Notification

Field
Type
Description
Required

text

string

Text to show

leftIcon

string | string[]

Font Awesome Icon

rightIcon

string

Font Awesome Icon

color

string

Color hex code

timeout

number

Remove timeout


Examples

TriggerEvent("no-alerts:notification", {
    text = "You've entered the danger zone",
    leftIcon = "radiation"
})

exports["no-alerts"]:SendNotification("You left the danger zone", "radiation", "#F92F04")

Last updated