SendChatMessageToAll

From RAGE Multiplayer Wiki
Revision as of 01:13, 27 November 2019 by Muphy (talk | contribs)

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