IsChatInputBlocked
Jump to navigation
Jump to search
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)
Requirements
Minimum server version | n/a |
---|---|
Minimum client version | 1.5.8-9.20898 |
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20898" />
See Also