> ## 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 สำหรับ process เมื่อไม่มี console window ถ้ามี console window อยู่แล้ว call จะ return โดยไม่ทำอะไร หลัง allocation function จะ redirect stdout ไปที่ console output และ stdin ไปที่ console input

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

  ## Aliases

  * `consolecreate`

  ## ตัวอย่าง

  Create the Windows console once before writing console output.

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.