interface:notification
The interface:notification
event allows you to send styled notifications to a specific player client-side. This is especially useful for displaying alerts, messages, or system feedback in a consistent and customizable way across your server.
How to Use
To trigger a notification, use the following syntax:
source
: The player’s source ID.text
: The main content of the notification.header
: The notification title/header.duration
: How long the notification stays on screen (in milliseconds).icon
: FontAwesome icon class (e.g.,"fas fa-bell"
).
Example:
Here’s a working example using a simple test command:
Running /quasar_notify
in-game will display a sample notification to the player who executes it.
Last updated