Skip to content

function sendMessageToPlayer (server-side)

Available since version: 0.3.0

Send a colored chat message to a specific player.

Declaration

bool sendMessageToPlayer(int player_id, int r, int g, int b, string text)

Parameters

  • int player_id: Target player id.
  • int r: Red component (0-255).
  • int g: Green component (0-255).
  • int b: Blue component (0-255).
  • string text: Message text to send.

Returns bool

True on success.