fix(client/functions): error when progressbar is not started

This commit is contained in:
BerkieBb
2022-03-13 21:42:23 +01:00
committed by GitHub
parent 93a95e268b
commit 8efd4266a5
+1
View File
@@ -140,6 +140,7 @@ function QBCore.Functions.TriggerCallback(name, cb, ...)
end
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel)
if GetResourceState('progressbar') ~= 'started' then error('progressbar needs to be started in order for QBCore.Functions.Progressbar to work') end
exports['progressbar']:Progress({
name = name:lower(),
duration = duration,