Progress

Library
Updated 2 months ago · v1.3.7

lib.progressBar

Show a progress bar. Yields until complete or cancelled.

lua
local success = lib.progressBar({
    duration = 5000,
    label = 'Repairing vehicle...',
    canCancel = true,
    anim = {
        dict = 'mini@repair',
        clip = 'fixing_a_player',
    },
    disable = {
        move = true,
        combat = true,
    },
})

if success then
    print('Repair complete')
end

lib.progressCircle

Same as progressBar but renders as a circular indicator.

lua
local success = lib.progressCircle({ duration = 3000, label = 'Searching...' })

Progress Options

FieldTypeDescription
durationnumberDuration in milliseconds
labelstringText displayed on the bar
positionstringScreen position override
iconstringOptional icon
descriptionstringOptional sub-text
useWhileDeadbooleanAllow while dead
allowRagdollbooleanAllow while ragdolled
allowCuffedbooleanAllow while cuffed
allowFallingbooleanAllow while falling
allowSwimmingbooleanAllow while swimming
canCancelbooleanAllow cancelling
animtable{ dict, clip, flag, blendIn, blendOut }
proptable{ model, bone, pos, rot }
disabletable{ car, move, combat, mouse, sprint }

lib.cancelProgress

Cancel the active progress bar.

lua
lib.cancelProgress()

lib.progressActive

Check whether a progress action is currently active.

lua
local active = lib.progressActive()
Was this page helpful?
This page was last updated on 12 March 2026
DIRKSCRIPTS
All you need for your FiveM server.10% off your first order

Unsubscribe any time.

Copyright © 2026 DirkScripts. Not affiliated with or endorsed by Rockstar North or Take-Two Interactive.