SendChatMessageToAll

From RAGE Multiplayer Wiki
Revision as of 12:45, 27 November 2019 by Xabi (talk | contribs) (Xabi moved page NAPI.Chat.SendChatMessageToAll to SendChatMessageToAll)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sends a chat message to all clients.

Syntax

void NAPI.Chat.SendChatMessageToAll(string sender, string message, bool oldColors = true);
void NAPI.Chat.SendChatMessageToAll(string message, bool oldColors = true);

Required Arguments

  • message: parameter input should be in string type.

Optional Arguments

  • sender: parameter input should be in string type.
  • oldColors: parameter input should be in bool type.

Usage examples

NAPI.Chat.SendChatMessageToAll("Example!");
NAPI.Chat.SendChatMessageToAll("Server", "Example!");