From 8efd4266a584a4f8c11f90bda7f5f429a9d922eb Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Sun, 13 Mar 2022 21:42:23 +0100 Subject: [PATCH] fix(client/functions): error when progressbar is not started --- client/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/functions.lua b/client/functions.lua index 16e1430..dac7ab0 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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,