Advanced Usage

You can add an action button to your notification:

local notificationId = exports['clear-notify']:ShowNotification({
    title = "New Message",
    message = "You have a new message from John Doe.",
    type = "INFO",
    duration = 10000,
    action = "readMessage",
    actionLabel = "Read Now"
})

To remove a notification programmatically:

exports['clear-notify']:RemoveNotification(notificationId)

Last updated