ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onConsole

Event

onConsole

ServerChat and consoleIdentical to MTA:SA

Someone typed text in a console: a player in the game console (F8) or an admin in the server console.

Handler

addEventHandler("onConsole", root, function(theMessage) ... end)

Parameters

theMessagestring
The typed text.

Source

source is the player or root (server console).

Example

addEventHandler("onConsole", root, function(text)
    outputServerLog("konsola: " .. text)
end)

See also