Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-06-20 18:46:51 -07:00
1 parent 4d4c45d99e
commit 66ee2d2652
1 file changed
+2 -1
+2 -1
View File
@@ -6,7 +6,6 @@ local notifytype = Config.Notify
local dispatch = Config.Dispatch local dispatch = Config.Dispatch
function progressbar(text, time, anim) function progressbar(text, time, anim)
TriggerEvent('animations:client:EmoteCommandStart', {anim}) TriggerEvent('animations:client:EmoteCommandStart', {anim})
if progressbartype == 'oxbar' then if progressbartype == 'oxbar' then
if lib.progressBar({ duration = time, label = text, useWhileDead = false, canCancel = true, disable = { car = true, move = true},}) then if lib.progressBar({ duration = time, label = text, useWhileDead = false, canCancel = true, disable = { car = true, move = true},}) then
@@ -133,6 +132,8 @@ function PoliceCall(chance)
}, {GetEntityCoords(PlayerPedId())}, "police", 3000, 11, 5 ) }, {GetEntityCoords(PlayerPedId())}, "police", 3000, 11, 5 )
elseif dispatch == 'aty' then elseif dispatch == 'aty' then
exports["aty_dispatch"]:SendDispatch('Drug Sale', '420-69', 40, {'police'}) exports["aty_dispatch"]:SendDispatch('Drug Sale', '420-69', 40, {'police'})
elseif dispatch == 'qs' then
exports['qs-dispatch']:DrugSale()
else else
print('Congrats, You Choose 0 of the options :)') print('Congrats, You Choose 0 of the options :)')
end end