🚬
NovoScript
  • NovoScript - Tutorial
  • API
    • Module
    • Events
    • Objects
      • World
      • Client
      • Packets
      • Player
      • Entity
    • Utilities
      • Web Utility
      • File Utility
      • Render Utility
      • Game Utility
      • Timer Utility
      • Angle Untility
      • Entity Utility
    • Enums
    • Global Variables
  • Examples
    • Self Damage
    • Multi Aura
    • OldNCP Bhop
Powered by GitBook
On this page
  • module.addBooleanProperty
  • module.addStringProperty
  • module.addListProperty
  • module.addDoubleProperty
  • module.addFloatProperty
  • module.addIntegerProperty
  • module.getProperty

Was this helpful?

  1. API

Module

PreviousNovoScript - TutorialNextEvents

Last updated 3 years ago

Was this helpful?

Parameters

Type

Description

name

String

Name of the module

type

EnumModuleType

Type of the module.

module = script.registerModule(name,type)

module.addBooleanProperty

Adds a so-called "Check Box" property to the module

Parameters

Type

Description

key

String

The unique identifier of the property

name

String

The displayed name of the property

defaultValue

Boolean

The default value of the property

module.addBooleanProperty(key,name,defaultValue)

module.addStringProperty

Adds a so-called "Combo box" property to the module

Parameters

Type

Description

key

String

The unique identifier of the property

name

String

The displayed name of the property

defaultValue

String

The default value of the property

acceptedValues

String...

Accepted values of the property

module.addStringProperty(key,name,defaultValue,acceptedValues)

Note: The acceptedValues must contain the defaultValue

module.addListProperty

Adds a so-called "Select box" property to the module

Parameters

Type

Description

key

String

The unique identifier of the property

name

String

The displayed name of the property

defaultValue

String

The default value of the property

acceptedValues

String...

Accepted values of the property

Note: The acceptedValues must contain the defaultValue

module.addDoubleProperty

Adds a so-called "Slider" property to the module

Parameters

Type

Description

key

String

The unique identifier of the property

name

String

The displayed name of the property

value

double

The default value of the property

min

double

The minimum value of the property

max

double

The maximum value of the property

increment

double

module.addDoubleProperty(key,name,value,min,max,increment)

module.addFloatProperty

Adds a so-called "Slider" property to the module

Parameters

Type

Description

key

String

The unique identifier of the property

name

String

The displayed name of the property

value

float

The default value of the property

min

float

The minimum value of the property

max

float

The maximum value of the property

increment

float

module.addFloatProperty(key,name,value,min,max,increment)

module.addIntegerProperty

Adds a so-called "Slider" property to the module

Parameters

Type

Description

key

String

The unique identifier of the property

name

String

The displayed name of the property

value

integer

The default value of the property

min

integer

The minimum value of the property

max

integer

The maximum value of the property

increment

integer

module.addIntegerProperty(key,name,value,min,max,increment)

module.getProperty

Parameters

Type

Description

key

String

The unique identifier of the property

module.getProperty(key)

Returns a Property object with methods

Method

Type

Description

getBoolean

Boolean

A value of a boolean property

getString

String

A value of a string property

getList

String...

A value of a list property

getDoubleValue

double

A value of a double property

getFloat

float

A value of a float property

getInteger

integer

A value of an integer property

getLong

long

A value of a long property

module.getProperty("some_key").getBoolean();
// or
var property = module.getProperty("some_key");
var value = property.getBoolean();
Enums