SendPictureNotificationToPlayer

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

Sends a picture notification to the specified player.

Dialog-warning.png

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

Syntax

API.sendPictureNotificationToPlayer(Client player, string body, string pic, int flash, int iconType, string sender, string subject);

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.

Usage example(s)

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

JoeDude.jpg

References