Skip to main content

Progress Bar

The ProgressBar module provides client-side progress bar UI. Bridges ox_lib, wasabi_uikit, lation_ui, and others.

Client Functions

GetResourceName

Returns the progress bar resource name.

local name = Bridge.ProgressBar.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the ProgressBar module resource. Used for internal identification. Always returns "default" for the built-in ProgressBar module.

Open

Displays a progress bar and calls a callback on completion.

Bridge.ProgressBar.Open(options, cb, isQBInput)
ParameterTypeDescription
optionstableProgress bar options (see below)
cbCommunity Bridge (CB). A framework abstraction layer that provides unified APIs across QBCore, ESX, and ox_core, allowing resources to work on any framework.functionCallback function, receives cancelled boolean
isQBInputbooleanWhether options are in QB format (optional)

Options Format

Bridge.ProgressBar.Open({
duration = 5000,
label = 'Searching...',
canCancel = true,
disable = {
move = true,
combat = true
},
anim = {
dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
clip = 'machinic_loop_mechandler'
},
prop = {
model = 'prop_tool_spanner',
bone = 57005,
pos = vector3(0.12, 0.04, -0.01),
rot = vector3(10.0, 0.0, 0.0)
}
}, function(cancelled)
if not cancelled then
print('completed')
end
end)