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

> 当不存在 console window 时，为 process allocate Windows console。如果 console window 已存在，call 会直接返回且不执行任何操作。allocation 后，function 会将 stdout redirect 到 console output，将 stdin redirect 到 console input。

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

  ## 别名

  * `consolecreate`

  ## 示例

  Create the Windows console once before writing console output.

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