Update xtc.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2023-04-02 00:54:31 -07:00
1 parent 9e9d9874ba
commit 9056e07a00
1 file changed
+520 -3
+520 -3
View File
@@ -552,8 +552,8 @@ end, 1, 8) -- NumberOfCircles, MS
end) end)
end) end)
------------------------------------------------------------------ Stamping ------------------------------------------------------------------ Stamping
RegisterNetEvent("md-drugs:client:stamppills") RegisterNetEvent("md-drugs:client:stampwhite")
AddEventHandler("md-drugs:client:stamppills", function() AddEventHandler("md-drugs:client:stampwhite", function()
RequestAnimDict("mp_arresting") RequestAnimDict("mp_arresting")
while (not HasAnimDictLoaded("mp_arresting")) do while (not HasAnimDictLoaded("mp_arresting")) do
Citizen.Wait(4000) Citizen.Wait(4000)
@@ -569,7 +569,7 @@ AddEventHandler("md-drugs:client:stamppills", function()
}, {}, {}, {}, function()-- Done }, {}, {}, {}, function()-- Done
exports['ps-ui']:Circle(function(success) exports['ps-ui']:Circle(function(success)
if success then if success then
TriggerServerEvent("md-drugs:server:stamppills") TriggerServerEvent("md-drugs:server:stampwhite")
Citizen.Wait(4000) Citizen.Wait(4000)
ClearPedTasks(PlayerPedId()) ClearPedTasks(PlayerPedId())
else else
@@ -581,3 +581,520 @@ end, 2, 8) -- NumberOfCircles, MS
end) end)
end) end)
RegisterNetEvent("md-drugs:client:stampred")
AddEventHandler("md-drugs:client:stampred", function()
RequestAnimDict("mp_arresting")
while (not HasAnimDictLoaded("mp_arresting")) do
Citizen.Wait(4000)
end
TaskPlayAnim(PlayerPedId(), "mp_arresting" ,"a_uncuff" ,8.0, -8.0, -1, 1, 0, false, false, false )
local PedCoords = GetEntityCoords(PlayerPedId())
QBCore.Functions.Progressbar("drink_something", "Making Stamped Pills", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
exports['ps-ui']:Circle(function(success)
if success then
TriggerServerEvent("md-drugs:server:stampred")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 2, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:stamporange")
AddEventHandler("md-drugs:client:stamporange", function()
RequestAnimDict("mp_arresting")
while (not HasAnimDictLoaded("mp_arresting")) do
Citizen.Wait(4000)
end
TaskPlayAnim(PlayerPedId(), "mp_arresting" ,"a_uncuff" ,8.0, -8.0, -1, 1, 0, false, false, false )
local PedCoords = GetEntityCoords(PlayerPedId())
QBCore.Functions.Progressbar("drink_something", "Making Stamped Pills", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
exports['ps-ui']:Circle(function(success)
if success then
TriggerServerEvent("md-drugs:server:stamporange")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 2, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:stampblue")
AddEventHandler("md-drugs:client:stampblue", function()
RequestAnimDict("mp_arresting")
while (not HasAnimDictLoaded("mp_arresting")) do
Citizen.Wait(4000)
end
TaskPlayAnim(PlayerPedId(), "mp_arresting" ,"a_uncuff" ,8.0, -8.0, -1, 1, 0, false, false, false )
local PedCoords = GetEntityCoords(PlayerPedId())
QBCore.Functions.Progressbar("drink_something", "Making Stamped Pills", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
exports['ps-ui']:Circle(function(success)
if success then
TriggerServerEvent("md-drugs:server:stampblue")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 2, 8) -- NumberOfCircles, MS
end)
end)
CreateThread(function()
exports['qb-target']::AddBoxZone("stealisosafrole",Config.isosafrole,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stealisosafrole",
heading = 11.0,
debugPoly = false,
minZ = Config.isosafrole-2,
maxZ = Config.isosafrole+2,
options = {
{
type = "client",
event = "md-drugs:client:stealisosafrole",
icon = 'fas fa-eye',
label = 'Steal Isosafrole',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("stealmdp2p",Config.mdp2p,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stealmdp2p",
heading = 11.0,
debugPoly = false,
minZ = Config.mdp2p-2,
maxZ = Config.mdp2p+2,
options = {
{
type = "client",
event = "md-drugs:client:stealmdp2p",
icon = 'fas fa-eye',
label = 'Steal mdp2p',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makerawxtc",Config.rawxtcloc,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makerawxtc",
heading = 11.0,
debugPoly = false,
minZ = Config.rawxtcloc-2,
maxZ = Config.rawxtcloc+2,
options = {
{
type = "client",
event = "md-drugs:client:makingrawxtc",
icon = 'fas fa-eye',
label = 'Make Raw XTC',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedwhite1",Config.makeunstampedwhite,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedwhite1",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedwhite-2,
maxZ = Config.makeunstampedwhite+2,
options = {
{
num = 1,
type = "client",
event = "md-drugs:client:makextcsingle",
icon = 'fas fa-eye',
label = 'Make White Single Stack',
targeticon = 'fas fa-eye',
item = "singlepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedwhite2",Config.makeunstampedwhite,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedwhite2",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedwhite-2,
maxZ = Config.makeunstampedwhite+2,
options = {
{
num = 2,
type = "client",
event = "md-drugs:client:makextcdual",
icon = 'fas fa-eye',
label = 'Make White dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedwhite3",Config.makeunstampedwhite,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedwhite3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedwhite-2,
maxZ = Config.makeunstampedwhite+2,
options = {
{
num = 3,
type = "client",
event = "md-drugs:client:makextctriple",
icon = 'fas fa-eye',
label = 'Make White Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedwhite4",Config.makeunstampedwhite,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedwhite3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedwhite-2,
maxZ = Config.makeunstampedwhite+2,
options = {
{
num = 4,
type = "client",
event = "md-drugs:client:makextcquad",
icon = 'fas fa-eye',
label = 'Make White Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedred1",Config.makeunstampedred,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedred1",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedred-2,
maxZ = Config.makeunstampedred+2,
options = {
{
num = 1,
type = "client",
event = "md-drugs:client:makeredxtcsingle",
icon = 'fas fa-eye',
label = 'Make Red Single Stack',
targeticon = 'fas fa-eye',
item = "singlepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedred2",Config.makeunstampedred,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedred2",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedred-2,
maxZ = Config.makeunstampedred+2,
options = {
{
num = 2,
type = "client",
event = "md-drugs:client:makeredxtcdual",
icon = 'fas fa-eye',
label = 'Make Red dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedred3",Config.makeunstampedred,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedred3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedred-2,
maxZ = Config.makeunstampedred+2,
options = {
{
num = 3,
type = "client",
event = "md-drugs:client:makeredxtctriple",
icon = 'fas fa-eye',
label = 'Make Red Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedred4",Config.makeunstampedred,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedred3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedred-2,
maxZ = Config.makeunstampedred+2,
options = {
{
num = 4,
type = "client",
event = "md-drugs:client:makeredxtcquad",
icon = 'fas fa-eye',
label = 'Make Red Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedorange1",Config.makeunstampedorange,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedorange1",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedorange-2,
maxZ = Config.makeunstampedorange+2,
options = {
{
num = 1,
type = "client",
event = "md-drugs:client:makeorangextcsingle",
icon = 'fas fa-eye',
label = 'Make orange Single Stack',
targeticon = 'fas fa-eye',
item = "singlepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedorange2",Config.makeunstampedorange,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedorange2",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedorange-2,
maxZ = Config.makeunstampedorange+2,
options = {
{
num = 2,
type = "client",
event = "md-drugs:client:makeorangextcdual",
icon = 'fas fa-eye',
label = 'Make orange dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedorange3",Config.makeunstampedorange,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedorange3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedorange-2,
maxZ = Config.makeunstampedorange+2,
options = {
{
num = 3,
type = "client",
event = "md-drugs:client:makeorangextctriple",
icon = 'fas fa-eye',
label = 'Make orange Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedorange4",Config.makeunstampedorange,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedorange3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedorange-2,
maxZ = Config.makeunstampedorange+2,
options = {
{
num = 4,
type = "client",
event = "md-drugs:client:makeorangextcquad",
icon = 'fas fa-eye',
label = 'Make orange Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedblue1",Config.makeunstampedblue,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedblue1",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedblue-2,
maxZ = Config.makeunstampedblue+2,
options = {
{
num = 1,
type = "client",
event = "md-drugs:client:makebluextcsingle",
icon = 'fas fa-eye',
label = 'Make blue Single Stack',
targeticon = 'fas fa-eye',
item = "singlepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedblue2",Config.makeunstampedblue,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedblue2",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedblue-2,
maxZ = Config.makeunstampedblue+2,
options = {
{
num = 2,
type = "client",
event = "md-drugs:client:makebluextcdual",
icon = 'fas fa-eye',
label = 'Make blue dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedblue3",Config.makeunstampedblue,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedblue3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedblue-2,
maxZ = Config.makeunstampedblue+2,
options = {
{
num = 3,
type = "client",
event = "md-drugs:client:makebluextctriple",
icon = 'fas fa-eye',
label = 'Make blue Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("makeunstampedblue4",Config.makeunstampedblue,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedblue3",
heading = 11.0,
debugPoly = false,
minZ = Config.makeunstampedblue-2,
maxZ = Config.makeunstampedblue+2,
options = {
{
num = 4,
type = "client",
event = "md-drugs:client:makebluextcquad",
icon = 'fas fa-eye',
label = 'Make blue Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("stampwhite",Config.stamp,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stampwhite",
heading = 11.0,
debugPoly = false,
minZ = Config.stamp-2,
maxZ = Config.stamp+2,
options = {
{
num = 1,
type = "client",
event = "md-drugs:client:stampwhite",
icon = 'fas fa-eye',
label = 'Make White Stamped Pills',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("stampred",Config.stamp,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stampred",
heading = 11.0,
debugPoly = false,
minZ = Config.stamp-2,
maxZ = Config.stamp+2,
options = {
{
num = 2,
type = "client",
event = "md-drugs:client:stampred",
icon = 'fas fa-eye',
label = 'Make Red Stamped Pills',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("stamporange",Config.stamp,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stamporange",
heading = 11.0,
debugPoly = false,
minZ = Config.stamp-2,
maxZ = Config.stamp+2,
options = {
{
num = 3,
type = "client",
event = "md-drugs:client:stamporange",
icon = 'fas fa-eye',
label = 'Make Orange Stamped Pills',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
exports['qb-target']::AddBoxZone("stampblue",Config.stamp,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stampblue",
heading = 11.0,
debugPoly = false,
minZ = Config.stamp-2,
maxZ = Config.stamp+2,
options = {
{
num = 4,
type = "client",
event = "md-drugs:client:stampblue",
icon = 'fas fa-eye',
label = 'Make Blue Stamped Pills',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
end)