ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setChatInputBlocked

Function

setChatInputBlocked

ServerUtilitiesTrilogy Hub only

Stores a chat input block.

Syntax

bool setChatInputBlocked(bool blocked)

Arguments

blockedbool
true = blocked.

Returns

true on success.

Example

setChatInputBlocked(true)
addEventHandler("onPlayerChat", root, function()
    if isChatInputBlocked() then cancelEvent() end
end)

Notes

State for scripts. The players' chat box is not blocked; to mute use cancelEvent in onPlayerChat.

See also