Skip to main content

SendChatMessageToAll

Sends a chat message to all clients.

Syntax

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

```csharp 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

```csharp NAPI.Chat.SendChatMessageToAll("Example!"); ```

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