keybind_t

local checkbox = menu.add_checkbox("group", "name")
local keybind = checkbox:add_keybind("bruh color")

get

returns if the keybind is active (depending on the current mode)

bool get()

Example

print(keybind:get())

get_key

returns the current key bound to the keybind

e_keys get_key()

Example

print(keybind:get_key())

get_mode

returns the current keybind mode

e_keybind_modes get_mode()

Example

print(keybind:get_mode())

set_visible

sets whether this control is visible

void set_visible(<bool> is_visible)

Example

keybind:set_visible(true)

Last updated