ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientConsole

Event

onClientConsole

ClientChat and consoleIdentical to MTA:SA

The player typed text in the game console (F8).

Handler

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

Parameters

theMessagestring
The typed text.

Source

source is the local player.

Example

addEventHandler("onClientConsole", localPlayer, function(text)
    if text == "pomoc" then outputConsole("Komendy: /auto, /hp") end
end)

See also