Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-05-12 00:22:09 -07:00
1 parent 598e16965e
commit 1e06afa926
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +132,7 @@ function PoliceCall(chance)
end
function GetCops(number)
if number == 0 then return number == true end
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