ui
Menu controls in the Scripting tab; read values with control:get(), and reload removes them.
Functions
ui.tab
ui.tab(name) -> ui.Tab| Name | Type | Description |
|---|---|---|
| name | string | Tab title. |
Creates this script's tab, or returns the existing one.
Returns ui.Tab, or nil if not ready
Tab name prefixes save keys and bind ids, so renaming resets them.
ui.find
ui.find(tab [, card], label) -> CheatControl| Name | Type | Description |
|---|---|---|
| tab | string | Like "Legit". |
| cardoptional | string | Like "Triggerbot"; omitted searches the whole tab. |
| label | string | Like "Enabled". |
One of the cheat's own menu controls, by where it sits.
Returns nil when not found
- ui.find(name) takes a config name ("legit.trigger.active") or bind id instead.
- Names match without case.
- Found once its menu page was drawn this session; features and config always work.
- Only checkboxes, sliders, combos and multi-selects.
Fields
| Name | Type | Description |
|---|---|---|
| persistence | info | Saved to scripts\config\<script>.cfg, keyed by tab/card/label. |
| binds | info | Right-click binds checkbox, sliders, combo; id script.<tab>.<card>.<label>. |
| callbacks | info | Fire on user change; control:set() never fires them. |