# Example settings

```javascript
var module = rise.registerModule("Example Settings", "An example script to teach how to use rise's scriptapi's settings.")

module.registerSetting("number"/*Setting Type*/, "Number Setting"/*Setting Name*/, 1 /*Default Value*/, 0.1/*Min Value*/,10/*Max Value*/,0.1/*Increment*/)

module.registerSetting("boundsnumber"/*Setting Type*/, "Bounds Number Setting"/*Setting Name*/, 1 /*Default Value*/, 2/*Default Second Value*/, 0.1/*Min Value*/,10/*Max Value*/,0.1/*Increment*/)

module.registerSetting("string"/*Setting Type*/, "String Setting"/*Setting Name*/, "Test" /*Default Value*/)

module.registerSetting("mode"/*Setting Type*/, "Mode Setting"/*Setting Name*/, "Mode1"/*Default Mode*/, "Mode1", "Mode2", "Mode3")

module.registerSetting("boolean"/*Setting Type*/, "Boolean Setting"/*Setting Name*/, true/*Default Value*/)

module.registerSetting("color"/*Setting Type*/, "Color Setting"/*Setting Name*/, 255/*Default Red*/, 255/*Default Green*/, 255/*Default Blue*/)

script.handle("onUnload", function () {
	module.unregister()
})

module.handle("onStrafe", function(e) {
	rise.displayChat(module.getSetting("Number Setting"))
	rise.displayChat(module.getSetting("Bounds Number Setting"))
	rise.displayChat(module.getSetting("String Setting"))
	rise.displayChat(module.getSetting("Mode Setting"))
	rise.displayChat(module.getSetting("Boolean Setting"))
})

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://riseclients-organization.gitbook.io/rise-6-scripting-api/examples/example-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
