menu refers to the return value of Menu:Create
List
menu:AddList adds a list component.
Parameters
menu:AddList(label, description?, values, value?)| Name | Type | Description | Required |
|---|---|---|---|
| label | string | The title of the component | Yes |
| description | string | The description of the component | No |
| values | string[] | The values of the component | Yes |
| value | number | The index of the start value | No |
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);