SendColoredNotification

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

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

Syntax

In Javascript
Client-Side Function

API.sendColoredNotification(string text, int textColor, int bgColor);

Required Arguments

  • text 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.

Usage example

In Javascript
Client-Side Function

API.sendColoredNotification("ColoredNotification Example", 1, 23);

ColoredNotifExample.jpg

References