OnConsoleInput: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Server|1.2.1}} {{FuncDescription|Called when a new input in the console happened.}} {{FuncSyntax|OnConsoleInput(input)}} {{FuncParameters}} {{FuncParam|input|T..." |
(No difference)
|
Revision as of 16:57, 14 August 2020
Description
Called when a new input in the console happened.
Syntax
OnConsoleInput(input)
Parameters
- input
The text that was typed in the console.
Example
AddEvent("OnConsoleInput", function(input)
print("OnConsoleInput "..input)
if input == "quit" or input == "exit" then
ServerExit("Exiting via console command")
end
end)