os_ext

os_ext.os.restart

Declaration
lua
os.restart([scriptPath])
Description
Restart current script or switch to another.
Parameters
`scriptPath` (string, optional) — new script to run
Return Values
`boolean`, `string` error
Example
lua
os.restart()
os.restart("/path/to/other.lua")