Update xtc.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2023-04-02 01:53:36 -07:00
1 parent 771ad6f1a0
commit 7fb56bb68a
1 file changed
+37
+37
View File
@@ -668,6 +668,26 @@ end, 2, 8) -- NumberOfCircles, MS
end) end)
end) end)
RegisterNetEvent("md-drugs:client:buypress")
AddEventHandler("md-drugs:client:buypress", 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
TriggerServerEvent("md-drugs:server:buypress")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId()
end
end)
CreateThread(function() CreateThread(function()
exports['qb-target']::AddBoxZone("stealisosafrole",Config.isosafrole,1.5, 1.75, { -- 963.37, -2122.95, 31.47 exports['qb-target']::AddBoxZone("stealisosafrole",Config.isosafrole,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stealisosafrole", name = "stealisosafrole",
@@ -1096,5 +1116,22 @@ exports['qb-target']::AddBoxZone("stealisosafrole",Config.isosafrole,1.5, 1.75,
}, },
distance = 2.5, distance = 2.5,
}) })
exports['qb-target']::AddBoxZone("buypress",Config.buypress,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stampblue",
heading = 11.0,
debugPoly = false,
minZ = Config.buypress-2,
maxZ = Config.buypress+2,
options = {
{
type = "client",
event = "md-drugs:client:buypress",
icon = 'fas fa-eye',
label = 'Buy Press',
targeticon = 'fas fa-eye',
}
},
distance = 2.5,
})
end) end)