Progress Bar System
Progressbar
Basic Usage
Progressbar(
"drinking_coffee", -- Unique name
"Drinking coffee...", -- Display label
5000, -- 5 seconds
false, -- Don't use while dead
true, -- Can be cancelled
{ -- Disable controls
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
},
{}, -- No animation
{}, -- No props
{}, -- No secondary prop
function() -- On completion
print("Coffee finished!")
-- Add health or whatever
end,
function() -- On cancel
print("Coffee drinking cancelled!")
end
)Advanced Usage with Animation and Props
Real-world Examples
Medical Treatment
Crafting Item
Best Practices
Progress Bars
Last updated