CreateTrayNotification

From Multi Theft Auto: Wiki
Revision as of 17:42, 20 October 2016 by CiBeR (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This functions creates a notification ballon on the desktop. ==Syntax== <syntaxhighlight lang="lua">bool createTrayNotification ( string notifi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This functions creates a notification ballon on the desktop.

Syntax

bool createTrayNotification ( string notificationText, string eType, bool useSound )

Required Arguments

  • notificationText: The text to send in the notification.
  • eType: The notification icon. Possible values are: "default", "info", "warning", "error"
  • userSound: A boolean value indicating whether or not to play a sound when receiving the notification.

Returns

Returns true if the notification is correctly created, false otherwise.