diff --git a/client/cocaine.lua b/client/cocaine.lua index 4a01a32..892c0f0 100644 --- a/client/cocaine.lua +++ b/client/cocaine.lua @@ -121,7 +121,7 @@ CreateThread(function() local options2 = { { type = "client", event = "md-drugs:client:bagcoke", icon = "fas fa-sign-in-alt", label = "bagging", canInteract = function() if baggingcoke == nil and cuttingcoke == nil then return true end end }, } - if Config.OxTarget then + if Config.oxtarget then exports.ox_target:addBoxZone({coords = vector3(1093.17, -3195.74, -39.19 -1), size = vec3(1,1,1), options = options}) exports.ox_target:addBoxZone({coords = vector3(1093.17, -3195.74, -39.19 -1), size = vec3(1,1,1), options = options2}) else diff --git a/client/cornerselling.lua b/client/cornerselling.lua index b9b3c5a..5d00069 100644 --- a/client/cornerselling.lua +++ b/client/cornerselling.lua @@ -144,4 +144,4 @@ RegisterNetEvent('md-drugs:client:cornerselling', function() Notify('You Cant Sell Air', 'error') end end) -end) +end) \ No newline at end of file diff --git a/client/functions.lua b/client/functions.lua index 5686bac..0d16b77 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -25,7 +25,7 @@ local dispatch = Config.Dispatch test = true TriggerEvent('animations:client:EmoteCommandStart', {"c"}) end) - Wait(time + 50) + Wait(time + 200) if test then return true else Wait(400) if test then return true end end else print"dude, it literally tells you what you need to set it as in the config" diff --git a/client/heroin.lua b/client/heroin.lua index a62d3cc..77f0981 100644 --- a/client/heroin.lua +++ b/client/heroin.lua @@ -135,7 +135,6 @@ RegisterNetEvent("md-drugs:client:setheroinlabkit") AddEventHandler("md-drugs:client:setheroinlabkit", function() if herointable then Notify(Lang.Heroin.tableout, 'error') - TriggerServerEvent('md-drugs:server:getheroinlabkitback') else local PedCoords = GetEntityCoords(PlayerPedId()) if not progressbar(Lang.Heroin.table, 4000, 'uncuff') then TriggerServerEvent('md-drugs:server:getheroinlabkitback') return end @@ -170,8 +169,8 @@ local PedCoords = GetEntityCoords(PlayerPedId()) local options = { { event = "md-drugs:client:cleanheroinlabkit", icon = "fas fa-box-circle-check", label = "Clean It", data = dirtylabkitheroin} } - if Config.OxTarget then - exports.ox_target:addLocalEntity(dirtylabkitheroin, { options = options}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(dirtylabkitheroin,options ) else exports['qb-target']:AddTargetEntity(dirtylabkitheroin, {options = options}) end diff --git a/client/lean.lua b/client/lean.lua index 09775b1..1b21d90 100644 --- a/client/lean.lua +++ b/client/lean.lua @@ -9,7 +9,7 @@ CreateThread(function() local options = { { type = "client", label = "Get Task", icon = "fas fa-eye", event = "md-drugs:client:getsyruplocationtobuy", distance = 2.0}, } - if Config.OxTarget then + if Config.oxtarget then exports.ox_target:addLocalEntity(SyrupLocation, options) else exports['qb-target']:AddTargetEntity(SyrupLocation, { options = options, distance = 2.0}) diff --git a/client/lsd.lua b/client/lsd.lua index 59340c4..6d31ba8 100644 --- a/client/lsd.lua +++ b/client/lsd.lua @@ -21,8 +21,8 @@ local Ped = "g_m_y_famdnf_01" local options = { { type = "client", label = "Buy LSD Lab Kit", icon = "fas fa-eye", event = "md-drugs:client:buylabkit", distance = 2.0} } - if Config.OxTarget then - exports.ox_target:addLocalEntity(tabdealer, {options = options}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(tabdealer, options) else exports['qb-target']:AddTargetEntity(tabdealer, {options = options, distance = 2.0}) end @@ -60,15 +60,14 @@ else { event = "md-drugs:client:maketabpaper", icon = "fas fa-box-circle-check", label = "Dab Sheets", data = labkit, }, { event = "md-drugs:client:getlabkitback", icon = "fas fa-box-circle-check", label = "Pick Up", data = labkit, canInteract = function() if tableout then return true end end}, } - if Config.OxTarget then - exports.ox_target:addLocalEntity(labkit, {options = options}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(labkit, options) else exports['qb-target']:AddTargetEntity(labkit, {options = options}) end end end) - RegisterNetEvent("md-drugs:client:getlabkitback", function(data) if not progressbar(Lang.lsd.tablepack, 4000, 'uncuff') then return end DeleteObject(data.data) @@ -92,8 +91,8 @@ RegisterNetEvent("md-drugs:client:heatliquid", function(data) local options = { { event = "md-drugs:client:cleanlabkit", icon = "fas fa-box-circle-check", label = "Clean It", data = dirtylabkit }, } - if Config.OxTarget then - exports.ox_target:addLocalEntity(dirtylabkit, { options = options}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(dirtylabkit, options) else exports['qb-target']:AddTargetEntity(dirtylabkit, { options = options}) end diff --git a/client/meth.lua b/client/meth.lua index 1506f6a..27d8b4b 100644 --- a/client/meth.lua +++ b/client/meth.lua @@ -76,8 +76,8 @@ if tray then } } - if Config.OxTarget then - exports.ox_target:addLocalEntity(bucket, {options = optionsox}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(bucket, optionsox) else exports['qb-target']:AddTargetEntity(bucket, {options = options, distance = 2.0}) end diff --git a/client/oxyruns.lua b/client/oxyruns.lua index 88e6e20..03501f2 100644 --- a/client/oxyruns.lua +++ b/client/oxyruns.lua @@ -23,8 +23,8 @@ RegisterNetEvent("md-drugs:Client:getoxylocation", function() local options = { { event = "md-drugs:client:getfromtrunk", icon = "fas fa-box-circle-check", label = "Get Package"}, } - if Config.OxTarget then - exports.ox_target:addLocalEntity(oxycar, {options = options}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(oxycar, options) else exports['qb-target']:AddTargetEntity(oxycar, {options = options, distance = 2.0}) end @@ -66,8 +66,8 @@ RegisterNetEvent("md-drugs:client:getoxylocationroute", function() local options = { { type = "client", label = "Talk To Buyer", icon = "fas fa-eye", event = "md-drugs:client:giveoxybox", ped = oxybuyer}, } - if Config.OxTarget then - exports.ox_target:addLocalEntity(oxybuyer, {options = options}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(oxybuyer, options) else exports['qb-target']:AddTargetEntity(oxybuyer, {options = options, distance = 2.0}) end diff --git a/client/weed.lua b/client/weed.lua index 4dd52c8..e1936e5 100644 --- a/client/weed.lua +++ b/client/weed.lua @@ -157,8 +157,8 @@ exports['qb-target']:AddBoxZone("weeddry"..k,v,1.5, 1.75, {name = "weeddry"..k,h return true end end, } } - if Config.OxTarget then - exports.ox_target:addLocalEntity(weedplant, { options = optionsox }) + if Config.oxtarget then + exports.ox_target:addLocalEntity(weedplant, optionsox ) else exports['qb-target']:AddTargetEntity(weedplant, {options = options}) end diff --git a/client/xtc.lua b/client/xtc.lua index 9705af2..6bd2011 100644 --- a/client/xtc.lua +++ b/client/xtc.lua @@ -53,8 +53,8 @@ RegisterNetEvent("md-drugs:client:setpress", function(type) if xtcpress then return true end end }, } - if Config.OxTarget then - exports.ox_target:addLocalEntity(press, { options = optionsox}) + if Config.oxtarget then + exports.ox_target:addLocalEntity(press, optionsox) else exports['qb-target']:AddTargetEntity(press, { options = options}) end