IsTrayNotificationEnabled

From Multi Theft Auto: Wiki
Revision as of 18:52, 20 October 2016 by Necktrox (talk | contribs) (Added page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns a boolean value whether the client has enabled tray notifications in his settings or not.

Syntax

bool isTrayNotificationEnabled ( )

Returns

Returns true if the tray notifications are enabled in the settings, false otherwise.

Example

This example shows a chatbox message if the client has enabled tray notifications in his settings.

Click to collapse [-]
Client
addCommandHandler("traynotifs",
    function ()
        if isTrayNotificationEnabled( ) then
            outputChatBox( "* Tray notifications are enabled" )
        else
            outputChatBox( "* Tray notifications are disabled" )
        end
    end
)

See Also