IsChatVisible

From Multi Theft Auto: Wiki
Revision as of 20:29, 12 May 2014 by Miki785 (talk | contribs) (Created page with "{{Client function}} __NOTOC__ {{New items|4.0132|1.4| This function checks if player's chat is visible. }} ==Syntax== <syntaxhighlight lang="lua"> bool isChatVisible ( ) </syntaxhighlight> ===Return...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.4 :

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