fixed bugs
This commit is contained in:
1 parent
9d828a2b15
commit
abb1bba3fe
11 files changed
+30
-29
No files matched your search
@@ -13,7 +13,6 @@ RegisterServerEvent('md-drugs:server:makecrackone', function(num)
|
||||
}
|
||||
for _, v in ipairs(crackTiers) do
|
||||
if count >= 1 then break end
|
||||
print(v.item)
|
||||
if Player.Functions.GetItemByName(v.item) then
|
||||
tier = v.tier
|
||||
count = count + 1
|
||||
@@ -21,7 +20,6 @@ RegisterServerEvent('md-drugs:server:makecrackone', function(num)
|
||||
end
|
||||
end
|
||||
end
|
||||
print(tier)
|
||||
if not GetRecipe(src, 'crack', type, tier) then return end
|
||||
end)
|
||||
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.PoppyPlants = Config.PoppyPlants
|
||||
|
||||
local h = {
|
||||
{ location = vector3(-2251.3, -99.18, 100.11), heading = 334.49, model = "prop_plant_01b"},
|
||||
{ location = vector3(-2249.63, -92.97, 101.8), heading = 329.56, model = "prop_plant_01b"},
|
||||
@@ -15,7 +15,7 @@ local h = {
|
||||
{ location = vector3(-2250.96, -111.22, 97.50), heading = 21.52, model = "prop_plant_01b"},
|
||||
{ location = vector3(465.95, -1021.32, 31.78), heading = 21.52, model = "prop_plant_01b"},
|
||||
}
|
||||
|
||||
GlobalState.PoppyPlants = h
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(h) do
|
||||
v.taken = false
|
||||
|
||||
@@ -129,7 +129,10 @@ function checkLoc(source, event, num)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
local loc = Target.Travellingmerchant[math.random(1, #Target.Travellingmerchant)]
|
||||
lib.callback.register('md-drugs:server:getLocs', function()
|
||||
return Target
|
||||
end)
|
||||
end)
|
||||
lib.callback.register('md-drugs:server:GetMerchant', function(source)
|
||||
return loc
|
||||
end)
|
||||
@@ -1,5 +1,5 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.Mescaline = Config.Mescaline
|
||||
|
||||
local m = {
|
||||
{ location = vector3(2598.73, 4207.89, 41.02), heading = 334.49, model = "prop_cactus_03"},
|
||||
{ location = vector3(2601.46, 4199.34, 40.62), heading = 329.56, model = "prop_cactus_03"},
|
||||
@@ -19,6 +19,7 @@ local m = {
|
||||
{ location = vector3(2614.39, 4188.3, 41.68), heading = 21.52, model = "prop_cactus_03"},
|
||||
{ location = vector3(2623.82, 4189.97, 41.44), heading = 21.52, model = "prop_cactus_03"},
|
||||
}
|
||||
GlobalState.Mescaline = m
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(m) do
|
||||
v.taken = false
|
||||
|
||||
+1
-6
@@ -1,6 +1,5 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local config = lib.callback.await('md-drugs:server:getLocs', false)
|
||||
local loc = config.Travellingmerchant[math.random(1, #config.Travellingmerchant)]
|
||||
|
||||
local stores = {
|
||||
travel = {
|
||||
{name = "tab_paper", price = 50, amount = 50, },
|
||||
@@ -79,7 +78,3 @@ RegisterServerEvent("md-drugs:server:purchaseGoods", function(amount, money, ite
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
lib.callback.register('md-drugs:server:GetMerchant', function(source)
|
||||
return loc
|
||||
end)
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.shrooms = Config.shrooms
|
||||
|
||||
local s = {
|
||||
{ location = vector3(2185.14, 5183.81, 57.48), heading = 334.49, model = "mushroom"},
|
||||
{ location = vector3(2174.45, 5187.85, 57.43), heading = 329.56, model = "mushroom"},
|
||||
@@ -19,7 +19,7 @@ local s = {
|
||||
{ location = vector3(2185.85, 5190.49, 58.1), heading = 21.52, model = "mushroom"},
|
||||
{ location = vector3(2179.95, 5194.19, 58.26), heading = 21.52, model = "mushroom"},
|
||||
}
|
||||
|
||||
GlobalState.shrooms = s
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(s) do
|
||||
v.taken = false
|
||||
|
||||
Reference in new issue
Block a user