xhookLua
Game

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
NameTypeDescription
namestringConfig 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
NameTypeDescription
namestringConfig name.
valueanyColors: 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
NameTypeDescription
namestringConfig name.

Label, category, type, range and bind state of a setting.

Returns table, or nil if unknown

features.list

features.list([filter]) -> string[]
NameTypeDescription
filteroptionalstringCategory 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

NameTypeDescription
idstringCanonical name.
namestringDisplay label.
categorystring"Ragebot", "Visuals", "Misc" etc., or bind category.
groupstring"rage", "legit" etc.; absent for binds, scripts.
typestring"bool", "int", "float", "multi" or "color".
minnumberBools and ranged numbers only.
maxnumberBools and ranged numbers only.
countintegerOption count of a multi-select.
itemsstring[]Option labels, when known.
boundbooleanA bind targets this value.
overriddenbooleanA bind is forcing it now.
features ยท Lua API ยท xhook