getreg
Returns the Lua registry. getregistry is an alias of getreg.
Syntax
getreg() -> table
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
table | The Lua registry |
Description
getreg is part of the Environment library. Environment helpers return or inspect the global, game and script environments used by the executor and the client.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
The aliases getregistry() resolve to the same implementation.
Example
print(getreg())
print(getregistry())
Notes
- Aliases:
getregistry(). - Mutating a returned environment affects every script that shares it.