Components
Slider

menu refers to the return value of Menu:Create

Slider

menu:AddSlider adds a slider component.

Parameters

menu:AddSlider(label, description?, value?, min?, max, step?)
NameTypeDescriptionRequired
menuobjectThe title of the componentYes
descriptionstringThe description of the componentNo
valuestringThe value of the componentNo
minstringThe minimum value of the componentNo
maxstringThe maximum value of the componentYes
stepstringBy how much the value is changedNo

Example

client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
 
menu:AddSlider('Slider', 'How cool are cats ??', 10, 0, 10, 10);