From 66ee2d26528231e737a44b863d3d1bcdc7f2a387 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:46:51 -0700 Subject: [PATCH] Update functions.lua --- client/functions.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index df21eee..f59e4de 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -6,7 +6,6 @@ local notifytype = Config.Notify local dispatch = Config.Dispatch function progressbar(text, time, anim) - TriggerEvent('animations:client:EmoteCommandStart', {anim}) if progressbartype == 'oxbar' then if lib.progressBar({ duration = time, label = text, useWhileDead = false, canCancel = true, disable = { car = true, move = true},}) then @@ -61,13 +60,13 @@ end function Notify(text, type) if notifytype =='ox' then lib.notify({title = text, type = type}) - elseif notifytype == 'qb' then + elseif notifytype == 'qb' then QBCore.Functions.Notify(text, type) elseif notifytype == 'okok' then - exports['okokNotify']:Alert('', text, 4000, type, false) + exports['okokNotify']:Alert('', text, 4000, type, false) else - print"dude, it literally tells you what you need to set it as in the config" - end + print"dude, it literally tells you what you need to set it as in the config" + end end function ItemCheck(item) @@ -133,6 +132,8 @@ function PoliceCall(chance) }, {GetEntityCoords(PlayerPedId())}, "police", 3000, 11, 5 ) elseif dispatch == 'aty' then exports["aty_dispatch"]:SendDispatch('Drug Sale', '420-69', 40, {'police'}) + elseif dispatch == 'qs' then + exports['qs-dispatch']:DrugSale() else print('Congrats, You Choose 0 of the options :)') end