notify
Self defined function
Sends a notification to the player.
Parameters
.notify(
player: {Player?},
title: string,
action: string?,
icon: string,
duration: number,
relay: {
id: string,
data: {any}
}?
): boolean
Properties
player
An array of player instances.
title
The notification text.
action
The notification action.
icon
The notification icon.
duration
The duration of the notification.
relay
The data to be relayed to the client when they receive the notification.