Add files via upload
This commit is contained in:
1 parent
7d9d4a030d
commit
f9709311af
20 files changed
+1701
-3894
No files matched your search
+239
-628
@@ -1,40 +1,24 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
CreateThread(function()
|
||||
|
||||
if Config.oxtarget then
|
||||
coketelein = exports.ox_target:addBoxZone({
|
||||
coords = Config.CokeTeleIn,
|
||||
size = vec(1,1,3),
|
||||
rotation = 0,
|
||||
debug = false,
|
||||
coketelein = exports.ox_target:addBoxZone({ coords = Config.CokeTeleIn, size = vec(1,1,3), rotation = 0, debug = false,
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Enter Building",
|
||||
distance = 5,
|
||||
{name = 'teleout',icon = "fas fa-sign-in-alt",label = "Enter Building",distance = 5,
|
||||
onSelect = function()
|
||||
DoScreenFadeOut(500)
|
||||
DoScreenFadeOut(500)
|
||||
Wait(1000)
|
||||
SetEntityCoords(PlayerPedId(),Config.CokeTeleOut.x, Config.CokeTeleOut.y, Config.CokeTeleOut.z)
|
||||
Wait(1000)
|
||||
DoScreenFadeIn(500)
|
||||
end,
|
||||
|
||||
Wait(1000)
|
||||
DoScreenFadeIn(500)
|
||||
end
|
||||
},
|
||||
},
|
||||
})
|
||||
coketeleout = exports.ox_target:addBoxZone({
|
||||
coords = Config.CokeTeleOut,
|
||||
size = vec(1,1,3),
|
||||
rotation = 0,
|
||||
debug = false,
|
||||
})
|
||||
coketeleout = exports.ox_target:addBoxZone({ coords = Config.CokeTeleOut, size = vec(1,1,3), rotation = 0, debug = false,
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Exit Building",
|
||||
distance = 5,
|
||||
{name = 'teleout',icon = "fas fa-sign-in-alt",label = "Exit Building",distance = 5,
|
||||
onSelect = function()
|
||||
DoScreenFadeOut(500)
|
||||
Wait(500)
|
||||
@@ -46,285 +30,8 @@ if Config.oxtarget then
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = vector3(1087.16, -3195.46, -38.99),
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makepowder",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "chop it up",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
------------- lsd
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.lysergicacid,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getlysergic",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.diethylamide,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getdiethylamide",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.gettabs,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buytabs",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Buy Tabs",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------ heroin
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.dryplant,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:dryplant",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry out",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.cutheroinone,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cutheroin",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Cut Heroin",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.fillneedle,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillneedle",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Needles",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------- crack
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.makecrack,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makecrackone",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "cook some crack",
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.bagcrack,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:bagcrack",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "bag some crack",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------- pharma
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.FillPrescription,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillprescription",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Prescription",
|
||||
},
|
||||
},
|
||||
})
|
||||
-------- oxy runs
|
||||
exports.ox_target:addBoxZone({
|
||||
coords = Config.Payfortruck,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:getoxytruck",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Pay For Truck",
|
||||
},
|
||||
}
|
||||
})
|
||||
------------ mescaline
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.DryOut,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:drymescaline",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Out",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.isosafrole,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stealisosafrole",
|
||||
icon = 'fas fa-sign-in-alt',
|
||||
label = 'Steal Isosafrole',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.mdp2p,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stealmdp2p",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Steal mdp2p',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.rawxtcloc,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makingrawxtc",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Raw XTC',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.buypress,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buypress",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Buy Press',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.stamp,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stampwhite",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White Stamped Pills',
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stampred",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red Stamped Pills',
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stamporange",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Orange Stamped Pills',
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stampblue",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Blue Stamped Pills',
|
||||
},
|
||||
},
|
||||
})
|
||||
--------------------------------------- XTC
|
||||
else
|
||||
|
||||
exports['qb-target']:AddBoxZone("coketelein",Config.CokeTeleIn,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "coketelein",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.CokeTeleIn.z-2,
|
||||
maxZ = Config.CokeTeleIn.z+2,
|
||||
}, {
|
||||
exports['qb-target']:AddBoxZone("coketelein",Config.CokeTeleIn,1.5, 1.75, { name = "coketelein",heading = 156.0,debugPoly = false,minZ = Config.CokeTeleIn.z-2,maxZ = Config.CokeTeleIn.z+2,}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
@@ -341,13 +48,7 @@ else
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("CokeTeleOut",Config.CokeTeleOut,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "CokeTeleOut",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.CokeTeleOut.z-2,
|
||||
maxZ = Config.CokeTeleOut.z+2,
|
||||
}, {
|
||||
exports['qb-target']:AddBoxZone("CokeTeleOut",Config.CokeTeleOut,1.5, 1.75, {name = "CokeTeleOut",heading = 156.0,debugPoly = false,minZ = Config.CokeTeleOut.z-2,maxZ = Config.CokeTeleOut.z+2,}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
@@ -364,324 +65,234 @@ else
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("makepowder",Config.MakePowder,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "makepowder",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MakePowder.z-2,
|
||||
maxZ = Config.MakePowder.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makepowder",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "chop it up",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
----- LSD
|
||||
exports['qb-target']:AddBoxZone("getlysergic",Config.lysergicacid,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "getlysergic",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.lysergicacid.z-2,
|
||||
maxZ = Config.lysergicacid.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getlysergic",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("getdiethylamide",Config.diethylamide,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "getdiethylamide",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.diethylamide.z-2,
|
||||
maxZ = Config.diethylamide.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getdiethylamide",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("buylabkit2",Config.gettabs,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "buylabkit2",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.gettabs.z-2,
|
||||
maxZ = Config.gettabs.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buytabs",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Buy Tabs",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("dryplant",Config.dryplant,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "dryplant",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.dryplant.z-2,
|
||||
maxZ = Config.dryplant.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:dryplant",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry out",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("cutheroin",Config.cutheroinone,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "cutheroin",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.cutheroinone.z-2,
|
||||
maxZ = Config.cutheroinone.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cutheroin",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Cut Heroin",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
|
||||
exports['qb-target']:AddBoxZone("fillneedle",Config.fillneedle,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "fillneedle",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.fillneedle.z-2,
|
||||
maxZ = Config.fillneedle.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillneedle",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Needles",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("crackmakeone",Config.makecrack,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "crackmakeone",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.makecrack.z-2,
|
||||
maxZ = Config.makecrack.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makecrackone",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "cook some crack",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("bagcrack",Config.bagcrack,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "bagcrack",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.bagcrack.z-2,
|
||||
maxZ = Config.bagcrack.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:bagcrack",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Bag some crack",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("pharmapresc",Config.FillPrescription,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "pharmapresc",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.FillPrescription.z-2,
|
||||
maxZ = Config.FillPrescription.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillprescription",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Prescription",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
----------------------------------------- mescaline
|
||||
exports['qb-target']:AddBoxZone("drymescaline",Config.DryOut,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "drymescaline",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.DryOut.z-2,
|
||||
maxZ = Config.DryOut.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:drymescaline",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Out",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
-------------- oxy run
|
||||
exports['qb-target']:AddBoxZone("getoxytruck",Config.Payfortruck,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "getoxytruck",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.Payfortruck.z-2,
|
||||
maxZ = Config.Payfortruck.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:getoxytruck",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Pay For Truck",
|
||||
end
|
||||
-- cocaine ( Bagging and Cutting is in Cocaine.lua due to globals used :))
|
||||
for k, v in pairs (Config.MakePowder) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:makepowder", icon = "fas fa-sign-in-alt", label = "chop it up", data = k, distance = 2.0,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
},
|
||||
}
|
||||
})
|
||||
--------------------------------------- XTC
|
||||
exports['qb-target']:AddBoxZone("stealisosafrole2",Config.isosafrole,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "stealisosafrole2",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.isosafrole.z-2,
|
||||
maxZ = Config.isosafrole.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stealisosafrole",
|
||||
icon = 'fas fa-sign-in-alt',
|
||||
label = 'Steal Isosafrole',
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("stealmdp2p",Config.mdp2p,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "stealmdp2p",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.mdp2p.z-2,
|
||||
maxZ = Config.mdp2p.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stealmdp2p",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Steal mdp2p',
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("makerawxtc",Config.rawxtcloc,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "makerawxtc",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.rawxtcloc.z-2,
|
||||
maxZ = Config.rawxtcloc.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makingrawxtc",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Raw XTC',
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("buypress",Config.buypress,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "buypress",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.buypress.z-2,
|
||||
maxZ = Config.buypress.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buypress",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Buy Press',
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("makepowder"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="makepowder"..k, heading = 156.0,minZ = v.loc.z-1, maxZ = v.loc.z+1, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
------------- lsd
|
||||
for k, v in pairs (Config.lysergicacid) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:getlysergic", icon = "fas fa-sign-in-alt", label = "stealing", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false, rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("getlysergic"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="getlysergic"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
for k, v in pairs (Config.diethylamide) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:getdiethylamide", icon = "fas fa-sign-in-alt", label = "stealing", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("getdiethylamide"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="getdiethylamide"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
for k, v in pairs (Config.gettabs) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:buytabs", icon = "fas fa-sign-in-alt", label = "Buy Tabs", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("buytabs"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="buytabs"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
------ heroin
|
||||
for k, v in pairs (Config.dryplant) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:dryplant", icon = "fas fa-sign-in-alt", label = "Dry Poppies", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("dryplant"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="dryplant"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
for k, v in pairs (Config.cutheroinone) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:cutheroin", icon = "fas fa-sign-in-alt", label = "Cut Heroin", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("cutheroin"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="cutheroin"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
for k, v in pairs (Config.fillneedle) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:fillneedle", icon = "fas fa-sign-in-alt", label = "Fill Needles", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("fillneedle"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="fillneedle"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
------- crack
|
||||
for k, v in pairs (Config.makecrack) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:makecrackone", icon = "fas fa-sign-in-alt", label = "Cook Crack", data = k, distance = 2.0,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("makecrackone"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="makecrackone"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
for k, v in pairs (Config.bagcrack) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:bagcrack", icon = "fas fa-sign-in-alt", label = "Bag Crack", data = k, distance = 2.0,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("bagcrack"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="bagcrack"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
------- pharma
|
||||
for k, v in pairs (Config.FillPrescription) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:fillprescription", icon = "fas fa-sign-in-alt", label = "Fill Prescription", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("fillprescription"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="fillprescription"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
-------- oxy runs
|
||||
local options2 = {
|
||||
{ event = "md-drugs:client:getoxytruck", icon = "fas fa-sign-in-alt", label = "Pay For Truck",},
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = Config.Payfortruck, size = vec3(1,1,1),debugPoly = false,rotation = 90.0, options = options2,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("payfortruck" ,Config.Payfortruck, 1.0, 1.0, {name ="payfortruck", heading = 156.0,minZ = Config.Payfortruck.z-2, maxZ = Config.Payfortruck.z+2, }, {options = options2, distance = 1.5})
|
||||
end
|
||||
------------ mescaline
|
||||
local options3 = {
|
||||
{ type = "client", event = "md-drugs:client:drymescaline", icon = "fas fa-sign-in-alt", label = "Dry Out"},
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = Config.DryOut, size = vec3(1,1,1),debugPoly = false,rotation = 90.0, options = options3,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("DryOut" ,Config.DryOut, 1.0, 1.0, {name ="DryOut", heading = 156.0,minZ = Config.DryOut.z-2, maxZ = Config.DryOut.z+2, }, {options = options3, distance = 1.5})
|
||||
end
|
||||
------ XTC
|
||||
for k, v in pairs (Config.isosafrole) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:stealisosafrole", icon = "fas fa-sign-in-alt", label = "Steal Isosafrole", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("stealisosafrole"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="stealisosafrole"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
for k, v in pairs (Config.mdp2p) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:stealmdp2p", icon = "fas fa-sign-in-alt", label = "Steal MDP2P", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("stealmdp2p"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="stealmdp2p"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
|
||||
for k, v in pairs (Config.rawxtcloc) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{ type = "client", event = "md-drugs:client:makingrawxtc", icon = "fas fa-sign-in-alt", label = "Make Raw XTC", data = k,
|
||||
canInteract = function()
|
||||
if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end
|
||||
}
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("makingrawxtc"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="makingrawxtc"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
local options4 = {
|
||||
{ type = "client", event = "md-drugs:client:buypress", icon = 'fas fa-eye', label = 'Buy Press',},
|
||||
}
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({ coords = Config.buypress, size = vec3(2,2,2), debugPoly = false, rotation = 45, options = options4})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("buypress" ,Config.buypress, 1.0, 1.0, {name ="buypress", heading = 156.0,minZ = Config.buypress.z-2, maxZ = Config.buypress.z+2, }, {options = options4, distance = 1.5})
|
||||
end
|
||||
for k, v in pairs(Config.stamp) do
|
||||
if v.gang == nil or v.gang == '' or v.gang == "" then v.gang = 1 end
|
||||
local options = {
|
||||
{type = "client", event = "md-drugs:client:stampwhite", icon = 'fas fa-eye', label = 'Stamp Pills', data = k, canInteract = function() if QBCore.Functions.GetPlayerData().gang.name == v.gang or v.gang == 1 then return true end end },
|
||||
|
||||
}
|
||||
|
||||
if Config.oxtarget then
|
||||
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1),debugPoly = false,rotation = v.rot, options = options,})
|
||||
else
|
||||
exports['qb-target']:AddBoxZone("stampxtc"..k ,vector3(v.loc.x, v.loc.y, v.loc.z), v.l, v.w, {name ="stampxtc"..k, heading = 156.0,minZ = v.loc.z-2, maxZ = v.loc.z+2, }, {options = options, distance = 1.5})
|
||||
end
|
||||
end
|
||||
|
||||
exports['qb-target']:AddBoxZone("stampwhite",Config.stamp,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "stampwhite",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.stamp.z-2,
|
||||
maxZ = Config.stamp.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stampwhite",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White Stamped Pills',
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stampred",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red Stamped Pills',
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stamporange",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Orange Stamped Pills',
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stampblue",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Blue Stamped Pills',
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user