checkbox_t

local checkbox = menu.add_checkbox("group", "name")

get

returns whether this checkbox is enabled

bool get()

Example

print(checkbox:get())

set

sets whether this checkbox is enabled

void set(<bool> state)

Example

checkbox:set(false)

set_visible

sets whether this control is visible

void set_visible(<bool> is_visible)

Example

checkbox:set_visible(true)

add_color_picker

adds a color picker sub control

color_picker_t add_color_picker(<string> name, [optional] <color_t> default_color, [optional] <bool> has_alpha)

Example

local colly = checkbox:add_color_picker("bruh color")

add_keybind

adds a keybind sub control

keybind_t add_keybind(<string> name, [optional] <int> default_key)

Example

local keybind = checkbox:add_keybind("bruh key")

Last updated