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:

NameTypeDescription
messagestrThe chat message to send
colorstrHex 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:

NameTypeDescription
playerIDstrTarget player ID, or empty/null to broadcast to all
messagestrThe chat message to send
colorstrHex color for the message (defaults to pink)
GAME.CHAT.send("value", "Hello", "#FF0000");