ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. sendChatMessage

Function

sendChatMessage

ClientChat and consoleTrilogy Hub only

Sends text to the chat as if the player typed it. Text starting with / is a command.

Syntax

bool sendChatMessage(string text)

Arguments

textstring
The text.

Returns

true on success.

Example

bindKey("F3", "down", function()
    sendChatMessage("Potrzebuję pomocy!")
end)

See also