Engine:CCMD lua.run

From AddOn Studio
Revision as of 20:18, 18 October 2023 by Bear (talk | contribs) (→‎Details)
Jump to navigation Jump to search
Console commands

Runs a Lua statement in a Lua runtime.

lua run 'print("fred")'

Arguments

  • script - the verbatim text of the Lua statement or statements to be run

Associations

  • Is by default placed in the 'lua' context.

Details

Runs the first argument as a single Lua code block in a Lua runtime.

Examples

Default values

lua run "print(1 + 2)"
Prints '3'.

Notes