Progress Bar

A smooth, animated progress indicator for timed actions or tasks.

-- ProgressBar
RegisterCommand('testlockpick', function()
    -- Progress bar with animation and prop
    exports['moon-ui']:OpenProgressBar({
        duration = 10000, -- 10 seconds
        label = 'Picking Lock',
        useWhileDead = false,
        allowRagdoll = false,
        style = 'minimal', -- radial / minimal / bar
        canCancel = false,
        disable = {
            move = false,
            car = true,
            combat = true
        },
        anim = {
            dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
            clip = 'machinic_loop_mechandplayer'
        },
        prop = {
            model = 'prop_tool_screwdvr02',
            bone = 57005,
            pos = { x = 0.14, y = 0.0, z = -0.01 },
            rot = { x = 0.0, y = 90.0, z = 0.0 }
        }
    }, function(success)
        if success then
            print('Lock picked successfully!')
        else
            print('Lock picking failed!')
        end
    end)
end)

Last updated