From a8db1ff11d8ab2d817f27983ca65d41c93a564c9 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Fri, 3 May 2024 00:00:39 -0700 Subject: [PATCH] Update functions.lua --- client/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/functions.lua b/client/functions.lua index c6f9c08..1476bd9 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -132,6 +132,7 @@ function PoliceCall(chance) end function GetCops(number) + if number == 0 then return true end QBCore.Functions.TriggerCallback('md-drugs:server:GetCoppers', function(amount) if amount >= number then return amount == true else Notify('You Need '.. number - amount .. ' More Cops To Do This', 'error') end