moonscript
Search…
Module

moduleManager.addModule

1
moduleManager.addModule(name, description, renderName)
Copied!
Argument
Object
Description
name
String
Internal name of your module
description
String
Description of your module
renderName
String
Render name of your module
Adds a script module to the client.

moduleManager.isModuleEnabled

1
moduleManager.isModuleEnabled(name)
Copied!
Argument
Object
Description
name
String
Name of the module
Returns if a module is enabled.

moduleManager.addBooleanSetting

1
moduleManager.addBooleanSetting(module, name, value)
Copied!
Argument
Object
Description
module
Module
A module you created in your script
name
String
Name of the value being created
value
Boolean
Default value
Creates a boolean setting for a script module.

moduleManager.addNumberSetting

1
moduleManager.addNumberSetting(module, name, value, minimum, maximum, increment)
Copied!
Argument
Object
Description
module
Module
A module you created in your script
name
String
Name of the value being created
value
Number
Default value
minimum
Number
Minimum value
maximum
Number
Maximum value
increment
Number
Increment
Creates a number setting for a script module.

moduleManager.booleanSettingValue

1
moduleManager.booleanSettingValue(module, name) - Boolean
Copied!
Argument
Object
Description
module
Module
A module you created in your script
name
String
Name of the value
Returns the current value of a value you created.

moduleManager.floatSettingValue

1
moduleManager.floatSettingValue(module, name) - Number (float)
Copied!
Argument
Object
Description
module
Module
A module you created in your script
name
String
Name of the value
Returns the current value of a setting you created.

moduleManager.intSettingValue

1
moduleManager.intSettingValue(module, name) - Number (int)
Copied!
Argument
Object
Description
module
Module
A module you created in your script
name
String
Name of the value
Returns the current value of a setting you created.

moduleManager.setState

1
moduleManager.setState(moduleName, newState)
Copied!
Argument
Object
Description
moduleName
String
Name of the module
newState
Boolean
The new enabled state of the module
Enables or disables a specific client module.

moduleManager.toggle

1
moduleManager.toggle(moduleName)
Copied!
Argument
Object
Description
moduleName
String
Name of the module
Toggles a specific client module.
Last modified 11mo ago