Creating Modules

Overview

ScriptAPI modules Modules created with the script API appear in both the ClickGUI and the TabGUI. They behave just like regular modules and can be customized with settings, bound to keys and enabled or disabled. Creating a module script.registerModule(options, callback) Each module has to be registe...

Supported Events

Supported script module events An event is bound to a certain condition. If this condition is met, the event is triggered and the code in the handler function is executed. Different events are associated with different conditions and therefore fulfill different tasks. A general overview of how to us...

Settings

Using module settings Often a module must be adapted to different situations. Therefore, in many cases it is highly recommended to add configuration options to the module, which the user can adjust according to his needs. This is done with the help of settings. Registering settings with a script mod...