Yuari
Documentation

getgenv

Returns the executor global environment.

Syntax

getgenv() -> table

Parameters

This function takes no parameters.

Returns

TypeDescription
tableThe executor global environment

Description

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

Example

getgenv().myValue = 123
print(getgenv().myValue)

Notes

  • Mutating a returned environment affects every script that shares it.