sys

sys.sys.run_encrypted

Declaration
lua
sys.run_encrypted(path)
Description
Run encrypted .vntp package. Decrypts to temp directory, executes main.lua, cleans up temp dir regardless of outcome.
Parameters
NameTypeRequiredDefaultDescription
pathstringRequired—Path to .vntp encrypted package
Return Values
TypeDescription
booleantrue on success, false on failure
string|nilnil on success, error message on failure
Example
lua
local ok, err = sys.run_encrypted("myscript.vntp")
if not ok then sys.log("Error: " .. err) end
Notes
Modifies _SCRIPT_DIR to temp dir during execution. Always cleans up temp dir.