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 = false
execute
function execute(args) end
A 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() end
Called when the module script is enabled via the ClickGUI.
Returns
- nil:
onDisable
function onDisable() end
Called when the module script is disabled via the ClickGUI.
Returns
- nil:
onLoad
function onLoad() end
Called after a script is compiled and becomes a module or command.
Returns
- nil:
Reference: script.lua