isTrayNotificationEnabled | Multi Theft Auto: Wiki Skip to content

isTrayNotificationEnabled

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

Syntax

bool isTrayNotificationEnabled ( )

Returns

  • bool: value

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

Code Examples

shared
addCommandHandler("traynotifs",
function ()
if isTrayNotificationEnabled( ) then
outputChatBox( "* Tray notifications are enabled" )
else
outputChatBox( "* Tray notifications are disabled" )
end
end
)