- Documentation
- Server functions
- setChatInputBlocked
Function
setChatInputBlocked
Stores a chat input block.
Syntax
bool setChatInputBlocked(bool blocked)Arguments
blockedbooltrue= 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.