SendNotificationToPlayer

From GTA Network Wiki
Jump to: navigation, search

SendNotificationToPlayer
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Sends a Notification message to a Player.

Note: Custom colors in hex format will not work for notifications, they only for the in-game chat. You can still use standard text color codes, however.

Syntax

void NAPI.Notification.SendNotificationToPlayer(Client player, string message, bool flashing = false);

Required Arguments

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

Optional Arguments

  • flashing: parameter input should be in bool type.

Usage examples

NAPI.Notification.SendNotificationToPlayer(player, "Notification Example!", true);

Changelog

Version Description
1.0 Release.

References