Menu

fatality.menu

Functions

get_reference

returns a config value for a menu control element

menu:get_reference( tab_name, subtab_name, group_name, control_name )

Parameter

Data type

Description

tab_name

string

control tab name. ex "visuals"

subtab_name

string

control subtab name. ex "esp"

group_name

string

control group name. ex "player"

control_name

string

control name. ex "box"

Controls

Checkbox

creates a checkbox

menu:add_checkbox( control_name, tab_name, subtab_name, group_name, config_item )

Parameter

Data type

Description

control_name

string

name of your control

tab_name

string

tab to be placed in

subtab_name

string

subtab to be placed in

group_name

string

group to be placed in

config_item

config item for element

Slider

creates a slider

menu:add_slider( control_name, tab_name, subtab_name, group_name, config_item, min, max, step )

Parameter

Data type

Description

control_name

string

name of your control

tab_name

string

tab to be placed in

subtab_name

string

subtab to be placed in

group_name

string

group to be placed in

config_item

config item for element

min

float

minimum slider value

max

float

maximum slider value

step

float

value increment

Combo

creates a combo box

menu:add_combo( control_name, tab_name, subtab_name, group_name, config_item)

Parameter

Data type

Description

control_name

string

name of your control

tab_name

string

tab to be placed in

subtab_name

string

subtab to be placed in

group_name

string

group to be placed in

config_item

config item for element

adds an item to combo

combo:add_item( item_name, config_value )

Parameter

Data type

Description

item_name

string

name of item in combo

config_value

config item for new item

Multi-combo

creates a combo box

menu:add_multi_combo( control_name, tab_name, subtab_name, group_name, config_item)

Parameter

Data type

Description

control_name

string

name of your control

tab_name

string

tab to be placed in

subtab_name

string

subtab to be placed in

group_name

string

group to be placed in

config_item

config item for element

adds an item to combo

multi_combo:add_item( item_name, config_value )

Parameter

Data type

Description

item_name

string

name of item in combo

config_value

config item for new item

Button

adds a button

menu:add_button(control_name, tab_name, subtab_name, group_name, function)

Parameter

Data type

Description

control_name

string

name of your control

tab_name

string

tab to be placed in

subtab_name

string

subtab to be placed in

group_name

string

group to be placed in

function

function

function to be called when

the button is pressed

Examples

How to create and use controls

Last updated