Scripts
The Scripts library provides functions for interacting with running scripts, loading modules, and compiling code.
Overview
These functions allow you to:
- Get references to running scripts
- Access script environments
- Load and compile Lua code
- Extract script information
Available Functions
| Function | Description |
|---|---|
getcallingscript | Get the script that called the current function |
getloadedmodules | Get all loaded ModuleScripts |
getmodules | Get all ModuleScripts in the game |
getrunningscripts | Get all running scripts |
getscriptbytecode | Get a script's compiled bytecode |
getscriptclosure | Get a script's main function |
getscriptfromthread | Get the script associated with a thread |
getscripthash | Get a hash of a script's bytecode |
getscripts | Get all scripts in the game |
getsenv | Get a script's environment |
loadstring | Compile and load Lua code |