> ## 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

> Allocate Windows console cho process khi khong co console window. Neu console window da ton tai, call tra ve ma khong lam gi. Sau allocation, function redirect stdout den console output va stdin den console input.

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

  ## Alias

  * `consolecreate`

  ## Ví dụ

  Create the Windows console once before writing console output.

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