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

> Retourne une new table contenant les current LUA_GLOBALSINDEX values pour _G et shared. La function ne prend aucun arguments, cree une fresh table, assigne _G depuis LUA_GLOBALSINDEX._G et shared depuis LUA_GLOBALSINDEX.shared, puis retourne exactly one value. Elle ne retourne pas la full global table, et aucun alias n est enregistre pour getscriptglobals.

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

  ## Retours

  <ResponseField name={"globals"} type={"table"}>
    Fresh table avec les \_G et shared fields copies depuis LUA\_GLOBALSINDEX.
  </ResponseField>

  ## Exemple

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

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

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