IsChatInputBlocked: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{Added feature/item | {{Added feature/item|1.5.9|1.5.8|20898|This function checks if the player's chat input is blocked.}} | ||
==Syntax== | ==Syntax== | ||
Line 21: | Line 21: | ||
addCommandHandler("blockchat", toggleInputBlocked) | addCommandHandler("blockchat", toggleInputBlocked) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Client_output_functions}} | {{Client_output_functions}} |
Latest revision as of 17:29, 7 November 2024
This function checks if the player's chat input is blocked.
Syntax
bool isChatInputBlocked ( )
Returns
Returns true if the chat input is blocked, false otherwise.
Example
This example shows how to block and unblock the chat input:
function toggleInputBlocked () local visible = isChatVisible () -- check if the chat is visible showChat (visible, not isChatInputBlocked ()) -- toggle inputBlocked end addCommandHandler("blockchat", toggleInputBlocked)
See Also
- clearDebugBox
- isChatInputBlocked
- isChatVisible
- Shared
- clearChatBox
- outputChatBox
- outputConsole
- outputDebugString
- showChat