Skip to content
State proxiesOverview

getluastate

Represents discovery of a Luau state.

Details#

With no argument or nil, returns a proxy for the current Luau state. A non-nil argument currently returns nil; this is not a general address-to-state lookup.

Examples#

Example

Luau
local state = getluastate()
print(state ~= nil)
print(getluastate("unknown")) -- nil