Difference between revisions of "IsChatVisible"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m
Tag: Reverted
m (Reverted edits by Myonlake (talk) to last revision by Roma ™)
Tags: Rollback Reverted
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
{{Added feature/item|3.0159|1.5.9|1.5.8|20898|This function checks if player's chat is visible.}}
{{New items|4.0132|1.4|
 
This function checks if player's chat is visible.
}}
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 08:16, 22 September 2021

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

* FEATURE ADDED IN 1.5.9 (REVISION: r20854)
* FEATURE ADDED IN 1.5.9 (REVISION: r20898)