Update wholesale.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2023-05-15 21:55:11 -07:00
1 parent 2138e9453b
commit 166228ac28
1 file changed
+10 -2
+10 -2
View File
@@ -57,12 +57,20 @@ AddEventHandler("md-drugs:client:getloccoke", function()
SetBlipRoute(deliveryBlip, true) SetBlipRoute(deliveryBlip, true)
druglocation = CircleZone:Create(CurrentLocation, 5,{ name = "cokesell", debugPoly = false }) druglocation = CircleZone:Create(CurrentLocation, 5,{ name = "cokesell", debugPoly = false })
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end) druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
if Config.Gks then
TriggerServerEvent('gksphone:NewMail', { TriggerServerEvent('gksphone:NewMail', {
sender = 'Anon', sender = 'Anon',
image = '/html/static/img/icons/mail.png', image = '/html/static/img/icons/mail.png',
subject = "Meet Me At The Marked location", subject = "Meet Me At The Marked location",
message = 'Bring me 100 bags of coke. If You Bring Police. You are dead.' message = 'Bring me 100 bags of crack. If You Bring Police. You are dead.'
}) })
else
TriggerServerEvent('qb-phone:server:sendNewMail', {
sender = 'Anonymous',
subject = 'Meet Me At The Marked Location',
message = 'Bring me 100 bags of crack. If You Bring Police. You are dead',
})
end
local current = "g_m_y_famdnf_01" local current = "g_m_y_famdnf_01"
RequestModel(current) RequestModel(current)
while not HasModelLoaded(current) do while not HasModelLoaded(current) do
@@ -572,4 +580,4 @@ QBCore.Functions.Progressbar("drink_something", "YOU FUCKED NOW", 4000, false, t
DeleteEntity(drugdealer) DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId()) ClearPedTasks(PlayerPedId())
end) end)
end) end)