CHAT
Chat system functions.
Availability: Server-only
Methods
CHAT.broadcast
server
Broadcast a chat message to all players (server-only)
Signature: action(str, str)
Parameters:
| Name | Type | Description |
|---|---|---|
message | str | The chat message to send |
color | str | Hex color for the message (defaults to pink) |
GAME.CHAT.broadcast("Hello", "#FF0000");
CHAT.send
server
Send a chat message to a specific player or broadcast to all (server-only)
Signature: action(str, str, str)
Parameters:
| Name | Type | Description |
|---|---|---|
playerID | str | Target player ID, or empty/null to broadcast to all |
message | str | The chat message to send |
color | str | Hex color for the message (defaults to pink) |
GAME.CHAT.send("value", "Hello", "#FF0000");