CheatControl
A built-in menu control from ui.find.
Methods
control:get
control:get() -> anyBool, number, or a boolean array for multi-selects. Combos give the 0-based index.
control:set
control:set(value)| Name | Type |
|---|---|
| value | any |
Change it. Numbers clamp to its range.
control:on_change
control:on_change(fn) -> CheatControl| Name | Type |
|---|---|
| fn | function |
fn(value) runs the frame after the value changed: menu, bind, config load or script.
Goes away with the script.
control:name
control:name() -> stringIts label.
control:path
control:path() -> stringWhere it sits, like "Legit > Triggerbot".
control:id
control:id() -> stringIts bind id.
control:type
control:type() -> string"bool", "int", "combo", "float" or "multi".
control:range
control:range() -> min, maxSlider range.
Returns nil for checkboxes and multi-selects
control:items
control:items() -> string[]Combo labels; empty for others.