update
This commit is contained in:
1 parent
11e3b5efe6
commit
c7479b44ff
4 files changed
+35
-33
No files matched your search
@@ -456,7 +456,7 @@ function AddMultiModel(model, data, num)
|
|||||||
for k, v in pairs (data) do
|
for k, v in pairs (data) do
|
||||||
table.insert(options,{
|
table.insert(options,{
|
||||||
icon = v.icon, label = v.label, event = v.event or nil, action = v.action or nil,
|
icon = v.icon, label = v.label, event = v.event or nil, action = v.action or nil,
|
||||||
onSelect = v.action,data = num,canInteract = v.canInteract or nil, distance = 2.0
|
onSelect = v.action,data = v.data,canInteract = v.canInteract or nil, distance = 2.0,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
if Config.Target == 'qb' then
|
if Config.Target == 'qb' then
|
||||||
|
|||||||
+1
-1
@@ -106,7 +106,7 @@ RegisterNetEvent("md-drugs:client:heatliquidheroin", function(data)
|
|||||||
heroinkit = StartParticleFxLoopedOnEntity("exp_air_molotov", dirtylabkitheroin, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.5, false, false, false)
|
heroinkit = StartParticleFxLoopedOnEntity("exp_air_molotov", dirtylabkitheroin, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.5, false, false, false)
|
||||||
SetParticleFxLoopedAlpha(heroinkit, 3.0)
|
SetParticleFxLoopedAlpha(heroinkit, 3.0)
|
||||||
SetPedToRagdoll(PlayerPedId(), 1300, 1300, 0, 0, 0, 0)
|
SetPedToRagdoll(PlayerPedId(), 1300, 1300, 0, 0, 0, 0)
|
||||||
AddMultiModel(dirtylabkitheroin, {event = "md-drugs:client:cleanheroinlabkit",icon = "fa-solid fa-hand-sparkles",label = Lang.target.heroin.clean, data = dirtylabkitheroin}, nil )
|
AddMultiModel(dirtylabkitheroin, {{event = "md-drugs:client:cleanheroinlabkit",icon = "fa-solid fa-hand-sparkles",label = Lang.targets.heroin.clean, data = dirtylabkitheroin}}, nil )
|
||||||
return end
|
return end
|
||||||
if not progressbar(Lang.Heroin.success, 4000, 'uncuff') then return end
|
if not progressbar(Lang.Heroin.success, 4000, 'uncuff') then return end
|
||||||
TriggerServerEvent("md-drugs:server:heatliquidheroin")
|
TriggerServerEvent("md-drugs:server:heatliquidheroin")
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
["coke"] = {
|
["coke"] = {
|
||||||
label = "Raw Cocaine",
|
label = "Raw Cocaine",
|
||||||
weight = 1000,
|
weight = 1000,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Raw Cocaine",
|
description = "Raw Cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
["cokebaggy"] = {
|
["cokebaggy"] = {
|
||||||
label = "Bag Of Cocaine",
|
label = "Bag Of Cocaine",
|
||||||
weight = 1000,
|
weight = 1000,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "A Small Bag Of Weak Cocaine",
|
description = "A Small Bag Of Weak Cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
["empty_weed_bag"] = {
|
["empty_weed_bag"] = {
|
||||||
label = "Empty Bag",
|
label = "Empty Bag",
|
||||||
weight = 1000,
|
weight = 1000,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Empty Bag To Put Product In",
|
description = "Empty Bag To Put Product In",
|
||||||
client = {
|
client = {
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
["coca_leaf"] = {
|
["coca_leaf"] = {
|
||||||
label = "Cocaine leaves",
|
label = "Cocaine leaves",
|
||||||
weight = 1500,
|
weight = 1500,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Cocaine leaves that must be processed !",
|
description = "Cocaine leaves that must be processed !",
|
||||||
client = {
|
client = {
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
["poppyresin"] = {
|
["poppyresin"] = {
|
||||||
label = "Poppy resin",
|
label = "Poppy resin",
|
||||||
weight = 2000,
|
weight = 2000,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "It sticks to your fingers when you handle it.",
|
description = "It sticks to your fingers when you handle it.",
|
||||||
client = {
|
client = {
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
["heroin"] = {
|
["heroin"] = {
|
||||||
label = "Weak Heroin Powder",
|
label = "Weak Heroin Powder",
|
||||||
weight = 500,
|
weight = 500,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = true,
|
close = true,
|
||||||
description = "Dragon Chasin?",
|
description = "Dragon Chasin?",
|
||||||
client = {
|
client = {
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
["bakingsoda"] = {
|
["bakingsoda"] = {
|
||||||
label = "Baking Soda",
|
label = "Baking Soda",
|
||||||
weight = 300,
|
weight = 300,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Household Baking Soda!",
|
description = "Household Baking Soda!",
|
||||||
client = {
|
client = {
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
["loosecoke"] = {
|
["loosecoke"] = {
|
||||||
label = "Loose Coke",
|
label = "Loose Coke",
|
||||||
weight = 100,
|
weight = 100,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = true,
|
close = true,
|
||||||
description = "Cut Cocaine",
|
description = "Cut Cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
["loosecokestagetwo"] = {
|
["loosecokestagetwo"] = {
|
||||||
label = "More Pure Loose Coke",
|
label = "More Pure Loose Coke",
|
||||||
weight = 100,
|
weight = 100,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = true,
|
close = true,
|
||||||
description = "Cut Cocaine",
|
description = "Cut Cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
["loosecokestagethree"] = {
|
["loosecokestagethree"] = {
|
||||||
label = "Purest Loose Coke",
|
label = "Purest Loose Coke",
|
||||||
weight = 100,
|
weight = 100,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = true,
|
close = true,
|
||||||
description = "Cut Cocaine",
|
description = "Cut Cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
["cokestagetwo"] = {
|
["cokestagetwo"] = {
|
||||||
label = "Better Raw Cocaine",
|
label = "Better Raw Cocaine",
|
||||||
weight = 100,
|
weight = 100,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Raw cocaine",
|
description = "Raw cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
["cokestagethree"] = {
|
["cokestagethree"] = {
|
||||||
label = "Best Raw Cocaine",
|
label = "Best Raw Cocaine",
|
||||||
weight = 100,
|
weight = 100,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Raw cocaine",
|
description = "Raw cocaine",
|
||||||
client = {
|
client = {
|
||||||
@@ -363,7 +363,7 @@
|
|||||||
["heroinstagetwo"] = {
|
["heroinstagetwo"] = {
|
||||||
label = "Better Heroin",
|
label = "Better Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Raw Heroin",
|
description = "Raw Heroin",
|
||||||
client = {
|
client = {
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
["heroinstagethree"] = {
|
["heroinstagethree"] = {
|
||||||
label = "Best Heroin",
|
label = "Best Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Raw Heroin",
|
description = "Raw Heroin",
|
||||||
client = {
|
client = {
|
||||||
@@ -383,7 +383,7 @@
|
|||||||
["heroincut"] = {
|
["heroincut"] = {
|
||||||
label = "Cut Heroin",
|
label = "Cut Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Cut Heroin",
|
description = "Cut Heroin",
|
||||||
client = {
|
client = {
|
||||||
@@ -393,7 +393,7 @@
|
|||||||
["heroincutstagetwo"] = {
|
["heroincutstagetwo"] = {
|
||||||
label = "Better Cut Heroin",
|
label = "Better Cut Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Cut Heroin",
|
description = "Cut Heroin",
|
||||||
client = {
|
client = {
|
||||||
@@ -403,7 +403,7 @@
|
|||||||
["heroincutstagethree"] = {
|
["heroincutstagethree"] = {
|
||||||
label = "Best Cut Heroin",
|
label = "Best Cut Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Cut Heroin",
|
description = "Cut Heroin",
|
||||||
client = {
|
client = {
|
||||||
@@ -413,7 +413,7 @@
|
|||||||
["heroinlabkit"] = {
|
["heroinlabkit"] = {
|
||||||
label = "Heroin Lab Kit",
|
label = "Heroin Lab Kit",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "How Can A Big Ass Table Fit In One Slot",
|
description = "How Can A Big Ass Table Fit In One Slot",
|
||||||
client = {
|
client = {
|
||||||
@@ -423,7 +423,7 @@
|
|||||||
["heroinvial"] = {
|
["heroinvial"] = {
|
||||||
label = "Vial Of Heroin",
|
label = "Vial Of Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Hmm, Maybe A Needle Can Help",
|
description = "Hmm, Maybe A Needle Can Help",
|
||||||
client = {
|
client = {
|
||||||
@@ -433,7 +433,7 @@
|
|||||||
["heroinvialstagetwo"] = {
|
["heroinvialstagetwo"] = {
|
||||||
label = "Better Vial of Heroin",
|
label = "Better Vial of Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Hmm, Maybe A Needle Can Help",
|
description = "Hmm, Maybe A Needle Can Help",
|
||||||
client = {
|
client = {
|
||||||
@@ -443,7 +443,7 @@
|
|||||||
["heroinvialstagethree"] = {
|
["heroinvialstagethree"] = {
|
||||||
label = "Best Vial Of Heroin",
|
label = "Best Vial Of Heroin",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Hmm, Maybe A Needle Can Help",
|
description = "Hmm, Maybe A Needle Can Help",
|
||||||
client = {
|
client = {
|
||||||
@@ -493,7 +493,7 @@
|
|||||||
["needle"] = {
|
["needle"] = {
|
||||||
label = "Syringe",
|
label = "Syringe",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "I Swear Officer, Its For Diabetes",
|
description = "I Swear Officer, Its For Diabetes",
|
||||||
client = {
|
client = {
|
||||||
@@ -503,7 +503,7 @@
|
|||||||
["crackrock"] = {
|
["crackrock"] = {
|
||||||
label = "Crack Rock",
|
label = "Crack Rock",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "This Isnt The Rock The Hippie Girl Told Me About",
|
description = "This Isnt The Rock The Hippie Girl Told Me About",
|
||||||
client = {
|
client = {
|
||||||
@@ -513,7 +513,7 @@
|
|||||||
["crackrockstagetwo"] = {
|
["crackrockstagetwo"] = {
|
||||||
label = "Better Crack Rock",
|
label = "Better Crack Rock",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "This Rocks!",
|
description = "This Rocks!",
|
||||||
client = {
|
client = {
|
||||||
@@ -523,7 +523,7 @@
|
|||||||
["crackrockstagethree"] = {
|
["crackrockstagethree"] = {
|
||||||
label = "Best Crack Rock",
|
label = "Best Crack Rock",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "This Rocks!",
|
description = "This Rocks!",
|
||||||
client = {
|
client = {
|
||||||
@@ -583,7 +583,7 @@
|
|||||||
["vicodin_prescription"] = {
|
["vicodin_prescription"] = {
|
||||||
label = "Vicie Prescription",
|
label = "Vicie Prescription",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "If Only This Helped With The Pain inside",
|
description = "If Only This Helped With The Pain inside",
|
||||||
client = {
|
client = {
|
||||||
@@ -593,7 +593,7 @@
|
|||||||
["adderal_prescription"] = {
|
["adderal_prescription"] = {
|
||||||
label = "Mdderal Prescription",
|
label = "Mdderal Prescription",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "I CAN DO EVERYTHING",
|
description = "I CAN DO EVERYTHING",
|
||||||
client = {
|
client = {
|
||||||
@@ -603,7 +603,7 @@
|
|||||||
["morphine_prescription"] = {
|
["morphine_prescription"] = {
|
||||||
label = "Morphin Prescription",
|
label = "Morphin Prescription",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "I Cant Feel Anything",
|
description = "I Cant Feel Anything",
|
||||||
client = {
|
client = {
|
||||||
@@ -613,7 +613,7 @@
|
|||||||
["xanax_prescription"] = {
|
["xanax_prescription"] = {
|
||||||
label = "Zany Prescription",
|
label = "Zany Prescription",
|
||||||
weight = 250,
|
weight = 250,
|
||||||
stack = false,
|
stack =true,
|
||||||
close = false,
|
close = false,
|
||||||
description = "Ahhh Sweet Comfort",
|
description = "Ahhh Sweet Comfort",
|
||||||
client = {
|
client = {
|
||||||
|
|||||||
+4
-2
@@ -12,7 +12,8 @@ RegisterServerEvent('md-drugs:server:makecrackone', function(num)
|
|||||||
{item = 'loosecokestagethree', tier = 'tier3', log = ' Cut Crack tier 3'}
|
{item = 'loosecokestagethree', tier = 'tier3', log = ' Cut Crack tier 3'}
|
||||||
}
|
}
|
||||||
for _, v in ipairs(crackTiers) do
|
for _, v in ipairs(crackTiers) do
|
||||||
if count >= 1 then return end
|
if count >= 1 then break end
|
||||||
|
print(v.item)
|
||||||
if Player.Functions.GetItemByName(v.item) then
|
if Player.Functions.GetItemByName(v.item) then
|
||||||
tier = v.tier
|
tier = v.tier
|
||||||
count = count + 1
|
count = count + 1
|
||||||
@@ -20,6 +21,7 @@ RegisterServerEvent('md-drugs:server:makecrackone', function(num)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
print(tier)
|
||||||
if not GetRecipe(src, 'crack', type, tier) then return end
|
if not GetRecipe(src, 'crack', type, tier) then return end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -35,7 +37,7 @@ RegisterServerEvent('md-drugs:server:bagcrack', function(num)
|
|||||||
{item = 'crackrockstagethree', tier = 'tier3', log = ' Bagged Crack tier 3'}
|
{item = 'crackrockstagethree', tier = 'tier3', log = ' Bagged Crack tier 3'}
|
||||||
}
|
}
|
||||||
for _, v in ipairs(crackTiers) do
|
for _, v in ipairs(crackTiers) do
|
||||||
if count >= 1 then return end
|
if count >= 1 then break end
|
||||||
if Player.Functions.GetItemByName(v.item) then
|
if Player.Functions.GetItemByName(v.item) then
|
||||||
tier = v.tier
|
tier = v.tier
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|||||||
Reference in new issue
Block a user