Merge pull request #12 from RazerGhost/main
This commit is contained in:
1 file changed
+33
-30
+33
-30
@@ -13,12 +13,12 @@ CreateThread(function()
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
exports['qb-target']:AddBoxZone("methteleout",Config.MethTeleIn, 1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
exports['qb-target']:AddBoxZone("methteleout", Config.MethTeleIn, 1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "methteleout",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MethTeleIn.z-2,
|
||||
maxZ = Config.MethTeleIn.z+2,
|
||||
minZ = Config.MethTeleIn.z - 2,
|
||||
maxZ = Config.MethTeleIn.z + 2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
@@ -26,19 +26,19 @@ exports['qb-target']:AddBoxZone("methteleout",Config.MethTeleIn, 1.5, 1.75, { --
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Enter Building",
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),Config.MethTeleOut)
|
||||
SetEntityCoords(PlayerPedId(), Config.MethTeleOut)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("methtelein",Config.MethTeleOut,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
exports['qb-target']:AddBoxZone("methtelein", Config.MethTeleOut, 1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "methtelein",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MethTeleOut.z-2,
|
||||
maxZ = Config.MethTeleOut.z+2,
|
||||
minZ = Config.MethTeleOut.z - 2,
|
||||
maxZ = Config.MethTeleOut.z + 2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
@@ -46,19 +46,19 @@ exports['qb-target']:AddBoxZone("methtelein",Config.MethTeleOut,1.5, 1.75, { --
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Exit Building",
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),Config.MethTeleIn)
|
||||
SetEntityCoords(PlayerPedId(), Config.MethTeleIn)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("maze",vector3(-95.55, -806.73, 44.04),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
exports['qb-target']:AddBoxZone("maze", vector3(-95.55, -806.73, 44.04), 1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "maze",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = 44-2,
|
||||
maxZ = 44+2,
|
||||
minZ = 44 - 2,
|
||||
maxZ = 44 + 2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
@@ -66,20 +66,21 @@ exports['qb-target']:AddBoxZone("maze",vector3(-95.55, -806.73, 44.04),1.5, 1.75
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "dont click this",
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),vector3(-75.36, -837.24, 318.93))
|
||||
SetEntityCoords(PlayerPedId(), vector3(-75.36, -837.24, 318.93))
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
local itemreqcook = {"ephedrine", "acetone"}
|
||||
exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.55),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
local itemreqcook = { "ephedrine", "acetone" }
|
||||
exports['qb-target']:AddBoxZone("ingridientsmeth", vector3(1005.7, -3201.28, -39.55), 1.5, 1.75,
|
||||
{ -- 963.37, .z-2122.95, 31.47
|
||||
name = "ingridientsmeth",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -39-2,
|
||||
maxZ = -39+2,
|
||||
minZ = -39 - 2,
|
||||
maxZ = -39 + 2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
@@ -92,12 +93,13 @@ exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.
|
||||
amonia = true
|
||||
TriggerServerEvent("md-drugs:server:startcook")
|
||||
MethCooking()
|
||||
exports['qb-target']:AddBoxZone("adjustdials",vector3(1007.89, -3201.17, -38.99),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
exports['qb-target']:AddBoxZone("adjustdials", vector3(1007.89, -3201.17, -38.99), 1.5, 1.75,
|
||||
{ -- 963.37, .z-2122.95, 31.47
|
||||
name = "adjustdials",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -39-2,
|
||||
maxZ = -39+2,
|
||||
minZ = -39 - 2,
|
||||
maxZ = -39 + 2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
@@ -126,7 +128,6 @@ exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
else
|
||||
QBCore.Functions.Notify("Theres Stuff Inside", "error")
|
||||
end
|
||||
@@ -149,20 +150,23 @@ exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.
|
||||
while (not HasAnimDictLoaded('anim@heists@box_carry@')) do
|
||||
Wait(7)
|
||||
end
|
||||
TaskPlayAnim(PlayerPedId(), 'anim@heists@box_carry@', 'idle', 5.0, -1, -1, 50, 0, false, false, false)
|
||||
TaskPlayAnim(PlayerPedId(), 'anim@heists@box_carry@', 'idle', 5.0, -1, -1, 50, 0, false, false,
|
||||
false)
|
||||
RequestModel("bkr_prop_meth_tray_02a")
|
||||
while not HasModelLoaded("bkr_prop_meth_tray_02a") do
|
||||
Wait(0)
|
||||
end
|
||||
local trays = CreateObject("bkr_prop_meth_tray_02a", pos.x, pos.y, pos.z, true, true, true)
|
||||
AttachEntityToEntity(trays, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 28422), 0.01,-0.2, -0.2, 20.0, 0.0, 0.0, true, true, false, true, 1, true)
|
||||
AttachEntityToEntity(trays, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 28422), 0.01, -0.2,
|
||||
-0.2, 20.0, 0.0, 0.0, true, true, false, true, 1, true)
|
||||
tray = true
|
||||
exports['qb-target']:AddBoxZone("boxmeth",vector3(1012.04, -3194.96, -38.99),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
exports['qb-target']:AddBoxZone("boxmeth", vector3(1012.15, -3194.04, -39.20), 1.5, 1.75,
|
||||
{ -- 963.37, .z-2122.95, 31.47
|
||||
name = "boxmeth",
|
||||
heading = 11.0,
|
||||
heading = 3.0,
|
||||
debugPoly = false,
|
||||
minZ = -38-2,
|
||||
maxZ = -38+2,
|
||||
minZ = -39 - 2,
|
||||
maxZ = -39 + 2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
@@ -208,7 +212,6 @@ exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.
|
||||
end,
|
||||
canInteract = function()
|
||||
if heated and amonia and tray == nil then return true end
|
||||
|
||||
end,
|
||||
},
|
||||
},
|
||||
@@ -217,12 +220,12 @@ exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
local current = "g_m_y_famdnf_01"
|
||||
local current = "g_m_y_famdnf_01"
|
||||
lib.requestModel(current, 1000)
|
||||
local CurrentLocation = Config.MethHeistStart
|
||||
methdealer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, false, false)
|
||||
methdealer = CreatePed(0, current, CurrentLocation.x, CurrentLocation.y, CurrentLocation.z - 1, false, false)
|
||||
FreezeEntityPosition(methdealer, true)
|
||||
SetEntityHeading(methdealer,220.0)
|
||||
SetEntityHeading(methdealer, 220.0)
|
||||
SetEntityInvincible(methdealer, true)
|
||||
exports['qb-target']:AddTargetEntity(methdealer, {
|
||||
options = {
|
||||
|
||||
Reference in new issue
Block a user