CreateTrayNotification: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
{{Needs Checking|Check function arguments and make example}}
This functions creates a notification ballon on the desktop.
This functions creates a notification ballon on the desktop.
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool createTrayNotification ( string notificationText, [ string eType, bool useSound ] )</syntaxhighlight>
<syntaxhighlight lang="lua">bool createTrayNotification ( string notificationText, [ string eType, bool useSound ] )</syntaxhighlight>
Line 12: Line 12:
==Returns==
==Returns==
Returns ''true'' if the notification is correctly created, ''false'' otherwise.
Returns ''true'' if the notification is correctly created, ''false'' otherwise.
==See Also==
{{Client_utility_functions}}

Revision as of 18:04, 20 October 2016

Dialog-information.png This article needs checking.

Reason(s): Check function arguments and make example

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"
  • 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.

See Also