SendPictureNotificationToAll

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

Sends a picture notification to all players.

Dialog-warning.png

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

Syntax

API.sendPictureNotificationToAll(string body, string pic, int flash, int iconType, string sender, string subject);

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.

Usage example(s)

API.sendPictureNotificationToAll("Joe Dude wants to be your friend.", "CHAR_JOE", 0, 3, "Joe Dude", "Friend Request");

JoeDude.jpg

References