Nut.config.add

From Nutscript Developer Wiki
Jump to navigation Jump to search

nut.config.add(key, value, desc, callback, data, noNetworking, schemaOnly)

This function registers new config data to schema.

The server will save all the modified config values when the server is getting closed.

The key must be unique or will get overriden by others with the same name. Be careful with this.

It must be called by nut.config.get(key) when used

Arguments[edit]

  • String key
  • Variables value
  • String desc
  • Function callback
  • Table data
  • Boolean noNetworking
  • Boolean schemaOnly

Return Values[edit]

none

Examples[edit]

none