Slider

Adjust the Slider at their Correct Target to gain access

-- Slider Lock
RegisterCommand('testsliders', function()
    local sliders = {
        {
            id = "voltage",
            label = "Power Supply Voltage",
            target = 75,  -- Target value (75%)
            tolerance = 2 -- Must be within 2% of target
        },
        {
            id = "frequency",
            label = "Signal Frequency",
            target = 45,
            tolerance = 3
        },
        {
            id = "amplitude",
            label = "Wave Amplitude",
            target = 60,
            tolerance = 1
        }
    }

    exports['moon-ui']:OpenSliderLock(sliders, 20, function(success)
        if success then
            print('Calibration successful!')
        else
            print('Calibration failed!')
        end
    end)
end)

Last updated