SendChatMessageToAll

From RAGE Multiplayer Wiki
Revision as of 01:13, 27 November 2019 by Muphy (talk | contribs)

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!");