IsTrayNotificationEnabled

From Multi Theft Auto: Wiki
Jump to: navigation, search

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

FROM VERSION 1.5.5 r11849 ONWARDS