update
This commit is contained in:
1 parent
b1bcb7ce56
commit
11e3b5efe6
7 files changed
+15
-28
No files matched your search
@@ -462,7 +462,7 @@ else
|
||||
AddSingleModel(methcar,{
|
||||
name = 'methcar',
|
||||
icon = 'fa-solid fa-car',
|
||||
label = 'Steal From Car',
|
||||
label = Lang.targets.meth.stealfromcar,
|
||||
action = function()
|
||||
if not minigame() then return end
|
||||
TriggerServerEvent('md-drugs:server:givemethingridients')
|
||||
|
||||
@@ -165,8 +165,6 @@ function minigame()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
function Notify(text, type)
|
||||
if notifytype =='ox' then
|
||||
lib.notify({title = text, type = type})
|
||||
@@ -256,7 +254,6 @@ end
|
||||
|
||||
|
||||
function ItemCheck(item)
|
||||
local success
|
||||
if GetResourceState('ox_inventory') == 'started' then
|
||||
if exports.ox_inventory:GetItemCount(item) >= 1 then return true else Notify('You Need ' .. GetLabel(item) .. " !", 'error') return false end
|
||||
else
|
||||
@@ -292,7 +289,6 @@ function Email(sender, subject, message)
|
||||
sender = sender,
|
||||
senderDisplayName = sender,
|
||||
content = message,
|
||||
|
||||
}, 'phoneNumber', receiver)
|
||||
elseif Config.Phone == 'qs' then
|
||||
TriggerServerEvent('qs-smartphone:server:sendNewMail', {
|
||||
|
||||
@@ -7,7 +7,7 @@ local current = "g_m_y_famdnf_01"
|
||||
local CurrentLocation = Config.Travellingmerchant[num]
|
||||
local travellingmerchant = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, CurrentLocation.w, false, false)
|
||||
Freeze(travellingmerchant, true, CurrentLocation.w)
|
||||
AddSingleModel(travellingmerchant, { label = "Travelling Merchant", icon = "fas fa-eye",
|
||||
AddSingleModel(travellingmerchant, { label = Lang.targets.travel.travel, icon = "fas fa-eye",
|
||||
action = function()
|
||||
makeMenu('travellingMerchant')
|
||||
lib.showContext('travellingMerchant')
|
||||
|
||||
@@ -286,7 +286,7 @@ function AddRep(source, type, amount)
|
||||
return true
|
||||
end
|
||||
|
||||
RegisterCommand('fixmybrokenshit', function()
|
||||
RegisterCommand('addCornerSellingTOREP', function()
|
||||
local sql = MySQL.query.await('SELECT * FROM drugrep', {})
|
||||
for k, v in pairs (sql) do
|
||||
local new = {}
|
||||
@@ -304,8 +304,6 @@ RegisterCommand('fixmybrokenshit', function()
|
||||
level = 1
|
||||
}
|
||||
})
|
||||
if new[1].coke == 125 then print('work') end
|
||||
if not new[1].cornerselling == 125 then print('fail') return end
|
||||
local news = json.encode(new)
|
||||
MySQL.query.await('UPDATE drugrep SET drugrep = ? WHERE cid = ?', {news, v.cid})
|
||||
end
|
||||
@@ -335,7 +333,7 @@ function ChecknRemove(source, table)
|
||||
if items.count >= v then
|
||||
hass = hass + 1
|
||||
else
|
||||
Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error')
|
||||
Notifys(source, 'You Need ' .. v .. ' Of ' .. GetLabels(k) .. ' To Do This', 'error')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
+6
-9
@@ -1,30 +1,27 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterServerEvent('md-drugs:server:givelean', function()
|
||||
local src = source
|
||||
local chance = math.random(1,100)
|
||||
local amount = math.random(1,5)
|
||||
if chance <= 50 then
|
||||
if AddItem(src, 'mdlean', amount) then
|
||||
if AddItem(source, 'mdlean', amount) then
|
||||
Notifys(Lang.Lean.lean, "success")
|
||||
Log(GetName(src) .. ' Got ' .. amount .. ' Of Lean' , 'lean')
|
||||
Log(GetName(source) .. ' Got ' .. amount .. ' Of Lean' , 'lean')
|
||||
end
|
||||
else
|
||||
if AddItem(src, 'mdreddextro', amount) then
|
||||
if AddItem(source, 'mdreddextro', amount) then
|
||||
Notifys(Lang.Lean.dextro, "success")
|
||||
Log(GetName(src) .. ' Got ' .. amount .. ' Of Red Dextro' , 'lean')
|
||||
Log(GetName(source) .. ' Got ' .. amount .. ' Of Red Dextro' , 'lean')
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('leancup', function(source, item)
|
||||
local src = source
|
||||
if Itemcheck(src, 'leancup', 1) then
|
||||
TriggerClientEvent('md-drugs:client:leancraft', src)
|
||||
if Itemcheck(source, 'leancup', 1) then
|
||||
TriggerClientEvent('md-drugs:client:leancraft', source)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:finishcup', function(data)
|
||||
local src = source
|
||||
if not GetRecipe(source, 'lean','cups', data.item) then return end
|
||||
end)
|
||||
@@ -15,7 +15,6 @@ RegisterServerEvent('md-drugs:server:wholesalecoke', function()
|
||||
local src = source
|
||||
local Player = getPlayer(src)
|
||||
local price = math.random(Config.Wcoke.min, Config.Wcoke.max)
|
||||
|
||||
for k, v in pairs(coke) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
@@ -28,11 +27,9 @@ RegisterServerEvent('md-drugs:server:wholesalecoke', function()
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem("crackburner", function(source, item)
|
||||
local src = source
|
||||
local Player = getPlayer(source)
|
||||
|
||||
TriggerClientEvent("md-drugs:client:GetLocation", src, 'crack', "Bring Me All The Crack You Have")
|
||||
end)
|
||||
|
||||
@@ -40,7 +37,6 @@ RegisterServerEvent('md-drugs:server:wholesalecrack', function()
|
||||
local src = source
|
||||
local Player = getPlayer(src)
|
||||
local price = math.random(Config.Wcrack.min, Config.Wcrack.max)
|
||||
|
||||
for k, v in pairs(crack) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
if item and item.amount > 0 then
|
||||
@@ -82,7 +78,6 @@ end)
|
||||
QBCore.Functions.CreateUseableItem("heroinburner", function(source, item)
|
||||
local src = source
|
||||
local Player = getPlayer(source)
|
||||
|
||||
TriggerClientEvent("md-drugs:client:GetLocation", src, 'heroin', "Bring Me All The Heroin You Have")
|
||||
end)
|
||||
|
||||
@@ -90,7 +85,6 @@ RegisterServerEvent('md-drugs:server:wholesaleheroin', function()
|
||||
local src = source
|
||||
local Player = getPlayer(src)
|
||||
local price = math.random(Config.WHeroin.min, Config.WHeroin.max)
|
||||
|
||||
for k, v in pairs(heroin) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
@@ -106,7 +100,6 @@ end)
|
||||
QBCore.Functions.CreateUseableItem("xtcburner", function(source, item)
|
||||
local src = source
|
||||
local Player = getPlayer(source)
|
||||
|
||||
TriggerClientEvent("md-drugs:client:GetLocation", src, 'xtc', "Bring Me All The xtc You Have")
|
||||
end)
|
||||
|
||||
@@ -114,7 +107,6 @@ RegisterServerEvent('md-drugs:server:wholesalextc', function()
|
||||
local src = source
|
||||
local Player = getPlayer(src)
|
||||
local price = math.random(Config.WXTC.min, Config.WXTC.max)
|
||||
|
||||
for k, v in pairs(xtc) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
|
||||
+5
-1
@@ -63,7 +63,8 @@ Lang.targets = {
|
||||
adjust = 'Adjust Temperature',
|
||||
eph = 'Steal Ephedrine',
|
||||
ace = 'Steal Acetone',
|
||||
mission = 'Get Mission'
|
||||
mission = 'Get Mission',
|
||||
stealfromcar = 'Steal From Car',
|
||||
},
|
||||
oxy = {
|
||||
pack = 'Get Oxy Package',
|
||||
@@ -76,6 +77,9 @@ Lang.targets = {
|
||||
shrooms = {
|
||||
pick = 'Pick Shrooms',
|
||||
},
|
||||
travel = {
|
||||
travel = 'Open Travelling Merchant',
|
||||
},
|
||||
xtc = {
|
||||
iso = 'Steal Isosafrole',
|
||||
mdp = 'Steal MDP2P',
|
||||
|
||||
Reference in new issue
Block a user