Update target.lua
added ox target compatibility
This commit is contained in:
1 parent
4984280fb3
commit
3d0095ba1c
1 file changed
+306
-2
+306
-2
@@ -1,6 +1,310 @@
|
|||||||
local QBCore = exports['qb-core']:GetCoreObject()
|
local QBCore = exports['qb-core']:GetCoreObject()
|
||||||
|
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
|
if Config.oxtarget then
|
||||||
|
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||||
|
coords = Config.makecokepowder,
|
||||||
|
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",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||||
|
coords = Config.cutcokeone,
|
||||||
|
size = vec3(2,2,2),
|
||||||
|
debugPoly = false,
|
||||||
|
rotation = 45,
|
||||||
|
options = {
|
||||||
|
{
|
||||||
|
type = "client",
|
||||||
|
event = "md-drugs:client:cutcokeone",
|
||||||
|
icon = "fas fa-sign-in-alt",
|
||||||
|
label = "cut up",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||||
|
coords = Config.bagcoke,
|
||||||
|
size = vec3(2,2,2),
|
||||||
|
debugPoly = false,
|
||||||
|
rotation = 45,
|
||||||
|
options = {
|
||||||
|
{
|
||||||
|
type = "client",
|
||||||
|
event = "md-drugs:client:bagcoke",
|
||||||
|
icon = "fas fa-sign-in-alt",
|
||||||
|
label = "bagging",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
------------- 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.buylsdlabkit,
|
||||||
|
size = vec3(2,2,2),
|
||||||
|
debugPoly = false,
|
||||||
|
rotation = 45,
|
||||||
|
options = {
|
||||||
|
{
|
||||||
|
type = "client",
|
||||||
|
event = "md-drugs:client:buylabkit",
|
||||||
|
icon = "fas fa-sign-in-alt",
|
||||||
|
label = "Buy A Kit",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
------ 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",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||||
|
coords = Config.buyheroinlabkit,
|
||||||
|
size = vec3(2,2,2),
|
||||||
|
debugPoly = false,
|
||||||
|
rotation = 45,
|
||||||
|
options = {
|
||||||
|
{
|
||||||
|
type = "client",
|
||||||
|
event = "md-drugs:client:buyheroinlabkit",
|
||||||
|
icon = "fas fa-sign-in-alt",
|
||||||
|
label = "Buy A Kit",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
------- 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",
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
------------ 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("makepowdercoke",Config.makecokepowder,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
exports['qb-target']:AddBoxZone("makepowdercoke",Config.makecokepowder,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||||
name = "makepowdercoke",
|
name = "makepowdercoke",
|
||||||
heading = 11.0,
|
heading = 11.0,
|
||||||
@@ -217,7 +521,7 @@ exports['qb-target']:AddBoxZone("makepowdercoke",Config.makecokepowder,1.5, 1.75
|
|||||||
type = "client",
|
type = "client",
|
||||||
event = "md-drugs:client:bagcrack",
|
event = "md-drugs:client:bagcrack",
|
||||||
icon = "fas fa-sign-in-alt",
|
icon = "fas fa-sign-in-alt",
|
||||||
label = "cook some crack",
|
label = "Bag some crack",
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -365,5 +669,5 @@ options = {
|
|||||||
},
|
},
|
||||||
distance = 2.5
|
distance = 2.5
|
||||||
})
|
})
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
Reference in new issue
Block a user