SendColoredNotificationToPlayer

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

Sends a colored notification to player.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to Upcoming_API_features New API functions and changes will be released with the next update. This feature is available in the most recently released Open Beta version. However, not in the current stable version.


Syntax

In C#
Server-Side Function

API.sendColoredNotificationToPlayer(Client player, string message, int textColor, int bgColor, bool flashing = false, int flashRed = 0, int flashGreen = 0, int flashBlue = 0, int flashAlpha = 0);

Required Arguments

  • player parameter input should be in Client type.
  • message parameter input should be in string type.
  • textColor parameter input should be in int type. See HudColorList.
  • bgColor parameter input should be in int type. See HudColorList.


Optional Arguments

  • flashing parameter input should be in bool type.
  • flashRed parameter input should be in int type.
  • flashGreen parameter input should be in int type.
  • flashBlue parameter input should be in int type.
  • flashAlpha parameter input should be in int type.

Usage example

In C#
Server-Side Function

API.sendColoredNotificationToPlayer(player, "ColoredNotification Example", 1, 23);

ColoredNotifExample.jpg

References