rconsoletoggle
Toggles the console window visibility.
Syntax
rconsoletoggle() -> voidReturns
This function does not return a value.
Description
rconsoletoggle toggles the visibility of the console window. If hidden, it shows the console; if visible, it hides the console.
Example
-- Create console first
rconsoleshow()
rconsoleprint("Console is visible\n")
-- Toggle it off
rconsoletoggle()
print("Console is now hidden")
-- Toggle it back on
rconsoletoggle()
rconsoleprint("Console is visible again\n")Related Functions
rconsoleshow- Show the consolerconsolehide- Hide the consolerconsolehidden- Check if hidden