Gui

gui namespace

Enums

Keybind mode

Widgets

add_checkbox

gui.add_checkbox("checkbox", "rage>aimbot>autosniper>extra")

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

Returns:

config value

add_slider

gui.add_slider("slider", "visuals>misc>local", 0, 100, 1)

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

min

number

minimum slider value

max

number

maximum slider value

step

number

how much to step each click

Returns:

config value

add_combo

gui.add_combo("combo", "visuals>misc>various", {"item one", "item two", "item three"})

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

items

table

variable number of items

Returns:

config value

get_combo_items

local items = {gui.get_combo_items("misc>movement>combo_name")}-- orlocal item1, item2, item3 = gui.get_combo_items("misc>movement>combo_name")

path

string

path to item

Returns:

config item(s)

set_combo_items

gui.set_combo_items("misc>movement>combo_name", {"Item one", "Item two"})

path

string

path to item

items

table

table of item names

add_multi_combo

local item1, item2 = gui.add_multi_combo("multi-combo", "misc>movement", {"item one", "item two"})

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

items

table

variable number of items

Returns:

item(s)

add_button

gui.add_button("button", "rage>anti-aim>angles", function() end)

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

callback

function

button callback

add_textbox

gui.add_textbox("textbox", "misc>movement")

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

Returns:

item

add_listbox

gui.add_listbox("listbox", "misc>movement", 100, true, {"item 1", "item 2", "item 3"})

name

string

widget name

path

string

path in menu ex: "tab>subtab>group"

items_to_show

number

number of items to show or -1 for all

search_bar

boolean

whether or not the listbox should have a search bar

items

table

table of item names

Returns:

config item

use get_int. returns listbox item index

get_listbox_items

local items = {gui.get_listbox_items("misc>movement>listbox_name")}-- orlocal item1, item2, item3 = gui.get_listbox_items("misc>movement>listbox_name")

path

string

path to item

Returns:

config item(s)

set_listbox_items

gui.set_listbox_items("misc>movement>listbox_name", {"Item one", "Item two"})

path

string

path to item

items

table

table of item names

add_keybind

local checkbox = gui.add_checkbox("checkbox", "misc>movement")gui.add_keybind("misc>movement>checkbox")

path

string

path to item

get_keybind

local key_code, key_type = gui.get_keybind("misc>movement>keybind_name")

path

string

path to item

Returns:

key_code

key_type

add_colorpicker

local checkbox = gui.add_checkbox("checkbox", "misc>movement")local color_picker = gui.add_colorpicker("misc>movement>checkbox", true)

path

string

path to item

alpha_bar

boolean

whether or not the color picker will have an alpha bar

default_color

default color

white

Returns:

config item

Misc

set_visible

gui.set_visible("misc>movement>checkbox", false)

path

string

path to item

state

boolean

visibility state

is_menu_open

gui.is_menu_open()

Returns:

menu's visibility state

boolean

get_menu_rect

gui.get_menu_rect()

Returns:

x1

number

y1

number

x2

number

y2

number

get_config_item

gui.get_config_item(path)

path

string

control path example rage>aimbot>autosniper> extra>autostop

Returns:

config value

Last updated