CreateTrayNotification: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Typo)
mNo edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}
{{Needs Checking|Check function arguments and make example}}  
{{Needs Checking|Check function arguments and make example}}  
{{Needs_Example}}
This functions creates a notification ballon on the desktop.
This functions creates a notification ballon on the desktop.
==Syntax==
==Syntax==

Revision as of 18:21, 20 October 2016

Dialog-information.png This article needs checking.

Reason(s): Check function arguments and make example
Accessories-text-editor.png Script Example Missing Function CreateTrayNotification needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

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.

Optional Arguments

  • eType: The notification icon. Possible values are: "default", "info", "warning", "error"
  • useSound: 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.

See Also