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

Function

executeCommand

ClientInput and controlsTrilogy Hub only

Sends a command to the server as if the player typed it in chat (without the leading slash).

Syntax

bool executeCommand(string command)

Arguments

commandstring
The command with arguments, e.g. "car 411".

Returns

true if the command was sent.

Example

bindKey("F5", "down", function()
    executeCommand("auto 411")
end)

See also