Skip to content
IonizeDocsionize.cc ↗

API Reference

Script Library

Inspecting running scripts, their environments, and their bytecode.

8 members

getscriptclosure(script: LuaSourceContainer): function

Returns a new closure for a script.

getscripthash(script: LuaSourceContainer): string

Returns a hash of the script bytecode.

getscriptbytecode(script: LuaSourceContainer): string

Returns the compiled bytecode of a script.

decompile(script: LuaSourceContainer): string

Returns a readable reconstruction of a script.

getsenv(script: LuaSourceContainer): table

Returns the environment of a running script.

getscripts(): { LuaSourceContainer }

Returns every script known to the client.

getloadedmodules(): { ModuleScript }

Returns module scripts that have been required.

getcallingscript(): LuaSourceContainer?

Returns the script responsible for the current call.