consoleinput
Waits for a line entered into this instance’s rconsole.
Syntax
consoleinput() -> string
Also available as
rconsoleinputconsole_inputrconsole_input
Returns
| Type | Description |
|---|---|
string | Submitted input line. |
Description
The current task yields while waiting for the configured rconsole frontend. Native mode accepts a line at its > prompt; embedded mode uses Apex's input field. Neither reads the launcher process's standard input or invokes a shell to evaluate the line. Only one pending request can be served per instance at a time; handle errors if the session closes or another reader is waiting. Native input is limited to 511 UTF-8 bytes.
Example
consolecreate()
consoleprint("Enter a value:")
local answer = consoleinput()
consoleprint(answer)
These are Game executor contracts. Check build requirements and session lifetimes before using them.
