ClearChatBox: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function clearing chatbox, not console under F8. ==Syntax== <section name="Client" class="client" show="true"> <syntaxhighlight la...") |
CrosRoad95 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
This function clearing chatbox, not console under F8. | {{New feature/item|3.0156|1.5.6|14198|This function clearing chatbox, not console under F8.}} | ||
==Syntax== | ==Syntax== |
Revision as of 18:27, 31 August 2018
This function clearing chatbox, not console under F8.
Syntax
Click to collapse [-]
Clientbool clearChatBox ()
Returns
Returns true if the player's chat was cleared successfully, false otherwise.
Click to collapse [-]
Serverbool clearChatBox ( [ element clearFor = getRootElement() ])
Required Arguments
- clearFor : The player whose chat is to be cleared. By default clear for all.
Returns
Returns true if the player's chat was cleared successfully, false otherwise.
Example
Click to collapse [-]
ClientThis example removing spam couse by outputChatBox
for i=1,10 do outputChatBox( "spam ..." ) end clearChatBox() outputChatBox("Chat cleared successfully!")
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown