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

# getreg

> Returns the current Lua registry table. The function takes no arguments and returns the registry table directly.

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

  ## Алиасы

  * `getregistry`
  * `debug.getreg`
  * `debug.getregistry`

  ## Возвраты

  <ResponseField name={"registry"} type={"table"}>
    The current Lua registry table.
  </ResponseField>

  ## Пример

  Return the current Lua registry table.

  ```lua theme={null}
  local registry = getreg()

  print(type(registry))
  print(type(getregistry()))
  print(type(debug.getreg()))
  print(type(debug.getregistry()))
  ```
</div>
