Components
Checkbox

menu refers to the return value of Menu:Create

List

menu:AddCheckbox adds a checkbox component.

Parameters

menu:AddCheckbox(label, description?, checked?)
NameTypeDescriptionRequired
labelstringThe title of the componentYes
descriptionstringThe description of the componentNo
checkedbooleanWhether the component should be chopped off or notNo

Example

client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
 
menu:AddCheckbox('Checkbox', 'Are you a cat ?', false)