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

# getgenv

> Возвращает current executor environment table, помещая LUA_ENVIRONINDEX. Function не принимает arguments, возвращает exactly one value и не имеет registered alias. Call-sites в repository используют returned table для чтения и записи shared executor globals, таких как __siApiCache и saveinstance.

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

  ## Возвраты

  <ResponseField name={"environment"} type={"table"}>
    Table, текущая сохраненная в LUA\_ENVIRONINDEX для этого state.
  </ResponseField>

  ## Пример

  Read and write values on the current executor environment table.

  ```lua theme={null}
  local env = getgenv()

  env.RealDocsValue = "ready"

  print(getgenv().RealDocsValue)
  ```
</div>
