Volt

rconsoleshow

Creates and shows the console window.

Syntax

rconsoleshow() -> void

Aliases

  • rconsolecreate
  • consolecreate

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 rconsolehide is called or the game closes
  • Use \n for newlines in console output

On this page