rconsoleshow
Creates and shows the console window.
Syntax
rconsoleshow() -> voidAliases
rconsolecreateconsolecreate
Returns
This function does not return a value.
Description
rconsoleshow creates a new console window if one doesn't exist, and shows it. The console can be used to display output and receive user input.
Example
-- Create and show the console
rconsoleshow()
-- Print a welcome message
rconsoleprint("Welcome to the console!\n")
-- Set a custom title
rconsolename("My Script Console")Notes
- Only one console window can exist at a time
- The console persists until
rconsolehideis called or the game closes - Use
\nfor newlines in console output
Related Functions
rconsolehide- Hide the consolerconsoleprint- Print to consolerconsolename- Set console title