IsChatVisible: Difference between revisions
Jump to navigation
Jump to search
Tags: Rollback Reverted |
mNo edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
__NOTOC__ | __NOTOC__ | ||
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"> |
Latest revision as of 08:18, 22 September 2021
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)