rconsoletoggle Synchronous
Flip the script console between visible and hidden. Connect it to a Show/Hide control when you do not need to branch on its current state.
Luau
rconsoletoggle() -> ()Parameters
This function takes no arguments.
Returns
()No values.
Usage notes
The output remains available when the console is hidden.
Example
Luau
local window = imgui.create("Log controls")
window:Button("Show or hide log", function()
rconsoletoggle()
end)