Volt

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

FunctionDescription
getcallingscriptGet the script that called the current function
getloadedmodulesGet all loaded ModuleScripts
getmodulesGet all ModuleScripts in the game
getrunningscriptsGet all running scripts
getscriptbytecodeGet a script's compiled bytecode
getscriptclosureGet a script's main function
getscriptfromthreadGet the script associated with a thread
getscripthashGet a hash of a script's bytecode
getscriptsGet all scripts in the game
getsenvGet a script's environment
loadstringCompile and load Lua code

On this page