IsChatVisible: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...")
 
mNo edit summary
Tag: Reverted
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
{{New items|4.0132|1.4|
This function checks if player's chat is visible.
This function checks if player's chat is visible.
}}
 
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 22: Line 21:


==See Also==
==See Also==
{{Client_utility_functions}}
{{Client_output_functions}}
[[ru:isChatVisible]]

Revision as of 02:07, 7 April 2018

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