CreateTrayNotification: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
m (Added note) |
||
Line 4: | Line 4: | ||
{{Needs_Example}} | {{Needs_Example}} | ||
This functions creates a notification ballon on the desktop. | This functions creates a notification ballon on the desktop. | ||
{{Note|MTA won't show any tray notifications if the MTA window is focused, because there is no reason to show tray notifications if you are ingame. | |||
If you want to test this function you should use a Timer and switch to your 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> |
Revision as of 18:23, 20 October 2016
This article needs checking. | |
Reason(s): Check function arguments and make example |
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
- createTrayNotification
- downloadFile
- getDevelopmentMode
- getKeyboardLayout
- getLocalization
- isShowCollisionsEnabled
- isShowSoundEnabled
- isTransferBoxAlwaysVisible
- isTransferBoxVisible
- isTrayNotificationEnabled
- setClipboard
- setDevelopmentMode
- setTransferBoxVisible
- setWindowFlashing
- showCol
- showSound
- Shared
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace