Перейти к содержанию

SendPictureNotificationToPlayer

Материал из RAGE MP Wiki Archive
Версия от 19:43, 22 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Creates and sends a Notification with a picture and some extra information to an specified player.


<syntaxhighlight lang="csharp">bool NAPI.Notification.SendPictureNotificationToPlayer(Player player, string body, string pic, int flash, int iconType, string sender, string subject);</syntaxhighlight>

Parameters

  • player: The player receiving the Notification.
  • body: The main message of the Notification.
  • pic: The string of the game picture that will be sent in the Notification.
  • flash: Whether the Notification will be flashing or not, should be 0 or 1 values.
  • iconType: The type of the icon attached into the Notification.
  • sender: The name of the person sending the Notification.
  • subject: The title of the Notification.


Example

<syntaxhighlight lang="csharp"> // Code here... </syntaxhighlight>