ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. outputConsole

Function

outputConsole

Server and clientChat and consoleIdentical to MTA:SA

Prints a line in the F8 console. On the server, with no target the line goes to every player.

Syntax

Server

bool outputConsole(string message [, element visibleTo = root])

Client

bool outputConsole(string message)

Arguments

messagestring
The text.
visibleToelement, optional = root
A player or an element with players (server only).

Returns

true on success.

Example

addCommandHandler("pomoc", function(player)
    outputConsole("/pomoc - ta lista", player)
    outputConsole("/auto <model> - tworzy pojazd", player)
    outputChatBox("Lista komend jest w konsoli (F8).", player)
end)

See also