- Documentation
- Client events
- onClientConsole
Event
onClientConsole
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)