gui
Last updated
Last updated
gui.menu_bool(name: string):
menu_element
name
string
The needed element.
Returns an item from the menu that has been assigned the boolean data type.
gui.menu_int(name: string):
menu_element
name
string
The needed element.
Returns an item from the menu that has been assigned the integer data type.
gui.menu_float(name: string):
menu_element
name
string
The needed element.
Returns an item from the menu that has been assigned the float data type.
gui.menu_color(name: string):
menu_element
name
string
The needed element.
Returns an item from the menu that has been assigned the color data type.
gui.get_binds([ show_from_scripts: bool ]):
array
active
boolean
Bind state
name
string
Bind name
mode
string
Bind mode
gui.get_bind_mode(name: string):
number
name
string
The needed element.
Returns the mode of the bind.
gui.get_bind_state(name: string):
boolean
name
string
The needed element.
Returns the state of the bind.
gui.set_bind_state(name: string, state: boolean)
name
string
The needed element.
state
boolean
The state to which the bind will be set.
Sets the value of the bind.
gui.begin(groups: {, ...}):
gui_group
maximum: 4
groups
string
Table with groups.
Creates a group with gui elements.
gui_group
group:new_checkbox(name: string):
menu_element
name
string
Element name.
group:new_input(name: string):
menu_element
name
string
Element name.
group:new_bind(name: string):
menu_element
name
string
Element name.
group:new_combo(name: string, items: {, ...}):
menu_element
name
string
Element name.
items
string
Combo items.
group:new_multi_combo(name: string, items: {, ...}):
menu_element
name
string
Element name.
items
string
Multi combo items.
group:new_slider_int(name: string, min: number, max: number):
menu_element
name
string
Element name.
min
number
Minimum allowed value.
min
number
Maximum allowed value.
group:new_slider_float(name: string, min: number, max: number):
menu_element
name
string
Element name.
min
number
Minimum allowed value.
min
number
Maximum allowed value.
group:new_button(name: string):
menu_element
name
string
Element name.
group:new_color(name: string):
menu_element
name
string
Element name.
group:new_label(name: string):
menu_element
name
string
Element name.
group:new_list(name: string, items: {, ...}):
menu_element
name
string
Element name.
items
string
List items.
menu_element
element:get():
any
Returns the value of the menu element.
element:get_type():
string
Returns the type of the menu element.
element:get_name():
string
Returns the name of the menu element.
element:get_items():
table
element:get_mode():
number
element:set(value: any)
value
any
The value to which the menu element will be set.
Sets the value of the menu element.
element:set_items(items: {, ...})
items
string
Table with string values.
element:set_tooltip(text: string)
value
string
Tooltip text.
Sets the tooltip of the gui element.
element:set_visible(state: boolean)
state
boolean
Visibility state.
Sets the gui element visibility.
element:set_callback(callback: function)
callback
function
Function that will be called when the gui element is interacted with.
Sets the callback to the specified gui element.
element:set_group(group: string)
group
string
Group name.
Sets the group to the specified gui element.
Returns the list of items. / / menu element objects only.
Returns the current keybind mode. menu element objects only.
Sets a table with items. / / menu element objects only.