isChatInputBlocked
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function checks if the player's chat input is blocked.
Syntax
isChatInputBlocked ( )Code Examples
client
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 inputBlockedend
addCommandHandler("blockchat", toggleInputBlocked)