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

> Gibt eine new table zurück, die die current LUA_GLOBALSINDEX values für _G und shared enthält. Die function nimmt keine arguments, erstellt eine fresh table, weist _G aus LUA_GLOBALSINDEX._G und shared aus LUA_GLOBALSINDEX.shared zu und gibt exactly one value zurück. Sie gibt nicht die full global table zurück, und für getscriptglobals ist kein alias registriert.

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

  ## Rückgaben

  <ResponseField name={"globals"} type={"table"}>
    Fresh table mit \_G und shared fields, die aus LUA\_GLOBALSINDEX kopiert wurden.
  </ResponseField>

  ## Beispiel

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

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

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