From the wonderful RedGuides Wiki

This command is added by MQ2Lua

Syntax Key
Notation Description
Text without brackets or braces Required items
<Text inside angle brackets> Placeholder for which you must supply a value
[Text inside square brackets] Optional items
Vertical bar (|) Separator for mutually exclusive items; choose one
{Text | inside | braces} Set of required items; choose one
Ellipsis () Items that can be repeated
Syntax /lua {run | stop | pause | info | conf | reloadconf | ps | gui | parse} [ <params> ]
Description Controls Lua scripts and Lua settings. Detailed help for each option is available by adding "help" as a param. e.g. /lua run help


Option Description
run <script> [<param>]... Runs the specified script. Additional parameters will be passed on to the script. All parameters will be interpreted as lua script (via loadstring) and the mq namespace is provided for you.
stop [<script|PID>] If no script or PID is provided, it will stop all scripts.
pause [<script|PID>] Toggles pause. If no script or PID is provided, it will attempt to either pause or resume all scripts. If all scripts are paused or resumed, will toggle state on all of them, otherwise it will pause any running scripts.
info [<script|PID>] Displays detailed information on the specified process. If no script is given, it will display a ps list.
conf <setting> <value> Set a value in the Lua config file. e.g. /lua conf turboNum 500
reloadconf Reloads the config file
ps [<filter>] Provides a list of processes with their status. The list can be filtered other statuses, (STARTING, RUNNING, PAUSED, EXITED). By default only RUNNING and PAUSED processes are shown.
gui Toggle the beautiful lua GUI
parse <string> parse a lua string with an available mq namespace
-h | -? | help Displays help text. Can be added to most options for detailed help. e.g. /lua conf help


See also