menu refers to the return value of Menu:Create
List
menu:AddCheckbox adds a checkbox component.
Parameters
menu:AddCheckbox(label, description?, checked?)| Name | Type | Description | Required |
|---|---|---|---|
| label | string | The title of the component | Yes |
| description | string | The description of the component | No |
| checked | boolean | Whether the component should be chopped off or not | No |
Example
client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
menu:AddCheckbox('Checkbox', 'Are you a cat ?', false)