Notifications

In-built notification system to display messages to users.

Notify(message, notif_type)

Returns a notification handler object. Also sends an on-screen notification to the user with the specified message and style.

  • message* (string) - notification message to display

  • notif_type (string) - notification type which can be info (default), success, warning or error

* = required arguments

Notification Handler

notification.close()

Closes the notification early (before it automatically closes after 5 seconds). Takes no parameters

Reference: utils/cl_utils.lua

Last updated