Skip to main content

ui.new_hotkey

Returns a special value that can be passed to ui.get to see if the hotkey is pressed, or throws an error on failure.

ui.new_hotkey(tab: string, container: string, name: string, inline: boolean, default_hotkey: number): number

Arguments

NameDescriptionType
tabThe name of the tab: RAGE, AA, LEGIT, VISUALS, MISC, SKINS, PLAYERS, LUA.string
containerThe name of the existing container to which this control will be added.string
nameThe name of the hotkey.string
inlineBoolean. If set to true, the hotkey will be placed to the right of the preceding menu item.boolean
default_hotkeyVirtual keynumber

Returns menu item: number