From 9df44f726d458103f7ca908966077668dac2c2f2 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:49:03 -0700 Subject: [PATCH] fix --- client/cocaine.lua | 11 ++++++----- client/deliveries.lua | 2 +- client/heroin.lua | 2 +- client/lsd.lua | 2 +- client/mescaline.lua | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/client/cocaine.lua b/client/cocaine.lua index 8553d7a..d55dd90 100644 --- a/client/cocaine.lua +++ b/client/cocaine.lua @@ -4,9 +4,9 @@ local cuttingcoke = nil local baggingcoke = nil local function pick(loc) -if not progressbar(Lang.Coke.picking, 4000, 'uncuff') then return end -TriggerServerEvent("coke:pickupCane", loc) -return true + if not progressbar(Lang.Coke.picking, 4000, 'uncuff') then return end + TriggerServerEvent("coke:pickupCane", loc) + return true end RegisterNetEvent('coke:respawnCane', function(loc) @@ -15,7 +15,7 @@ RegisterNetEvent('coke:respawnCane', function(loc) if not CocaPlant[loc] then CocaPlant[loc] = CreateObject(hash, v.location, false, true, true) Freeze(CocaPlant[loc], true, v.heading) - AddSingleModel(CocaPlant[loc], {icon = 'fas fa-hand', label = Lang.targets.coke.pick, action = function() if not pick(loc) then return end end}, loc) + AddSingleModel(CocaPlant[loc], {icon = 'fas fa-hand', label = Lang.targets.coke.pick, action = function() if not pick(loc) then return end end}, loc) end end) @@ -31,7 +31,7 @@ RegisterNetEvent("coke:init", function() if not v.taken then CocaPlant[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true) Freeze(CocaPlant[k], true, v.heading) - AddSingleModel(CocaPlant[k], {icon = 'fas fa-hand', label = Lang.targets.coke.pick, action = function() if not pick(k) then return end end}, k) + AddSingleModel(CocaPlant[k], {icon = 'fas fa-hand', label = Lang.targets.coke.pick, action = function() if not pick(k) then return end end}, k) end end end) @@ -42,6 +42,7 @@ AddEventHandler('onResourceStart', function(resource) TriggerEvent('coke:init') end end) + RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function() Wait(3000) LoadModel('prop_plant_01a') diff --git a/client/deliveries.lua b/client/deliveries.lua index b933660..dec9466 100644 --- a/client/deliveries.lua +++ b/client/deliveries.lua @@ -76,7 +76,7 @@ CreateThread(function() }, { icon = 'fas fa-user-secret', - label = string.format(Lang.targets.Delivery.openm, v.name), + label = string.format(Lang.targets.Delivery.open, v.name), action = function() TriggerEvent('md-drugs:client:opendealermenu') end, onSelect = function() TriggerEvent('md-drugs:client:opendealermenu') end } diff --git a/client/heroin.lua b/client/heroin.lua index 3f4eb26..454a52e 100644 --- a/client/heroin.lua +++ b/client/heroin.lua @@ -13,7 +13,7 @@ local Ped = "g_m_y_famdnf_01" local labkitlocation = Config.buyheroinlabkit local heroinkitdealer = CreatePed(0, Ped, labkitlocation.x, labkitlocation.y, labkitlocation.z-1, labkitlocation.w, false, false) Freeze(heroinkitdealer, true, labkitlocation.w) - AddSingleModel(heroinkitdealer, { label = lang.targets.heroin.kit, icon = "fas fa-eye", event = "md-drugs:client:buyheroinlabkit", distance = 2.0}, nil ) + AddSingleModel(heroinkitdealer, { label = Lang.targets.heroin.kit, icon = "fas fa-eye", event = "md-drugs:client:buyheroinlabkit", distance = 2.0}, nil ) end) ---- plant spawns dont edit diff --git a/client/lsd.lua b/client/lsd.lua index fcc16a5..63a40ce 100644 --- a/client/lsd.lua +++ b/client/lsd.lua @@ -9,7 +9,7 @@ local Ped = "g_m_y_famdnf_01" lib.requestModel(Ped, Config.RequestModelTime) local tabdealer = CreatePed(0, Ped,Config.buylsdlabkit.x,Config.buylsdlabkit.y,Config.buylsdlabkit.z-1, Config.buylsdlabkit.w, false, false) Freeze(tabdealer, true, Config.buylsdlabkit.w) - AddSingleModel(tabdealer,{ type = "client", label = lang.targets.lsd.buy, icon = "fas fa-eye", event = "md-drugs:client:buylabkit", distance = 2.0}, tabdealer ) + AddSingleModel(tabdealer,{ type = "client", label = Lang.targets.lsd.buy, icon = "fas fa-eye", event = "md-drugs:client:buylabkit", distance = 2.0}, tabdealer ) end) diff --git a/client/mescaline.lua b/client/mescaline.lua index e33abbc..a8d3ace 100644 --- a/client/mescaline.lua +++ b/client/mescaline.lua @@ -20,7 +20,7 @@ RegisterNetEvent('Mescaline:respawnCane', function(loc) if not Mescaline[loc] then Mescaline[loc] = CreateObject(hash, v.location, false, true, true) Freeze(Mescaline[loc], true, v.heading) - AddSingleModel(Mescaline[loc], {icon = "fas fa-hand",label = lang.targets.mescaline.pick, action = function() pick(loc) end}, loc ) + AddSingleModel(Mescaline[loc], {icon = "fas fa-hand",label = Lang.targets.mescaline.pick, action = function() pick(loc) end}, loc ) end end) @@ -40,7 +40,7 @@ RegisterNetEvent("Mescaline:init", function() if not v.taken then Mescaline[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true) Freeze(Mescaline[k], true, v.heading) - AddSingleModel(Mescaline[k], {icon = "fas fa-hand",label = lang.targets.mescaline.pick,action = function() pick(k) end}, k) + AddSingleModel(Mescaline[k], {icon = "fas fa-hand",label = Lang.targets.mescaline.pick,action = function() pick(k) end}, k) end end end)