IsChatInputBlocked

From Multi Theft Auto: Wiki
Revision as of 12:42, 23 September 2021 by Lvrent (talk | contribs)
Jump to navigation Jump to search

20898

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

This template will be deleted.

See Also