DirkScripts Logo

Login With FiveM

Login

πŸ“š Dirk Lib
β€Ί
Modules
β€Ί
ui
β€Ί

Progress

Progress

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()

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.