SendChatMessageToPlayer

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

Sends a message to the targeted player.

2 overloads

Syntax

API.sendChatMessageToPlayer(Client player, string message);
API.sendChatMessageToPlayer(Client player, string sender, string message);

Required Arguments

  • player: parameter input should be in Client type.
  • message: parameter input should be in string type.

Optional Arguments

  • sender: parameter input should be in string type.

Usage examples

   API.sendChatMessageToPlayer(player, "This is a message!");
   API.sendChatMessageToPlayer(player, "Example says", "This is a message!");

References