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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
path | string | Required | — | Path to .vntp encrypted package |
Return Values
| Type | Description |
|---|---|
| boolean | true on success, false on failure |
| string|nil | nil 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.