Skip to main content

ui.new_listbox

Throws an error on failure. Returns a special value that can be used with ui.get. Calling ui.get on a listbox will return the zero-based index of the currently selected string.

ui.new_listbox(tab: string, container: string, name: string, items: table): number

Arguments

NameDescriptionType
tabThe name of the tab: RAGE, AA, LEGIT, VISUALS, MISC, SKINS, PLAYERS, LUAstring
containerThe name of the existing container to which this listbox will be addedstring
nameNamestring
itemsTable of items (strings)table

Returns menu item: number