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

# getscriptglobals

> Возвращает new table, содержащую current LUA_GLOBALSINDEX values для _G и shared. Function не принимает arguments, создает fresh table, назначает _G из LUA_GLOBALSINDEX._G и shared из LUA_GLOBALSINDEX.shared, и возвращает exactly one value. Она не возвращает full global table, и для getscriptglobals не зарегистрирован alias.

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

  ## Возвраты

  <ResponseField name={"globals"} type={"table"}>
    Fresh table с \_G и shared fields, скопированными из LUA\_GLOBALSINDEX.
  </ResponseField>

  ## Пример

  Read the \_G and shared values copied from LUA\_GLOBALSINDEX.

  ```lua theme={null}
  local globals = getscriptglobals()

  print(globals._G)
  print(globals.shared)
  ```
</div>
