xhookLua
Game

ui

Menu controls in the Scripting tab; read values with control:get(), and reload removes them.

Functions

ui.tab

ui.tab(name) -> ui.Tab
NameTypeDescription
namestringTab 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
NameTypeDescription
tabstringLike "Legit".
cardoptionalstringLike "Triggerbot"; omitted searches the whole tab.
labelstringLike "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

NameTypeDescription
persistenceinfoSaved to scripts\config\<script>.cfg, keyed by tab/card/label.
bindsinfoRight-click binds checkbox, sliders, combo; id script.<tab>.<card>.<label>.
callbacksinfoFire on user change; control:set() never fires them.
ui ยท Lua API ยท xhook