isChatInputBlocked
Client-side
Server-side
Shared
Manual Review Required
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
bool isChatInputBlocked ( )Returns
- bool: value
Returns true if the chat input is blocked, false otherwise.
Code Examples
shared
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)