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

# rconsoleinput

> Yield trong khi đọc một line từ stdin bằng console input sau khi xóa state của console input và bỏ qua input đến newline tiếp theo. string được trả về được push bằng string return và không bao gồm newline kết thúc. Nếu không có console window, lời gọi trả về không có values.

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

  ## Alias

  * `consoleinput`

  ## Giá trị trả về

  <ResponseField name={"input"} type={"string"}>
    Dòng văn bản được đọc từ bảng điều khiển.
  </ResponseField>

  ## Ví dụ

  Read one submitted line from the current Windows console.

  ```lua theme={null}
  rconsolecreate()
  rconsoleprint("Name: ")
  local name = rconsoleinput()
  rconsoleprint("Hello, ", name, "
  ")
  ```
</div>
