IsChatInputBlocked: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}} __NOTOC__ This function checks if the player's chat input is blocked. ==Syntax== <syntaxhighlight lang="lua"> bool isChatInputBlocked ( ) </syntaxhighlig...") |
(No difference)
|
Revision as of 17:59, 22 September 2021
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 adds a blockchat command that allows blocking and unblocking of 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
Shared