features
Read and write settings by config name, like "legit.trigger.active"; bind toggles and "script.<tab>.<card>.<label>" resolve too.
Functions
features.get
features.get(name) -> boolean | number | boolean[] | integer | nil| Name | Type | Description |
|---|---|---|
| name | string | Config name. |
Current value of a setting.
Returns colors as integers; nil if unknown
- Old widget ids no longer resolve; use config names.
- Autonomous-bot settings read as unknown in release builds.
features.set
features.set(name, value) -> true| Name | Type | Description |
|---|---|---|
| name | string | Config name. |
| value | any | Colors: draw.color() or { r, g, b [, a] }. |
Writes a setting as the menu would.
- Raises an error for an unknown name.
- Numbers clamp to range; a bind forcing the value can override it.
features.info
features.info(name) -> table | nil| Name | Type | Description |
|---|---|---|
| name | string | Config name. |
Label, category, type, range and bind state of a setting.
Returns table, or nil if unknown
features.list
features.list([filter]) -> string[]| Name | Type | Description |
|---|---|---|
| filteroptional | string | Category or dotted name prefix. Default nil (everything). |
Lists reachable setting names, optionally filtered.
Returns names features.get/set/info accept
Unsorted; prefixes match only at a dot.
Fields
features.info() table
| Name | Type | Description |
|---|---|---|
| id | string | Canonical name. |
| name | string | Display label. |
| category | string | "Ragebot", "Visuals", "Misc" etc., or bind category. |
| group | string | "rage", "legit" etc.; absent for binds, scripts. |
| type | string | "bool", "int", "float", "multi" or "color". |
| min | number | Bools and ranged numbers only. |
| max | number | Bools and ranged numbers only. |
| count | integer | Option count of a multi-select. |
| items | string[] | Option labels, when known. |
| bound | boolean | A bind targets this value. |
| overridden | boolean | A bind is forcing it now. |