qbcore-redm-framework / qbr-core

RedM Core
GNU General Public License v3.0
18 stars 39 forks source link

No function Progressbar from QBR-CORE #28

Closed ardhanardiansyahh closed 2 years ago

ardhanardiansyahh commented 2 years ago

Adding this to your qbr-core -> client -> functions.lua

exports('Progressbar', function(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel) exports['progressbar']:Progress({ name = name:lower(), duration = duration, label = label, useWhileDead = useWhileDead, canCancel = canCancel, controlDisables = disableControls, animation = animation, prop = prop, propTwo = propTwo, }, function(cancelled) if not cancelled then if onFinish then onFinish() end else if onCancel then onCancel() end end end) end)

Screenshot 2022-04-24 184831