fix
This commit is contained in:
1 parent
d3e99d6440
commit
9df44f726d
5 files changed
+11
-10
No files matched your search
+6
-5
@@ -4,9 +4,9 @@ local cuttingcoke = nil
|
|||||||
local baggingcoke = nil
|
local baggingcoke = nil
|
||||||
|
|
||||||
local function pick(loc)
|
local function pick(loc)
|
||||||
if not progressbar(Lang.Coke.picking, 4000, 'uncuff') then return end
|
if not progressbar(Lang.Coke.picking, 4000, 'uncuff') then return end
|
||||||
TriggerServerEvent("coke:pickupCane", loc)
|
TriggerServerEvent("coke:pickupCane", loc)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
RegisterNetEvent('coke:respawnCane', function(loc)
|
RegisterNetEvent('coke:respawnCane', function(loc)
|
||||||
@@ -15,7 +15,7 @@ RegisterNetEvent('coke:respawnCane', function(loc)
|
|||||||
if not CocaPlant[loc] then
|
if not CocaPlant[loc] then
|
||||||
CocaPlant[loc] = CreateObject(hash, v.location, false, true, true)
|
CocaPlant[loc] = CreateObject(hash, v.location, false, true, true)
|
||||||
Freeze(CocaPlant[loc], true, v.heading)
|
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
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ RegisterNetEvent("coke:init", function()
|
|||||||
if not v.taken then
|
if not v.taken then
|
||||||
CocaPlant[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
CocaPlant[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
||||||
Freeze(CocaPlant[k], true, v.heading)
|
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
|
end
|
||||||
end)
|
end)
|
||||||
@@ -42,6 +42,7 @@ AddEventHandler('onResourceStart', function(resource)
|
|||||||
TriggerEvent('coke:init')
|
TriggerEvent('coke:init')
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
|
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
|
||||||
Wait(3000)
|
Wait(3000)
|
||||||
LoadModel('prop_plant_01a')
|
LoadModel('prop_plant_01a')
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CreateThread(function()
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon = 'fas fa-user-secret',
|
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,
|
action = function() TriggerEvent('md-drugs:client:opendealermenu') end,
|
||||||
onSelect = function() TriggerEvent('md-drugs:client:opendealermenu') end
|
onSelect = function() TriggerEvent('md-drugs:client:opendealermenu') end
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ local Ped = "g_m_y_famdnf_01"
|
|||||||
local labkitlocation = Config.buyheroinlabkit
|
local labkitlocation = Config.buyheroinlabkit
|
||||||
local heroinkitdealer = CreatePed(0, Ped, labkitlocation.x, labkitlocation.y, labkitlocation.z-1, labkitlocation.w, false, false)
|
local heroinkitdealer = CreatePed(0, Ped, labkitlocation.x, labkitlocation.y, labkitlocation.z-1, labkitlocation.w, false, false)
|
||||||
Freeze(heroinkitdealer, true, labkitlocation.w)
|
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)
|
end)
|
||||||
|
|
||||||
---- plant spawns dont edit
|
---- plant spawns dont edit
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ local Ped = "g_m_y_famdnf_01"
|
|||||||
lib.requestModel(Ped, Config.RequestModelTime)
|
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)
|
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)
|
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)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ RegisterNetEvent('Mescaline:respawnCane', function(loc)
|
|||||||
if not Mescaline[loc] then
|
if not Mescaline[loc] then
|
||||||
Mescaline[loc] = CreateObject(hash, v.location, false, true, true)
|
Mescaline[loc] = CreateObject(hash, v.location, false, true, true)
|
||||||
Freeze(Mescaline[loc], true, v.heading)
|
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
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ RegisterNetEvent("Mescaline:init", function()
|
|||||||
if not v.taken then
|
if not v.taken then
|
||||||
Mescaline[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
Mescaline[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
||||||
Freeze(Mescaline[k], true, v.heading)
|
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
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in new issue
Block a user