Configuration
Exports
The following exports are available for use in your scripts:
ShowNotification
ShowNotification
Displays a notification with a title, message, and optional customizations.
Parameters:
title
(string): The title of the notification.message
(string): The main text of the notification.duration
(number): Duration in milliseconds (0 for persistent).color
(string): Hex color code for the title (e.g.,#ff4500
).noAnimation
(boolean): Iftrue
, disables animations.
AddBoxToNotification
AddBoxToNotification
Adds a new text box to an existing notification.
Parameters:
notificationId
(number): The ID of the notification to update.title
(string): The title of the notification (used for grouping).message
(string): The text to add as a new box.color
(string): Hex color code for the title (optional).noAnimation
(boolean): Iftrue
, disables animations.
RemoveBoxFromNotification
RemoveBoxFromNotification
Removes a specific text box from a notification.
Parameters:
notificationId
(number): The ID of the notification.boxId
(number): The ID of the text box to remove.
RemoveNotification
RemoveNotification
Removes an entire notification, including all its text boxes.
Parameters:
notificationId
(number): The ID of the notification to remove.
UpdateBoxContent
UpdateBoxContent
Updates the content of a specific text box without animations.
Parameters:
notificationId
(number): The ID of the notification.boxId
(number): The ID of the text box to update.newMessage
(string): The updated text for the box.newTitle
(string): The updated title for the notification (optional).newColor
(string): The updated color for the title (optional).
ToggleNotification
ToggleNotification
Toggles a notification on or off.
Parameters:
id
(number): A unique ID for the notification.title
(string): The title of the notification.message
(string): The main text of the notification.color
(string): Hex color code for the title.
Last updated