Skip to main content

console_input

Description​

Fired every time the user types something in the game console and presses enter. Return true from the event handler to make the game not process the input.

Example​

client.set_event_callback("console_input", function(text)
client.log("entered: '", text, "'")
end)

Arguments​

IndexNameType
0console input textstring