SendColoredPictureNotificationToPlayer

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

Sends a colored picture 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.


Dialog-warning.png

Note: Phone Alerts must be enabled to receive picture notifications. (GTA Settings --> Notifications --> Phone Alerts)

Syntax

In C#
Server-Side Function

API.sendColoredPictureNotificationToPlayer(Client player, string body, string pic, int flash, int iconType, string sender, string subject, int textColor, int bgColor, int flashRed = 0, int flashGreen = 0, int flashBlue = 0, int flashAlpha = 0);

Required Arguments

  • player parameter input should be in Client type.
  • body parameter input should be in string type.
  • pic parameter input should be in string type. See Notification Pictures.
  • flash parameter input should be in int type.
  • iconType parameter input should be in int type. See Picture Notification Icons.
  • sender parameter input should be in string type.
  • subject 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

  • 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.sendColoredPictureNotificationToPlayer(player, "Something went wrong...", "CHAR_BLOCKED", 0, 0, "ColoredPictureNotification", "Example", 1, 8);

ColoredPicNotifExample.jpg

References