SendColoredPictureNotification

From GT-MP
Jump to: navigation, search
SendColoredPictureNotification
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Sends a colored picture notification.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.
Dialog-warning.png

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

Syntax

In Javascript
Client-Side Function

API.sendColoredPictureNotification(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

  • 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 Javascript
Client-Side Function

API.sendColoredPictureNotification("Something went wrong...", "CHAR_BLOCKED", 0, 0, "ColoredPictureNotification", "Example", 1, 8);

ColoredPicNotifExample.jpg

References