name
Type: string
The name of the module/command (required).
Spaces are not allowed in command names.
Example: name = "Flarial"
name = ""description
Type: string
The description of the module/command (required).
Example: description = "Flarial Description"
description = ""author
Type: string
The name of the module/command's author (optional).
Used to display credits for the script creator.
Example: author = "skinStandardCust"
author = ""debug
Type: boolean
Enables or disables debug mode (optional).
When true, error messages will include full stack tracebacks.
Example: debug = true
debug = falseexecute
function execute(args) endA list of optional aliases for command scripts.
Allows the command script to be executed using alternative names.
Spaces are not allowed in aliases.
Example: aliases = {"cmd", "command"}
Called when the command is executed.
Parameters
args: string[]|nil: The arguments passed to the command.
Returns
- nil:
onEnable
function onEnable() endCalled when the module script is enabled via the ClickGUI.
Returns
- nil:
onDisable
function onDisable() endCalled when the module script is disabled via the ClickGUI.
Returns
- nil:
onLoad
function onLoad() endCalled after a script is compiled and becomes a module or command.
Returns
- nil:
Reference: script.lua