# ui

Responsible creating menu elements within the cheat.


# Functions

# ui.create_groupbox(tab: string, side: string, name: string, height: number)

ui.create_groupbox(tab: string, side: string, name: string, height: number)
  • Creates a groupbox within the specified tab of the menu.
secret.ui.create_groupbox("lua", "right", "elements", 200)

# ui.create_checkbox(tab: string, groupbox: string, name: string, config_name: string)

ui.create_checkbox(tab: string, groupbox: string, name: string, config_name: string)
  • Creates a checkbox UI element within the specified tab and groupbox of the menu.

# ui.create_button(tab: string, groupbox: string, name: string, callback: function)

ui.create_button(tab: string, groupbox: string, name: string, callback: function)
  • Creates a checkbox UI element within the specified tab and groupbox of the menu.

# ui.create_slider(tab: string, groupbox: string, name: string, min: number, max: number, config_name: string)

ui.create_slider(tab: string, groupbox: string, name: string, min: number, max: number, config_name: string)
  • Creates a slider UI element within the specified tab and groupbox of the menu.

# ui.create_colorpicker(tab: string, groupbox: string, name: string, config_name: string)

ui.create_colorpicker(tab: string, groupbox: string, name: string, config_name: string)
  • Creates a colorpicker UI element within the specified tab and groupbox of the menu.

# ui.create_inputbox(tab: string, groupbox: string, name: string, config_name: string)

ui.create_inputbox(tab: string, groupbox: string, name: string, config_name: string)
  • Creates an inputbox UI element within the specified tab and groupbox of the menu.

# ui.create_hotkey(tab: string, groupbox: string, name: string, config_name: string)

ui.create_hotkey(tab: string, groupbox: string, name: string, config_name: string)
  • Creates a hotkey UI element within the specified tab and groupbox of the menu.

# ui.create_dropdown(tab: string, groupbox: string, name: string, config_name: string, items: table, multi: boolean)

ui.create_dropdown(tab: string, groupbox: string, name: string, config_name: string, items: table, multi: boolean)
  • Creates a dropdown UI element within the specified tab and groupbox of the menu.
secret.ui.create_groupbox("lua", "right", "elements", 200) -- create a groupbox called "elements"

secret.ui.create_dropdown("lua", "elements", "My Lua Dropdown", "lua_dropdown", {"Item1", "Item2", "Item3"}, false)

# ui.create_playerlist_text(text: string, index: number)

ui.create_playerlist_text(text: string, index: number)
  • Creates a text UI element in the 'advanced' tab of the player identified by the given index.

# ui.create_playerlist_button(name: string, index: number, callback: function)

ui.create_playerlist_button(name: string, index: number, callback: function)
  • Creates a button UI element in the 'advanced' tab of the player identified by the given index.
  • Do note that the callback will return the index as a param.

# ui.clear_elements()

ui.clear_elements()
  • Clears all the current elements made with lua, such as secret.ui.create_checkbox, etc.

# ui.menu_open(): boolean

ui.menu_open(): boolean
  • Returns a boolean value of the menu being open.

# ui.console_open(): boolean

ui.console_open(): boolean
  • Returns a boolean value of the console being open.

# ui.notify(text: string, type: number)

ui.notify(text: string, type: number)
  • Creates a new notification at the top left corner of the screen with the specified text and type.
  • 0 = Default
  • 1 = Warning
  • 2 = Error