Server Export
SendAlert
SendAlert
Sends an alert notification to all players with the specified job type.
Syntax
title
string
The title of the alert.
message
string
The message/content of the alert.
duration
number
The duration (in ms) that the alert should be active.
code
string
A code associated with the alert.
alertType
(string, optional)
The type/category of the alert (default: "general").
coords
vector3
The coordinates where the alert originated.
jobType
string
The job that should receive the alert.
icon
string
An icon identifier for the alert.
GetPendingAlertsByJob
GetPendingAlertsByJob
Retrieves all pending (not accepted) alerts for a specific job type.
Syntax
jobType
string
The job type for which to fetch pending alerts.
alerts
table
A list of pending alerts for the specified job.
Example Usage
GetAlertsByJob
GetAlertsByJob
Retrieves all alerts (both pending and accepted) for a specific job type.
Syntax
jobType
string
The job type for which to fetch alerts.
alerts
table
A list of all alerts for the specified job.
Example Usage
GetAllPendingAlerts
GetAllPendingAlerts
Retrieves all pending alerts across all job types.
Syntax
allPendingAlerts
table
A table containing all pending alerts categorized by job type.
Example Usage
Last updated