> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# rconsolecreate

> Allocates a Windows console for the process when no console window exists. If a console window already exists, the call returns without doing anything. The function redirects stdout to console output and stdin to console input after allocation.

<div className="real-function-page">
  ```lua theme={null}
  rconsolecreate()
  ```

  ## Aliases

  * `consolecreate`

  ## Example

  Create the Windows console once before writing console output.

  ```lua theme={null}
  rconsolecreate()
  rconsoleprint("Console ready")
  ```
</div>
