SendChatMessageToAll

From GTA Network Wiki
Jump to: navigation, search

SendChatMessageToAll
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

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

Changelog

Version Description
1.0 Release.

References