# cfg\_value

### Functions <a href="#functions" id="functions"></a>

#### get\_int <a href="#get_int" id="get_int"></a>

local value = cfg\_item:get\_int()

**Returns:**

| ​[Value](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| value                                                                              | number                                                                                |

#### set\_int <a href="#set_int" id="set_int"></a>

cfg\_item:set\_int(5)

| ​[Parameter](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Description](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| value                                                                                  | number                                                                                | value to set config item to                                                              |

#### get\_float <a href="#get_float" id="get_float"></a>

local value = cfg\_item:get\_float()

**Returns:**

| ​[Value](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| value                                                                              | number                                                                                |

#### set\_float <a href="#set_float" id="set_float"></a>

cfg\_item:set\_float(0.5)

| ​[Parameter](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Description](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| value                                                                                  | number                                                                                | value to set config item to                                                              |

#### get\_bool <a href="#get_bool" id="get_bool"></a>

local value = cfg\_item:get\_bool()

**Returns:**

| ​[Value](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| value                                                                              | boolean                                                                               |

#### set\_bool <a href="#set_bool" id="set_bool"></a>

cfg\_item:set\_bool(true)

| ​[Parameter](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Description](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| value                                                                                  | boolean                                                                               | value to set config item to                                                              |

#### get\_color <a href="#get_color" id="get_color"></a>

local value = cfg\_item:get\_color()

| ​[Value](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​         |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| value                                                                              | ​[render.color](https://jewls.gitbook.io/fatality-api/documentation/namespaces/render#color)​ |

#### set\_color <a href="#set_color" id="set_color"></a>

cfg\_item:set\_color(render.color("FFFFFF"))

| ​[Parameter](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​         | ​[Description](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| value                                                                                  | ​[render.color](https://jewls.gitbook.io/fatality-api/documentation/namespaces/render#color)​ | value to set config item to                                                              |

#### get\_string <a href="#get_string" id="get_string"></a>

cfg\_item:get\_string()

**Returns:**

| ​[Value](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​         |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| value                                                                              | ​[render.color](https://jewls.gitbook.io/fatality-api/documentation/namespaces/render#color)​ |

#### set\_string <a href="#set_string" id="set_string"></a>

cfg\_item:set\_string("some string")

| ​[Parameter](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Datatype](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ | ​[Description](https://jewls.gitbook.io/fatality-api/documentation/datatypes/cfg_value)​ |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| value                                                                                  | string                                                                                | value to set config item to                                                              |


---

# 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://fecality-api.gitbook.io/docs/documentation/datatypes/cfg_value.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.
