xhookLua
Game

CheatControl

A built-in menu control from ui.find.

Methods

control:get

control:get() -> any

Bool, number, or a boolean array for multi-selects. Combos give the 0-based index.

control:set

control:set(value)
NameType
valueany

Change it. Numbers clamp to its range.

control:on_change

control:on_change(fn) -> CheatControl
NameType
fnfunction

fn(value) runs the frame after the value changed: menu, bind, config load or script.

Goes away with the script.

control:name

control:name() -> string

Its label.

control:path

control:path() -> string

Where it sits, like "Legit > Triggerbot".

control:id

control:id() -> string

Its bind id.

control:type

control:type() -> string

"bool", "int", "combo", "float" or "multi".

control:range

control:range() -> min, max

Slider range.

Returns nil for checkboxes and multi-selects

control:items

control:items() -> string[]

Combo labels; empty for others.

CheatControl ยท Lua API ยท xhook