IsChatVisible

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function checks if player's chat is visible.

Syntax

bool isChatVisible ( )

Returns

Returns true if the chat is visible, false otherwise.

Example

This example does the same thing as showchat command does.

addCommandHandler("sc",
	function ()
		showChat(not isChatVisible())
	end)

See Also