Update functions.lua
This commit is contained in:
1 parent
4d4c45d99e
commit
66ee2d2652
1 file changed
+6
-5
@@ -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
|
||||||
@@ -61,13 +60,13 @@ end
|
|||||||
function Notify(text, type)
|
function Notify(text, type)
|
||||||
if notifytype =='ox' then
|
if notifytype =='ox' then
|
||||||
lib.notify({title = text, type = type})
|
lib.notify({title = text, type = type})
|
||||||
elseif notifytype == 'qb' then
|
elseif notifytype == 'qb' then
|
||||||
QBCore.Functions.Notify(text, type)
|
QBCore.Functions.Notify(text, type)
|
||||||
elseif notifytype == 'okok' then
|
elseif notifytype == 'okok' then
|
||||||
exports['okokNotify']:Alert('', text, 4000, type, false)
|
exports['okokNotify']:Alert('', text, 4000, type, false)
|
||||||
else
|
else
|
||||||
print"dude, it literally tells you what you need to set it as in the config"
|
print"dude, it literally tells you what you need to set it as in the config"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ItemCheck(item)
|
function ItemCheck(item)
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user