SendChatMessageToAll

From GT-MP
Jump to: navigation, search
SendChatMessageToAll
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Sends a chat message to all clients.

Syntax

API.sendChatMessageToAll(string sender, string message);

Required Arguments

  • message: parameter input should be in string type.

Optional Arguments

  • sender: parameter input should be in string type.

Usage examples

   API.sendChatMessageToAll("Example!");
   API.sendChatMessageToAll("Server", "Example!");

References