- Documentation
- Server events
- onConsole
Event
onConsole
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)