Notifications

These notifications are ideal for general updates, reminders, or messages that don't require immediate attention, ensuring a seamless user experience.

Add

You can use them via:

local serial = exports['ZSX_UIV2']:Notification(header, text, icon, duration)

You don't have to fulfill all the parameters. The only one that is needed is text.

You can also set duration to -1 to make it permament but you need to manually remove it!

Arg
Information
Optional

header

String Header of the notification

text

String Text of the notification

icon

String Icon of the notification, list

duration

Number Duration of the notification

Remove

In order to remove the notification you need it's serial which is returned from Add export.

exports['ZSX_UIV2']:Notification_Remove(serial)

Last updated