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?)| Name | Type | Description | Required |
|---|---|---|---|
| menu | object | The title of the component | Yes |
| description | string | The description of the component | No |
| value | string | The value of the component | No |
| min | string | The minimum value of the component | No |
| max | string | The maximum value of the component | Yes |
| step | string | By how much the value is changed | No |
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);