SendChatMessageToPlayer

From GTA Network Wiki
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

void NAPI.Chat.SendChatMessageToPlayer(Client player, string message, bool oldColors = true);
void NAPI.Chat.SendChatMessageToPlayer(Client player, string sender, string message, bool oldColors = true);

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.
  • oldColors: parameter input should be in bool type.

Usage examples

NAPI.Chat.SendChatMessageToPlayer(player, "This is a message!");
NAPI.Chat.SendChatMessageToPlayer(player, "Example says", "This is a message!");

Changelog

Version Description
1.0 Release.

References