Notifications
Last updated
Last updated
This module provides a unified interface to trigger styled notifications across supported frameworks.
Sends a notification to a player (or to the client if src
is nil
).
When used in the server side, it requires the src
of the player to know where it supposed to trigger
When used in the client side, src
should be set to `nil`
What script is used for notifications is decided per script in their config file.
Or if you set global in the server.cfg
The supported settings for the config/convars are
Parameters:
title
(string
): The title or header of the notification.
message
(string
): The body or detail text.
type
(string
): Type of message (e.g., "success", "error", "info").
src
(number
, optional ): Server ID of the player to notify (omit to notify locally).
Example: