Skip to content

SendChatMessageToAll

The same message in everyone’s chat - on a channel, in the chat of the players who see it.

The message is the one of SendChatMessage, with the same limits and the same reasons (bar "no such player"). On the default channel the line goes to everyone connected; on a channel it goes to the players the channel is visible to - an admin-only channel’s line to the admins, a party channel’s to everyone who is in a party.

SendChatMessageToAll(message)
Parameter Type
message string | table a text, or a table { text | spans, channel, color, template, params }

true, or false, reason - the reason as a person reads it

SendChatMessageToAll({
spans = {
{ text = "The gates close at dusk. ", color = COLOR_YELLOW },
{ text = "Be inside the walls.", bold = true },
},
})
SendChatMessageToAll({ text = "Round 4 begins.", channel = "staff" }) -- only the players who see the staff channel

SendChatMessage · SendClientMessageToAll · RegisterChatChannel · the Chat and commands group of the index