Components
List

menu refers to the return value of Menu:Create

List

menu:AddList adds a list component.

Parameters

menu:AddList(label, description?, values, value?)
NameTypeDescriptionRequired
labelstringThe title of the componentYes
descriptionstringThe description of the componentNo
valuesstring[]The values of the componentYes
valuenumberThe index of the start valueNo

Example

client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
 
menu:AddList('List', 'Choose one of these cool cats', {
  'Keyboard Cat',
  'Nyan Cat',
  'Grumpy Cat'
}, 1);