Delete client directory

This commit is contained in:
Mustache Dom authored and GitHub committed 2023-10-04 18:01:54 -07:00
1 parent e9f3241c54
commit 606a41a625
10 files changed
-4168

No files matched your search

-265
View File
@@ -1,265 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
local CocaPlant = {}
function LoadModel(hash)
hash = GetHashKey(hash)
RequestModel(hash)
while not HasModelLoaded(hash) do
Wait(3000)
end
end
RegisterNetEvent('coke:respawnCane', function(loc)
local v = GlobalState.CocaPlant[loc]
local hash = GetHashKey(v.model)
--if not HasModelLoaded(hash) then LoadModel(hash) end
if not CocaPlant[loc] then
CocaPlant[loc] = CreateObject(hash, v.location, false, true, true)
SetEntityAsMissionEntity(CocaPlant[loc], true, true)
FreezeEntityPosition(CocaPlant[loc], true)
SetEntityHeading(CocaPlant[loc], v.heading)
exports['qb-target']:AddTargetEntity(CocaPlant[loc], {
options = { {
icon = "fas fa-hand",
label = "pick Cocaine",
action = function()
QBCore.Functions.Progressbar("pick_cane", "picking Cocaine Leaves", 2000, false, true, {
disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, },
{ animDict = 'amb@prop_human_bum_bin@idle_a', anim = 'idle_a', flags = 47, },
{}, {}, function()
TriggerServerEvent("coke:pickupCane", loc)
ClearPedTasks(PlayerPedId())
end, function() -- Cancel
ClearPedTasks(PlayerPedId())
end)
end
}
},
distance = 3.0
})
end
end)
RegisterNetEvent('coke:removeCane', function(loc)
if DoesEntityExist(CocaPlant[loc]) then DeleteEntity(CocaPlant[loc]) end
CocaPlant[loc] = nil
end)
RegisterNetEvent("coke:init", function()
for k, v in pairs (GlobalState.CocaPlant) do
local hash = GetHashKey(v.model)
if not HasModelLoaded(hash) then LoadModel(hash) end
if not v.taken then
CocaPlant[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
SetEntityAsMissionEntity(CocaPlant[k], true, true)
FreezeEntityPosition(CocaPlant[k], true)
SetEntityHeading(CocaPlant[k], v.heading)
exports['qb-target']:AddTargetEntity(CocaPlant[k], {
options = { {
icon = "fas fa-hand",
label = "pick cocaine",
action = function()
QBCore.Functions.Progressbar("pick_cane", "picking Cocaine Leaves", 2000, false, true, {
disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, },
{ animDict = 'amb@prop_human_bum_bin@idle_a', anim = 'idle_a', flags = 47, },
{}, {}, function()
TriggerServerEvent("coke:pickupCane", k)
ClearPedTasks(PlayerPedId())
end, function() -- Cancel
ClearPedTasks(PlayerPedId())
end)
end
}
},
distance = 3.0
})
end
end
end)
AddEventHandler('onResourceStart', function(resource)
if resource == GetCurrentResourceName() then
LoadModel('prop_plant_01a')
TriggerEvent('coke:init')
end
end)
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(3000)
LoadModel('prop_plant_01a')
TriggerEvent('coke:init')
end)
AddEventHandler('onResourceStop', function(resourceName)
if GetCurrentResourceName() == resourceName then
SetModelAsNoLongerNeeded(GetHashKey('prop_plant_01a'))
for k, v in pairs(CocaPlant) do
if DoesEntityExist(v) then
DeleteEntity(v) SetEntityAsNoLongerNeeded(v)
end
end
end
end)
RegisterNetEvent("md-drugs:client:makepowder")
AddEventHandler("md-drugs:client:makepowder", 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", "chopping plants to powder", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:makepowder")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:cutcokeone")
AddEventHandler("md-drugs:client:cutcokeone", 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", "cutting coke to increase profits yeeee!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:cutcokeone")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:cutcoketwo")
AddEventHandler("md-drugs:client:cutcoketwo", 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", "cutting coke to increase profits yeeee!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:cutcoketwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:cutcokethree")
AddEventHandler("md-drugs:client:cutcokethree", 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", "cutting coke to increase profits yeeee!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:cutcokethree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:bagcoke")
AddEventHandler("md-drugs:client:bagcoke", 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", "Bilbo Baggin this bitch!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:bagcoke")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:bagcoketwo")
AddEventHandler("md-drugs:client:bagcoketwo", 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", "Bilbo Baggin this bitch!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:bagcoketwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:bagcokethree")
AddEventHandler("md-drugs:client:bagcokethree", 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", "Bilbo Baggin this bitch!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:bagcokethree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
-111
View File
@@ -1,111 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent("md-drugs:client:makecrackone")
AddEventHandler("md-drugs:client:makecrackone", 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", "Cooking Crack", 1000, 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:makecrackone")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failcrackone")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:makecracktwo")
AddEventHandler("md-drugs:client:makecracktwo", 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", "Cooking Crack", 1000, 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:makecracktwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failcracktwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:makecrackthree")
AddEventHandler("md-drugs:client:makecrackthree", 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", "Cooking Crack", 1000, 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:makecrackthree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failcrackthree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:bagcrack")
AddEventHandler("md-drugs:client:bagcrack", 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", "bagging some good good", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:bagcrack")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
-281
View File
@@ -1,281 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
local CocaPlant = {}
local PoppyPlants = {}
function LoadModel(hash)
hash = GetHashKey(hash)
RequestModel(hash)
while not HasModelLoaded(hash) do
Wait(3000)
end
end
RegisterNetEvent('heroin:respawnCane', function(loc)
local v = GlobalState.PoppyPlants[loc]
local hash = GetHashKey(v.model)
--if not HasModelLoaded(hash) then LoadModel(hash) end
if not PoppyPlants[loc] then
PoppyPlants[loc] = CreateObject(hash, v.location, false, true, true)
SetEntityAsMissionEntity(PoppyPlants[loc], true, true)
FreezeEntityPosition(PoppyPlants[loc], true)
SetEntityHeading(PoppyPlants[loc], v.heading)
exports['qb-target']:AddTargetEntity(PoppyPlants[loc], {
options = { {
icon = "fas fa-hand",
label = "pick Poppies",
action = function()
QBCore.Functions.Progressbar("pick_cane", "picking heroin", 2000, false, true, {
disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, },
{ animDict = 'amb@prop_human_bum_bin@idle_a', anim = 'idle_a', flags = 47, },
{}, {}, function()
TriggerServerEvent("heroin:pickupCane", loc)
ClearPedTasks(PlayerPedId())
end, function() -- Cancel
ClearPedTasks(PlayerPedId())
end)
end
}
},
distance = 3.0
})
end
end)
RegisterNetEvent('heroin:removeCane', function(loc)
if DoesEntityExist(PoppyPlants[loc]) then DeleteEntity(PoppyPlants[loc]) end
PoppyPlants[loc] = nil
end)
RegisterNetEvent("heroin:init", function()
for k, v in pairs (GlobalState.PoppyPlants) do
local hash = GetHashKey(v.model)
if not HasModelLoaded(hash) then LoadModel(hash) end
if not v.taken then
PoppyPlants[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
SetEntityAsMissionEntity(PoppyPlants[k], true, true)
FreezeEntityPosition(PoppyPlants[k], true)
SetEntityHeading(PoppyPlants[k], v.heading)
exports['qb-target']:AddTargetEntity(PoppyPlants[k], {
options = { {
icon = "fas fa-hand",
label = "Pick Poppies",
action = function()
QBCore.Functions.Progressbar("pick_cane", "Picking Heroin", 2000, false, true, {
disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, },
{ animDict = 'amb@prop_human_bum_bin@idle_a', anim = 'idle_a', flags = 47, },
{}, {}, function()
TriggerServerEvent("heroin:pickupCane", k)
ClearPedTasks(PlayerPedId())
end, function() -- Cancel
ClearPedTasks(PlayerPedId())
end)
end
}
},
distance = 3.0
})
end
end
end)
AddEventHandler('onResourceStart', function(resource)
if resource == GetCurrentResourceName() then
LoadModel('prop_plant_01b')
TriggerEvent('heroin:init')
end
end)
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(3000)
LoadModel('prop_plant_01b')
TriggerEvent('heroin:init')
end)
AddEventHandler('onResourceStop', function(resourceName)
if GetCurrentResourceName() == resourceName then
SetModelAsNoLongerNeeded(GetHashKey('prop_plant_01b'))
for k, v in pairs(PoppyPlants) do
if DoesEntityExist(v) then
DeleteEntity(v) SetEntityAsNoLongerNeeded(v)
end
end
end
end)
RegisterNetEvent("md-drugs:client:dryplant")
AddEventHandler("md-drugs:client:dryplant", 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", "drying out these poppies!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:dryplant")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:cutheroin")
AddEventHandler("md-drugs:client:cutheroin", 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", "cutting the heroin!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:cutheroin")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:cutherointwo")
AddEventHandler("md-drugs:client:cutherointwo", 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", "cutting the heroin!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:cutherointwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:cutherointhree")
AddEventHandler("md-drugs:client:cutherointhree", 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", "cutting the heroin!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:cutherointhree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:buyheroinlabkit")
AddEventHandler("md-drugs:client:buyheroinlabkit", 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", "Shhhhh!", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:getheroinlabkit")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:heatliquidheroin")
AddEventHandler("md-drugs:client:heatliquidheroin", 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", "Heating Heroin!", 1000, 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:heatliquidheroin")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failheatingheroin")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:fillneedle")
AddEventHandler("md-drugs:client:fillneedle", 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", "Filling Needles!", 1000, 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:fillneedle")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failheroin")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 2, 8) -- NumberOfCircles,
end)
end)
-595
View File
@@ -1,595 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent("md-drugs:client:getlysergic")
AddEventHandler("md-drugs:client:getlysergic", 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", "Stealing Lysergic Acid!", 1000, 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:getlysergic")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:getdiethylamide")
AddEventHandler("md-drugs:client:getdiethylamide", 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", "Stealing Diethylamide!", 1000, 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:getdiethylamide")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:heatliquid")
AddEventHandler("md-drugs:client:heatliquid", 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", "Heating Liquids!", 1000, 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:heatliquid")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failheating")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:refinequalityacid")
AddEventHandler("md-drugs:client:refinequalityacid", 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", "Refining The Quality!", 1000, 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:refinequalityacid")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failrefinequality")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:maketabpaperone")
AddEventHandler("md-drugs:client:maketabpaperone", 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", "Dropping Tabs!", 1000, 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:maketabpaperone")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failtabsone")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:maketabpapertwo")
AddEventHandler("md-drugs:client:maketabpapertwo", 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", "Dropping Tabs!", 1000, 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:maketabpapertwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failtabstwo")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:maketabpaperthree")
AddEventHandler("md-drugs:client:maketabpaperthree", 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", "Dropping Tabs!", 1000, 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:maketabpaperthree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failtabsthree")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:maketabpaperfour")
AddEventHandler("md-drugs:client:maketabpaperfour", 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", "Dropping Tabs!", 1000, 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:maketabpaperfour")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failtabsfour")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:maketabpaperfive")
AddEventHandler("md-drugs:client:maketabpaperfive", 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", "Dropping Tabs!", 1000, 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:maketabpaperfive")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failtabsfive")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:maketabpapersix")
AddEventHandler("md-drugs:client:maketabpapersix", 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", "Dropping Tabs!", 1000, 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:maketabpapersix")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
TriggerServerEvent("md-drugs:server:failtabsix")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles,
end)
end)
RegisterNetEvent("md-drugs:client:cutsheet")
AddEventHandler("md-drugs:client:cutsheet", 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", "Cutting Sheets", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:buytabs")
AddEventHandler("md-drugs:client:buytabs", 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", "Buying Tab Paper", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:gettabpaper")
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:buylabkit")
AddEventHandler("md-drugs:client:buylabkit", 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", "Buying A Lab Kit", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
TriggerServerEvent("md-drugs:server:getlabkit")
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:getdirtykit")
AddEventHandler("md-drugs:client:getdirtykit", 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", "Ruining Your Kit", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
TriggerServerEvent("md-drugs:server:getdirtykit")
ClearPedTasks(PlayerPedId())
end)
end)
function MethBagEffect()
local startStamina = 8
TrevorEffect()
SetRunSprintMultiplierForPlayer(PlayerId(), 1.49)
while startStamina > 0 do
Wait(1000)
if math.random(5, 100) < 10 then
RestorePlayerStamina(PlayerId(), 1.0)
end
startStamina = startStamina - 1
if math.random(5, 100) < 51 then
TrevorEffect()
end
end
startStamina = 0
SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
end
function TrevorEffect()
StartScreenEffect("DrugsTrevorClownsFightIn", 3.0, 0)
Wait(3000)
StartScreenEffect("DrugsTrevorClownsFight", 3.0, 0)
Wait(3000)
StartScreenEffect("DrugsTrevorClownsFightOut", 3.0, 0)
StopScreenEffect("DrugsTrevorClownsFight")
StopScreenEffect("DrugsTrevorClownsFightIn")
StopScreenEffect("DrugsTrevorClownsFightOut")
end
function EcstasyEffect()
local startStamina = 30
SetFlash(0, 0, 500, 7000, 500)
while startStamina > 0 do
Wait(1000)
startStamina = startStamina - 1
RestorePlayerStamina(PlayerId(), 1.0)
if math.random(1, 100) < 51 then
SetFlash(0, 0, 500, 7000, 500)
ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.08)
end
end
if IsPedRunning(PlayerPedId()) then
SetPedToRagdoll(PlayerPedId(), math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
end
function CokeBaggyEffect()
local startStamina = 20
local ped = PlayerPedId()
AlienEffect()
SetRunSprintMultiplierForPlayer(PlayerId(), 1.1)
while startStamina > 0 do
Wait(1000)
if math.random(1, 100) < 20 then
RestorePlayerStamina(PlayerId(), 1.0)
end
startStamina = startStamina - 1
if math.random(1, 100) < 10 and IsPedRunning(ped) then
SetPedToRagdoll(ped, math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
if math.random(1, 300) < 10 then
AlienEffect()
Wait(math.random(3000, 6000))
end
end
if IsPedRunning(ped) then
SetPedToRagdoll(ped, math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
end
function AlienEffect()
StartScreenEffect("DrugsMichaelAliensFightIn", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFight", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFightOut", 3.0, 0)
StopScreenEffect("DrugsMichaelAliensFightIn")
StopScreenEffect("DrugsMichaelAliensFight")
StopScreenEffect("DrugsMichaelAliensFightOut")
end
RegisterNetEvent('md-drugs:client:takesmileytabs', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
AlienEffect()
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takewildcherrytabs', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
AlienEffect()
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takeyinyangtabs', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
AlienEffect()
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takepineappletabs', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
EcstasyEffect()
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takebarttabs', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
TrevorEffect()
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takegratefuldeadtabs', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
TrevorEffect()
Wait(15000)
EcstasyEffect()
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
---------------------------------------------------------------- LSD EFFECTS
-590
View File
@@ -1,590 +0,0 @@
CreateThread(function()
exports.ox_target:addBoxZone({
coords = Config.makecokepowder,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'makepowdercoke',
event = "md-drugs:client:makepowder",
icon = 'fas fa-sign-in-alt',
label = 'Chop It Up',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.cutcokeone,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'cutcokepowder',
event = "md-drugs:client:cutcokeone",
icon = 'fas fa-sign-in-alt',
label = 'Cut Up',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.cutcoke2,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'cutcokepowdertwo',
event = "md-drugs:client:cutcoketwo",
icon = 'fas fa-sign-in-alt',
label = 'Cut Up',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.cutcoke3,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'cutcokepowderthree',
event = "md-drugs:client:cutcokethree",
icon = 'fas fa-sign-in-alt',
label = 'Cut Up',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.bagcoke,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'bagcoke',
event = "md-drugs:client:bagcoke",
icon = 'fas fa-sign-in-alt',
label = 'bagging',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.bagcoke2,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'bagcoketwo',
event = "md-drugs:client:bagcoketwo",
icon = 'fas fa-sign-in-alt',
label = 'bagging',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.bagcoke3,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'bagcokethree',
event = "md-drugs:client:bagcokethree",
icon = 'fas fa-sign-in-alt',
label = 'bagging',
}
}
})
------------------------LSD
exports.ox_target:addBoxZone({
coords = Config.lysergicacid,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'getlysergic',
event = "md-drugs:client:getlysergic",
icon = 'fas fa-sign-in-alt',
label = 'stealing',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.getdiethylamide,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'getdiethylamide',
event = "md-drugs:client:getdiethylamide",
icon = 'fas fa-sign-in-alt',
label = 'stealing',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.acidrefine,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'refinequalityacid',
event = "md-drugs:client:refinequalityacid",
icon = 'fas fa-sign-in-alt',
label = 'stealing',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.maketabs1,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'maketabpaperone',
event = "md-drugs:client:maketabpaperone",
icon = 'fas fa-sign-in-alt',
label = 'Make Tabs',
Item = "lsd_one_vial",
}
}
})
exports.ox_target:addBoxZone({
coords = Config.maketabs2,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'maketabpapertwo',
event = "md-drugs:client:maketabpapertwo",
icon = 'fas fa-sign-in-alt',
label = 'Make Tabs',
Item = "lsd_vial_two",
}
}
})
exports.ox_target:addBoxZone({
coords = Config.maketabs3,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'maketabpaperthree',
event = "md-drugs:client:maketabpaperthree",
icon = 'fas fa-sign-in-alt',
label = 'Make Tabs',
Item = "lsd_vial_three",
}
}
})
exports.ox_target:addBoxZone({
coords = Config.maketabs4,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'maketabpaperfour',
event = "md-drugs:client:maketabpaperfour",
icon = 'fas fa-sign-in-alt',
label = 'Make Tabs',
Item = "lsd_vial_four",
}
}
})
exports.ox_target:addBoxZone({
coords = Config.maketabs5,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'maketabpaperfive',
event = "md-drugs:client:maketabpaperfive",
icon = 'fas fa-sign-in-alt',
label = 'Make Tabs',
Item = "lsd_vial_five",
}
}
})
exports.ox_target:addBoxZone({
coords = Config.maketabs6,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'maketabpapersix',
event = "md-drugs:client:maketabpapersix",
icon = 'fas fa-sign-in-alt',
label = 'Make Tabs',
Item = "lsd_vial_six",
}
}
})
exports.ox_target:addBoxZone({
coords = Config.gettabs,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'gettabpaper',
event = "md-drugs:client:buytabs",
icon = 'fas fa-sign-in-alt',
label = 'Buy Tabs',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.buylsdlabkit,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'buylabkit',
event = "md-drugs:client:buylabkit",
icon = 'fas fa-sign-in-alt',
label = 'Buy Kit',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.dryplant,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'dryplant',
event = "md-drugs:client:dryplant",
icon = 'fas fa-sign-in-alt',
label = 'Dry Out',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.cutheroinone,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'cutheroinone',
event = "md-drugs:client:cutheroin",
icon = 'fas fa-sign-in-alt',
label = 'Cut Heroin',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.fillneedle,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'fillneedle',
event = "md-drugs:client:fillneedle",
icon = 'fas fa-sign-in-alt',
label = 'Fill Needles',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.buyheroinlabkit,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'buyheroinlabkit',
event = "md-drugs:client:buyheroinlabkit",
icon = 'fas fa-sign-in-alt',
label = 'Fill Needles',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.makecrack,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'crackmakeone',
event = "md-drugs:client:makecrackone",
icon = 'fas fa-sign-in-alt',
label = 'Cook Crack',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.bagcrack,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'bagcrack',
event = "md-drugs:client:bagcrack",
icon = 'fas fa-sign-in-alt',
label = 'Bag Crack',
}
}
})
--------------
exports.ox_target:addBoxZone({
coords = Config.isosafrole,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'stealisosafrole',
event = "md-drugs:client:stealisosafrole",
icon = 'fas fa-sign-in-alt',
label = 'Steal Isosafrole',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.mdp2p,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'stealmdp2p',
event = "md-drugs:client:stealmdp2p",
icon = 'fas fa-sign-in-alt',
label = 'Steal mdp2p',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.rawxtcloc,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
name = 'makingrawxtc',
event = "md-drugs:client:makingrawxtc",
icon = 'fas fa-sign-in-alt',
label = 'Make Raw XTC',
}
}
})
exports.ox_target:addBoxZone({
coords = Config.makeunstampedwhite,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
num = 1,
name = 'makingrawxtc',
event = "md-drugs:client:makextcsingle",
icon = 'fas fa-sign-in-alt',
label = 'Make White Single Stack',
item = "singlepress",
},
{
num = 2,
name = "makeunstampedwhite2",
event = "md-drugs:client:makextcdual",
icon = 'fas fa-eye',
label = 'Make White dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
},
{
num = 3,
name = "makeunstampedwhite3",
event = "md-drugs:client:makextctriple",
icon = 'fas fa-eye',
label = 'Make White Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
},
{
num = 4,
name = "makeunstampedwhite4",
event = "md-drugs:client:makextcquad",
icon = 'fas fa-eye',
label = 'Make White Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
},
}
})
exports.ox_target:addBoxZone({
coords = Config.makeunstampedred,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
num = 1,
name = 'makeunstampedred1',
event = "md-drugs:client:makeredxtcsingle",
icon = 'fas fa-sign-in-alt',
label = 'Make Red Single Stack',
item = "singlepress",
},
{
num = 2,
name = "makeunstampedred2",
event = "md-drugs:client:makeredxtcdual",
icon = 'fas fa-eye',
label = 'Make Red dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
},
{
num = 3,
name = "makeunstampedred3",
event = "md-drugs:client:makeredxtctriple",
icon = 'fas fa-eye',
label = 'Make Red Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
},
{
num = 4,
name = "makeunstampedred4",
event = "md-drugs:client:makeredxtcquad",
icon = 'fas fa-eye',
label = 'Make Red Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
},
}
})
exports.ox_target:addBoxZone({
coords = Config.makeunstampedorange,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
num = 1,
name = 'makeunstampedorange1',
event = "md-drugs:client:makeorangextcsingle",
icon = 'fas fa-sign-in-alt',
label = 'Make Orange Single Stack',
item = "singlepress",
},
{
num = 2,
name = "makeunstampedorange2",
event = "md-drugs:client:makeorangextcdual",
icon = 'fas fa-eye',
label = 'Make Orange dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
},
{
num = 3,
name = "makeunstampedorange3",
event = "md-drugs:client:makeredorangetriple",
icon = 'fas fa-eye',
label = 'Make Orange Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
},
{
num = 4,
name = "makeunstampedorange4",
event = "md-drugs:client:makeredorangequad",
icon = 'fas fa-eye',
label = 'Make Orange Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
},
}
})
exports.ox_target:addBoxZone({
coords = Config.makeunstampedblue,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
num = 1,
name = 'makeunstampedblue1',
event = "md-drugs:client:makebluextcsingle",
icon = 'fas fa-sign-in-alt',
label = 'Make blue Single Stack',
item = "singlepress",
},
{
num = 2,
name = "makeunstampedblue2",
event = "md-drugs:client:makebluextcdual",
icon = 'fas fa-eye',
label = 'Make blue dual Stack',
targeticon = 'fas fa-eye',
item = "dualpress",
},
{
num = 3,
name = "makeunstampedblue3",
event = "md-drugs:client:makeredbluetriple",
icon = 'fas fa-eye',
label = 'Make blue Triple Stack',
targeticon = 'fas fa-eye',
item = "triplepress",
},
{
num = 4,
name = "makeunstampedblue4",
event = "md-drugs:client:makeredbluequad",
icon = 'fas fa-eye',
label = 'Make blue Quad Stack',
targeticon = 'fas fa-eye',
item = "quadpress",
},
}
})
exports.ox_target:addBoxZone({
coords = Config.stamp,
size = vec3(2, 2, 2),
rotation = 45,
options = {
{
num = 1,
name = 'stampwhite',
event = "md-drugs:client:stampwhite",
icon = 'fas fa-sign-in-alt',
label = 'Stamp White',
},
{
num = 2,
name = "StampRed",
event = "md-drugs:client:stampred",
icon = 'fas fa-eye',
label = 'Stamp Red',
targeticon = 'fas fa-eye',
},
{
num = 3,
name = "StampBlue",
event = "md-drugs:client:stampblue",
icon = 'fas fa-eye',
label = 'Stamp Blue',
targeticon = 'fas fa-eye',
},
{
num = 4,
name = "stamporange",
event = "md-drugs:client:stamporange",
icon = 'fas fa-eye',
label = 'Stamp Orange',
targeticon = 'fas fa-eye',
},
}
})
end)
-196
View File
@@ -1,196 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent("md-drugs:client:fillprescription")
AddEventHandler("md-drugs:client:fillprescription", 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", "Picking Up Your Prescription", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:fillprescription")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:openingvicodin")
AddEventHandler("md-drugs:client:openingvicodin", 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", "Opening Bottle", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:openingvicodin")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:openingadderal")
AddEventHandler("md-drugs:client:openingadderal", 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", "Opening Bottle", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:openingadderal")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:openingmorphine")
AddEventHandler("md-drugs:client:openingmorphine", 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", "Opening Bottle", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:openingmorphine")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:openingxanax")
AddEventHandler("md-drugs:client:openingxanax", 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", "Opening Bottle", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:openingxanax")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent('md-drugs:client:takevicodin', function()
QBCore.Functions.Progressbar("use_lsd", "Get Pain Relief!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
exports['ps-buffs']:AddHealthBuff(10000, 20)
-- exports["qb-smallresources"]:DoAcid(240000)
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takeadderal', function()
QBCore.Functions.Progressbar("use_lsd", "Get Hyper!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
exports['ps-buffs']:StaminaBuffEffect(15000, 1.4)
-- exports["qb-smallresources"]:DoAcid(240000)
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takexanax', function()
QBCore.Functions.Progressbar("use_lsd", "Taking a chill Pill!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
exports['ps-buffs']:AddStressBuff(10000, 25)
-- exports["qb-smallresources"]:DoAcid(240000)
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
RegisterNetEvent('md-drugs:client:takemorphine', function()
QBCore.Functions.Progressbar("use_lsd", "Get Major Pain Relief!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
exports['ps-buffs']:AddHealthBuff(10000, 40)
-- exports["qb-smallresources"]:DoAcid(240000)
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
-132
View File
@@ -1,132 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
local shrooms = {}
function LoadModel(hash)
hash = GetHashKey(hash)
RequestModel(hash)
while not HasModelLoaded(hash) do
Wait(3000)
end
end
RegisterNetEvent('shrooms:respawnCane', function(loc)
local v = GlobalState.shrooms[loc]
local hash = GetHashKey(v.model)
--if not HasModelLoaded(hash) then LoadModel(hash) end
if not shrooms[loc] then
shrooms[loc] = CreateObject(hash, v.location, false, true, true)
SetEntityAsMissionEntity(shrooms[loc], true, true)
FreezeEntityPosition(shrooms[loc], true)
SetEntityHeading(shrooms[loc], v.heading)
exports['qb-target']:AddTargetEntity(shrooms[loc], {
options = { {
icon = "fas fa-hand",
label = "pick shrooms",
action = function()
QBCore.Functions.Progressbar("pick_cane", "picking shrooms", 2000, false, true, {
disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, },
{ animDict = 'amb@prop_human_bum_bin@idle_a', anim = 'idle_a', flags = 47, },
{}, {}, function()
TriggerServerEvent("shrooms:pickupCane", loc)
ClearPedTasks(PlayerPedId())
end, function() -- Cancel
ClearPedTasks(PlayerPedId())
end)
end
}
},
distance = 3.0
})
end
end)
AddEventHandler('onResourceStart', function(resource)
if resource == GetCurrentResourceName() then
LoadModel('prop_stoneshroom1')
TriggerEvent('shrooms:init')
end
end)
RegisterNetEvent('shrooms:removeCane', function(loc)
if DoesEntityExist(shrooms[loc]) then DeleteEntity(shrooms[loc]) end
shrooms[loc] = nil
end)
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(3000)
LoadModel('prop_stoneshroom1')
TriggerEvent('shrooms:init')
end)
RegisterNetEvent("shrooms:init", function()
for k, v in pairs (GlobalState.shrooms) do
local hash = GetHashKey(v.model)
if not HasModelLoaded(hash) then LoadModel(hash) end
if not v.taken then
shrooms[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
SetEntityAsMissionEntity(shrooms[k], true, true)
FreezeEntityPosition(shrooms[k], true)
SetEntityHeading(shrooms[k], v.heading)
exports['qb-target']:AddTargetEntity(shrooms[k], {
options = { {
icon = "fas fa-hand",
label = "Pick shrooms",
action = function()
QBCore.Functions.Progressbar("pick_cane", "Picking Shrooms", 2000, false, true, {
disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, },
{ animDict = 'amb@prop_human_bum_bin@idle_a', anim = 'idle_a', flags = 47, },
{}, {}, function()
TriggerServerEvent("shrooms:pickupCane", k)
ClearPedTasks(PlayerPedId())
end, function() -- Cancel
ClearPedTasks(PlayerPedId())
end)
end
}
},
distance = 3.0
})
end
end
end)
function EcstasyEffect()
local startStamina = 30
SetFlash(0, 0, 500, 7000, 500)
while startStamina > 0 do
Wait(1000)
startStamina = startStamina - 1
RestorePlayerStamina(PlayerId(), 1.0)
if math.random(1, 100) < 51 then
SetFlash(0, 0, 500, 7000, 500)
ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.08)
end
end
if IsPedRunning(PlayerPedId()) then
SetPedToRagdoll(PlayerPedId(), math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
end
RegisterNetEvent('md-drugs:client:takeshrooms', function()
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {
animDict = "mp_suicide",
anim = "pill",
flags = 49,
}, {}, {}, function() -- Done
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
EcstasyEffect()
-- exports["qb-smallresources"]:DoAcid(240000)
end, function() -- Cancel
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
QBCore.Functions.Notify("Canceled", "error")
end)
end)
-458
View File
@@ -1,458 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
CreateThread(function()
exports['qb-target']:AddBoxZone("makepowdercoke",Config.makecokepowder,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makepowdercoke",
heading = 11.0,
debugPoly = false,
minZ = Config.makecokepowder-2,
maxZ = Config.makecokepowder+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:makepowder",
icon = "fas fa-sign-in-alt",
label = "chop it up",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("cutcokepowder",Config.cutcokeone,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "cutcokepowder",
heading = 11.0,
debugPoly = false,
minZ = Config.cutcokeone-2,
maxZ = Config.cutcokeone+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:cutcokeone",
icon = "fas fa-sign-in-alt",
label = "cut up",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("cutcokepowdertwo",Config.cutcoke2,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "cutcokepowdertwo",
heading = 11.0,
debugPoly = false,
minZ = Config.cutcoke2-2,
maxZ = Config.cutcoke2+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:cutcoketwo",
icon = "fas fa-sign-in-alt",
label = "cut up",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("cutcokepowderthree",Config.cutcoke3,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "cutcokepowderthree",
heading = 11.0,
debugPoly = false,
minZ = Config.cutcoke3-2,
maxZ = Config.cutcoke3+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:cutcokethree",
icon = "fas fa-sign-in-alt",
label = "cut up",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("bagcokepowder",Config.bagcoke,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "bagcokepowder",
heading = 11.0,
debugPoly = false,
minZ = Config.bagcoke-2,
maxZ = Config.bagcoke+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:bagcoke",
icon = "fas fa-sign-in-alt",
label = "bagging",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("bagcoketwo",Config.bagcoke2,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "bagcoketwo",
heading = 11.0,
debugPoly = false,
minZ = Config.bagcoke2-2,
maxZ = Config.bagcoke2+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:bagcoketwo",
icon = "fas fa-sign-in-alt",
label = "bagging",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("bagcokethree",Config.bagcoke3,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "bagcokethree",
heading = 11.0,
debugPoly = false,
minZ = Config.bagcoke3-2,
maxZ = Config.bagcoke3+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:bagcokethree",
icon = "fas fa-sign-in-alt",
label = "bagging",
},
},
distance = 2.5
})
----- LSD
exports['qb-target']:AddBoxZone("getlysergic",Config.lysergicacid,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "getlysergic",
heading = 156.0,
debugPoly = false,
minZ = Config.lysergicacid-2,
maxZ = Config.lysergicacid+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:getlysergic",
icon = "fas fa-sign-in-alt",
label = "stealing",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("getdiethylamide",Config.diethylamide,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "getdiethylamide",
heading = 156.0,
debugPoly = false,
minZ = Config.diethylamide-2,
maxZ = Config.diethylamide+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:getdiethylamide",
icon = "fas fa-sign-in-alt",
label = "stealing",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("refinequalityacid", Config.acidrefine,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "refinequalityacid",
heading = 156.0,
debugPoly = false,
minZ = Config.acidrefine-2,
maxZ = Config.acidrefine+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:refinequalityacid",
icon = "fas fa-sign-in-alt",
label = "Refine",
item = "lsd_one_vial"
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("maketabpaperone",Config.maketabs1,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "maketabpaperone",
heading = 156.0,
debugPoly = false,
minZ = Config.maketabs1-2,
maxZ = Config.maketabs1+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:maketabpaperone",
icon = "fas fa-sign-in-alt",
label = "Make Tabs",
item = "lsd_one_vial",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("maketabpapertwo",Config.maketabs2 ,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "maketabpapertwo",
heading = 156.0,
debugPoly = false,
minZ = Config.maketabs2-2,
maxZ = Config.maketabs2+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:maketabpapertwo",
icon = "fas fa-sign-in-alt",
label = "Make Tabs",
item = "lsd_vial_two",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("maketabpaperthree",Config.maketabs3,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "maketabpaperthree",
heading = 156.0,
debugPoly = false,
minZ = Config.maketabs3-2,
maxZ = Config.maketabs3+3,
}, {
options = {
{
type = "client",
event = "md-drugs:client:maketabpaperthree",
icon = "fas fa-sign-in-alt",
label = "Make Tabs",
item = "lsd_vial_three",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("maketabpaperfour",Config.maketabs4,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "maketabpaperfour",
heading = 156.0,
debugPoly = false,
minZ = Config.maketabs4-2,
maxZ = Config.maketabs4+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:maketabpaperfour",
icon = "fas fa-sign-in-alt",
label = "Make Tabs",
item = "lsd_vial_four",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("maketabpaperfive",Config.maketabs5,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "maketabpaperfive",
heading = 156.0,
debugPoly = false,
minZ = Config.maketabs5-2,
maxZ = Config.maketabs5+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:maketabpaperfive",
icon = "fas fa-sign-in-alt",
label = "Make Tabs",
item = "lsd_vial_five",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("maketabpapersix",Config.maketabs6,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "maketabpapersix",
heading = 156.0,
debugPoly = false,
minZ = Config.maketabs6-2,
maxZ = Config.maketabs6+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:maketabpapersix",
icon = "fas fa-sign-in-alt",
label = "Make Tabs",
item = "lsd_vial_six",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("gettabpaper",Config.gettabs,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "gettabpaper",
heading = 156.0,
debugPoly = false,
minZ = Config.gettabs-2,
maxZ = Config.gettabs+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:buytabs",
icon = "fas fa-sign-in-alt",
label = "Buy Tabs",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("buylabkit",Config.buylsdlabkit,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "buylabkit",
heading = 156.0,
debugPoly = false,
minZ = Config.buylsdlabkit-2,
maxZ = Config.buylsdlabkit+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:buylabkit",
icon = "fas fa-sign-in-alt",
label = "Buy A Kit",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("dryplant",Config.dryplant,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "dryplant",
heading = 156.0,
debugPoly = false,
minZ = Config.dryplant-2,
maxZ = Config.dryplant+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:dryplant",
icon = "fas fa-sign-in-alt",
label = "Dry out",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("cutheroin",Config.cutheroinone,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "cutheroin",
heading = 156.0,
debugPoly = false,
minZ = Config.cutheroinone-2,
maxZ = Config.cutheroinone+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:cutheroin",
icon = "fas fa-sign-in-alt",
label = "Cut Heroin",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("fillneedle",Config.fillneedle,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "fillneedle",
heading = 156.0,
debugPoly = false,
minZ = Config.fillneedle-2,
maxZ = Config.fillneedle+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:fillneedle",
icon = "fas fa-sign-in-alt",
label = "Fill Needles",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("buyheroinlabkit",Config.buyheroinlabkit,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "buyheroinlabkit",
heading = 156.0,
debugPoly = false,
minZ = Config.buyheroinlabkit-2,
maxZ = Config.buyheroinlabkit+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:buyheroinlabkit",
icon = "fas fa-sign-in-alt",
label = "Buy A Kit",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("crackmakeone",Config.makecrack,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "crackmakeone",
heading = 156.0,
debugPoly = false,
minZ = Config.makecrack-2,
maxZ = Config.makecrack+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:makecrackone",
icon = "fas fa-sign-in-alt",
label = "cook some crack",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("bagcrack",Config.bagcrack,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "bagcrack",
heading = 156.0,
debugPoly = false,
minZ = Config.bagcrack-2,
maxZ = Config.bagcrack+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:bagcrack",
icon = "fas fa-sign-in-alt",
label = "cook some crack",
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("pharmapresc",vector3(-491.57, -341.0, 42.32),1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "pharmapresc",
heading = 156.0,
debugPoly = false,
minZ = 40,
maxZ = 44,
}, {
options = {
{
type = "client",
event = "md-drugs:client:fillprescription",
icon = "fas fa-sign-in-alt",
label = "Fill Prescription",
},
},
distance = 2.5
})
end)
-583
View File
@@ -1,583 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
local deliveryBlip = nil
local PZone = nil
local listen = false
RegisterNetEvent("md-drugs:client:getloccoke")
AddEventHandler("md-drugs:client:getloccoke", function()
local unlucky = math.random(1,100)
local CurrentLocation = vector3(642.18, 641.48, 129.11)
local unluck = math.random(1,100)
if deliveryBlip ~= nil then
RemoveBlip(deliveryBlip)
end
if unlucky <= 90 then
if Config.cd then
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'police'},
coords = CurrentLocation,
title = 'anonymous tip',
message = 'this id from cd',
flash = 0,
unique_id = tostring(math.random(0000000,9999999)),
blip = {
sprite = 825,
scale = 1.2,
colour = 1,
flashes = false,
text = 'Anon Tip',
time = (5*60*1000),
sound = 1,
}
})
elseif Config.ps then
local currentPos = CurrentLocation
TriggerServerEvent("dispatch:server:notify", {
dispatchcodename = "susactivity", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
dispatchCode = "10-66",
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = "Suspicious Activity",
job = {"LEO", "police"} -- has to match the recipientList in sv_dispatchcodes.lua
})
end
end
deliveryBlip = AddBlipForCoord(CurrentLocation)
SetBlipSprite(deliveryBlip, 1)
SetBlipDisplay(deliveryBlip, 2)
SetBlipScale(deliveryBlip, 1.0)
SetBlipAsShortRange(deliveryBlip, false)
SetBlipColour(deliveryBlip, 27)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("drug Meet")
EndTextCommandSetBlipName(deliveryBlip)
SetBlipRoute(deliveryBlip, true)
druglocation = CircleZone:Create(CurrentLocation, 5,{ name = "cokesell", debugPoly = false })
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
if Config.Gks then
TriggerServerEvent('gksphone:NewMail', {
sender = 'Anon',
image = '/html/static/img/icons/mail.png',
subject = "Meet Me At The Marked location",
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"
RequestModel(current)
while not HasModelLoaded(current) do
Wait(0)
end
drugdealer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, 90.0, false, false)
FreezeEntityPosition(drugdealer, true)
SetEntityInvincible(drugdealer, true)
exports['qb-target']:AddTargetEntity(drugdealer, {
options = {
{
type = "client",
label = "Talk To Buyer",
icon = "fas fa-eye",
event = "md-drugs:client:wholesaledrugscoke"
},
},
distance = 2.0
})
end)
RegisterNetEvent("md-drugs:client:wholesaledrugscoke")
AddEventHandler("md-drugs:client:wholesaledrugscoke", function()
local luck = math.random(1,1000)
if luck <= 900 then
TriggerEvent("md-drugs:client:successsalecoke")
else
TriggerEvent("md-drugs:client:setupcoke")
Wait(3000)
for i = 1, #Config.Cokepeds do
CokePed = CreatePed(4, "g_m_y_famdnf_01", Config.Cokepeds[i].x, Config.Cokepeds[i].y, Config.Cokepeds[i].z, 90.0, true, true)
SetPedArmour(CokePed, 200)
SetPedCanSwitchWeapon(CokePed, true)
GiveWeaponToPed(CokePed, "weapon_pistol", 1, false, true)
TaskCombatPed(CokePed, PlayerPedId(), 0, 16)
SetPedCombatAttributes(CokePed, 46, true)
end
end
end)
RegisterNetEvent("md-drugs:client:successsalecoke")
AddEventHandler("md-drugs:client:successsalecoke", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "Wholesaling Drugs", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:wholesalecoke")
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:setupcoke")
AddEventHandler("md-drugs:client:setupcoke", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "YOU FUCKED NOW", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
----------crack
RegisterNetEvent("md-drugs:client:getloccrack")
AddEventHandler("md-drugs:client:getloccrack", function()
local unlucky = math.random(1,100)
local CurrentLocation = vector3(1872.35, 283.52, 164.27)
local unluck = math.random(1,100)
if deliveryBlip ~= nil then
RemoveBlip(deliveryBlip)
end
if unlucky <= 90 then
if Config.cd then
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'police'},
coords = CurrentLocation,
title = 'anonymous tip',
message = 'this id from cd',
flash = 0,
unique_id = tostring(math.random(0000000,9999999)),
blip = {
sprite = 825,
scale = 1.2,
colour = 1,
flashes = false,
text = 'Anon Tip',
time = (5*60*1000),
sound = 1,
}
})
elseif Config.ps then
local currentPos = CurrentLocation
TriggerServerEvent("dispatch:server:notify", {
dispatchcodename = "susactivity", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
dispatchCode = "10-66",
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = "Suspicious Activity",
job = {"LEO", "police"} -- has to match the recipientList in sv_dispatchcodes.lua
})
end
end
deliveryBlip = AddBlipForCoord(CurrentLocation)
SetBlipSprite(deliveryBlip, 1)
SetBlipDisplay(deliveryBlip, 2)
SetBlipScale(deliveryBlip, 1.0)
SetBlipAsShortRange(deliveryBlip, false)
SetBlipColour(deliveryBlip, 27)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("drug Meet")
EndTextCommandSetBlipName(deliveryBlip)
SetBlipRoute(deliveryBlip, true)
druglocation = CircleZone:Create(CurrentLocation, 5,{ name = "cracksell", debugPoly = false })
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
if Config.Gks then
TriggerServerEvent('gksphone:NewMail', {
sender = 'Anon',
image = '/html/static/img/icons/mail.png',
subject = "Meet Me At The Marked location",
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_famca_01"
RequestModel(current)
while not HasModelLoaded(current) do
Wait(0)
end
drugdealer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, 90.0, false, false)
FreezeEntityPosition(drugdealer, true)
SetEntityInvincible(drugdealer, true)
exports['qb-target']:AddTargetEntity(drugdealer, {
options = {
{
type = "client",
label = "Talk To Buyer",
icon = "fas fa-eye",
event = "md-drugs:client:wholesaledrugscrack"
},
},
distance = 2.0
})
end)
RegisterNetEvent("md-drugs:client:wholesaledrugscrack")
AddEventHandler("md-drugs:client:wholesaledrugscrack", function()
local luck = math.random(1,1000)
if luck <= 900 then
TriggerEvent("md-drugs:client:successsalecrack")
else
TriggerEvent("md-drugs:client:setupcrack")
for i = 1, #Config.CrackPeds do
CrackPed = CreatePed(4, "g_m_y_famdnf_01", Config.CrackPeds[i].x, Config.CrackPeds[i].y, Config.CrackPeds[i].z, 90.0, true, true)
SetPedArmour(CrackPed, 200)
SetPedCanSwitchWeapon(CrackPed, true)
GiveWeaponToPed(CrackPed, "weapon_pistol", 1, false, true)
TaskCombatPed(CrackPed, PlayerPedId(), 0, 16)
SetPedCombatAttributes(CrackPed, 46, true)
end
end
end)
RegisterNetEvent("md-drugs:client:successsalecrack")
AddEventHandler("md-drugs:client:successsalecrack", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "Wholesaling Drugs", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:wholesalecrack")
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:setupcrack")
AddEventHandler("md-drugs:client:setupcrack", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "YOU FUCKED NOW", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
----------------------------- heroin
RegisterNetEvent("md-drugs:client:getlocheroin")
AddEventHandler("md-drugs:client:getlocheroin", function()
local unlucky = math.random(1,100)
local CurrentLocation = vector3(2729.87, 1372.7, 24.52)
local unluck = math.random(1,100)
if deliveryBlip ~= nil then
RemoveBlip(deliveryBlip)
end
if unlucky <= 90 then
if Config.cd then
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'police'},
coords = CurrentLocation,
title = 'anonymous tip',
message = 'this id from cd',
flash = 0,
unique_id = tostring(math.random(0000000,9999999)),
blip = {
sprite = 825,
scale = 1.2,
colour = 1,
flashes = false,
text = 'Anon Tip',
time = (5*60*1000),
sound = 1,
}
})
elseif Config.ps then
local currentPos = CurrentLocation
TriggerServerEvent("dispatch:server:notify", {
dispatchcodename = "susactivity", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
dispatchCode = "10-66",
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = "Suspicious Activity",
job = {"LEO", "police"} -- has to match the recipientList in sv_dispatchcodes.lua
})
end
end
deliveryBlip = AddBlipForCoord(CurrentLocation)
SetBlipSprite(deliveryBlip, 1)
SetBlipDisplay(deliveryBlip, 2)
SetBlipScale(deliveryBlip, 1.0)
SetBlipAsShortRange(deliveryBlip, false)
SetBlipColour(deliveryBlip, 27)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("drug Meet")
EndTextCommandSetBlipName(deliveryBlip)
SetBlipRoute(deliveryBlip, true)
druglocation = CircleZone:Create(CurrentLocation, 5,{ name = "heroinsell", debugPoly = false })
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
TriggerServerEvent('gksphone:NewMail', {
sender = 'Anon',
image = '/html/static/img/icons/mail.png',
subject = "Meet Me At The Marked location",
message = 'Bring me 100 syringes of heroin. If You Bring Police. You are dead.'
})
local current = "g_m_y_famdnf_01"
RequestModel(current)
while not HasModelLoaded(current) do
Wait(0)
end
drugdealer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, 90.0, false, false)
FreezeEntityPosition(drugdealer, true)
SetEntityInvincible(drugdealer, true)
exports['qb-target']:AddTargetEntity(drugdealer, {
options = {
{
type = "client",
label = "Talk To Buyer",
icon = "fas fa-eye",
event = "md-drugs:client:wholesaledrugsheroin"
},
},
distance = 2.0
})
end)
RegisterNetEvent("md-drugs:client:wholesaledrugsheroin")
AddEventHandler("md-drugs:client:wholesaledrugsheroin", function()
local luck = math.random(1,1000)
if luck <= 900 then
TriggerEvent("md-drugs:client:successsaleheroin")
else
TriggerEvent("md-drugs:client:setupheroin")
Wait(3000)
for i = 1, #Config.heroinPeds do
heroinPed = CreatePed(4, "g_m_y_famdnf_01", Config.heroinPeds[i].x, Config.heroinPeds[i].y, Config.heroinPeds[i].z, 90.0, true, true)
SetPedArmour(heroinPed, 200)
SetPedCanSwitchWeapon(heroinPed, true)
GiveWeaponToPed(heroinPed, "weapon_pistol", 1, false, true)
TaskCombatPed(heroinPed, PlayerPedId(), 0, 16)
SetPedCombatAttributes(heroinPed, 46, true)
end
end
end)
RegisterNetEvent("md-drugs:client:successsaleheroin")
AddEventHandler("md-drugs:client:successsaleheroin", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "Wholesaling Drugs", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:wholesaleheroin")
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:setupheroin")
AddEventHandler("md-drugs:client:setupheroin", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "YOU FUCKED NOW", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
--------------------------- lsd
RegisterNetEvent("md-drugs:client:getloclsd")
AddEventHandler("md-drugs:client:getloclsd", function()
local unlucky = math.random(1,100)
local CurrentLocation = vector3(-1533.66, 837.38, 181.59)
local unlucky = math.random(1,100)
if deliveryBlip ~= nil then
RemoveBlip(deliveryBlip)
end
if unlucky <= 90 then
if Config.cd then
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'police'},
coords = CurrentLocation,
title = 'anonymous tip',
message = 'this id from cd',
flash = 0,
unique_id = tostring(math.random(0000000,9999999)),
blip = {
sprite = 825,
scale = 1.2,
colour = 1,
flashes = false,
text = 'Anon Tip',
time = (5*60*1000),
sound = 1,
}
})
elseif Config.ps then
local currentPos = CurrentLocation
TriggerServerEvent("dispatch:server:notify", {
dispatchcodename = "susactivity", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
dispatchCode = "10-66",
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = "Suspicious Activity",
job = {"LEO", "police"} -- has to match the recipientList in sv_dispatchcodes.lua
})
end
end
deliveryBlip = AddBlipForCoord(CurrentLocation)
SetBlipSprite(deliveryBlip, 1)
SetBlipDisplay(deliveryBlip, 2)
SetBlipScale(deliveryBlip, 1.0)
SetBlipAsShortRange(deliveryBlip, false)
SetBlipColour(deliveryBlip, 27)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("drug Meet")
EndTextCommandSetBlipName(deliveryBlip)
SetBlipRoute(deliveryBlip, true)
druglocation = CircleZone:Create(CurrentLocation, 5,{ name = "lsdsell", debugPoly = false })
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
TriggerServerEvent('gksphone:NewMail', {
sender = 'Anon',
image = '/html/static/img/icons/mail.png',
subject = "Meet Me At The Marked location",
message = 'Bring me 500 tabs of lsd. If You Bring Police. You are dead.'
})
local current = "g_m_y_famdnf_01"
RequestModel(current)
while not HasModelLoaded(current) do
Wait(0)
end
drugdealer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, 90.0, false, false)
FreezeEntityPosition(drugdealer, true)
SetEntityInvincible(drugdealer, true)
exports['qb-target']:AddTargetEntity(drugdealer, {
options = {
{
type = "client",
label = "Talk To Buyer",
icon = "fas fa-eye",
event = "md-drugs:client:wholesaledrugslsd"
},
},
distance = 2.0
})
end)
RegisterNetEvent("md-drugs:client:wholesaledrugslsd")
AddEventHandler("md-drugs:client:wholesaledrugslsd", function()
local luck = math.random(1,1000)
if luck <= 900 then
TriggerEvent("md-drugs:client:successsalelsd")
else
TriggerEvent("md-drugs:client:setuplsd")
for i = 1, #Config.lsdPeds do
Wait(3000)
lsdPed = CreatePed(4, "g_m_y_famdnf_01", Config.lsdPeds[i].x, Config.lsdPeds[i].y, Config.lsdPeds[i].z, 90.0, true, true)
SetPedArmour(lsdPed, 200)
SetPedCanSwitchWeapon(lsdPed, true)
GiveWeaponToPed(lsdPed, "weapon_pistol", 1, false, true)
TaskCombatPed(lsdPed, PlayerPedId(), 0, 16)
SetPedCombatAttributes(lsdPed, 46, true)
end
end
end)
RegisterNetEvent("md-drugs:client:successsalelsd")
AddEventHandler("md-drugs:client:successsalelsd", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "Wholesaling Drugs", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:wholesalelsd")
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
RegisterNetEvent("md-drugs:client:setuplsd")
AddEventHandler("md-drugs:client:setuplsd", function()
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
QBCore.Functions.Progressbar("drink_something", "YOU FUCKED NOW", 4000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
Citizen.Wait(4000)
DeleteEntity(drugdealer)
ClearPedTasks(PlayerPedId())
end)
end)
-957
View File
@@ -1,957 +0,0 @@
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent("md-drugs:client:stealisosafrole")
AddEventHandler("md-drugs:client:stealisosafrole", 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", "Stealing Isosafrole", 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:stealisosafrole")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:stealmdp2p")
AddEventHandler("md-drugs:client:stealmdp2p", 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", "Stealing MDP2P", 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:stealmdp2p")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makingrawxtc")
AddEventHandler("md-drugs:client:makingrawxtc", 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 Raw Ecstacy", 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:makingrawxtc")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
---------------------------- unstamped just xtc
RegisterNetEvent("md-drugs:client:makextcsingle")
AddEventHandler("md-drugs:client:makextcsingle", 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 Unstamped Single Stack Ecstacy", 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:makextcsingle")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 4, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makextcdual")
AddEventHandler("md-drugs:client:makextcdual", 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 Unstamped Dual Stack Ecstacy", 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:makextcdual")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makextctriple")
AddEventHandler("md-drugs:client:makextctriple", 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 Unstamped Triple Stack Ecstacy", 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:makextctriple")
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:makextcquad")
AddEventHandler("md-drugs:client:makextcquad", 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 Unstamped Quad Stack Ecstacy", 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:makextcquad")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
-------------------------------------------------
RegisterNetEvent("md-drugs:client:makeredxtcsingle")
AddEventHandler("md-drugs:client:makeredxtcsingle", 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 Unstamped Red Single Stack Ecstacy", 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:makeredxtcsingle")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 4, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makeredxtcdual")
AddEventHandler("md-drugs:client:makeredxtcdual", 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 Unstamped Red Dual Stack Ecstacy", 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:makeredxtcdual")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makeredxtctriple")
AddEventHandler("md-drugs:client:makeredxtctriple", 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 Unstamped Red Triple Stack Ecstacy", 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:makeredxtctriple")
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:makeredxtcquad")
AddEventHandler("md-drugs:client:makeredxtcquad", 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 Unstamped Red Quad Stack Ecstacy", 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:makeredxtcquad")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
--------------------------------------------------------------- making orange unstamped
RegisterNetEvent("md-drugs:client:makeorangextcsingle")
AddEventHandler("md-drugs:client:makeorangextcsingle", 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 Unstamped Orange Single Stack Ecstacy", 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:makeorangextcsingle")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 4, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makeorangextcdual")
AddEventHandler("md-drugs:client:makeorangextcdual", 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 Unstamped Orange Dual Stack Ecstacy", 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:makeorangextcdual")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makeorangextctriple")
AddEventHandler("md-drugs:client:makeorangextctriple", 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 Unstamped Orange Triple Stack Ecstacy", 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:makeorangextctriple")
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:makeorangextcquad")
AddEventHandler("md-drugs:client:makeorangextcquad", 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 Unstamped Orange Quad Stack Ecstacy", 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:makeorangextcquad")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
--------------------------------------- blue unstamped
RegisterNetEvent("md-drugs:client:makebluextcsingle")
AddEventHandler("md-drugs:client:makebluextcsingle", 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 Unstamped Orange Single Stack Ecstacy", 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:makebluextcsingle")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 4, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makebluextcdual")
AddEventHandler("md-drugs:client:makebluextcdual", 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 Unstamped Blue Dual Stack Ecstacy", 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:makebluextcdual")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 3, 8) -- NumberOfCircles, MS
end)
end)
RegisterNetEvent("md-drugs:client:makebluextctriple")
AddEventHandler("md-drugs:client:makebluextctriple", 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 Unstamped Blue Triple Stack Ecstacy", 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:makebluextctriple")
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:makebluextcquad")
AddEventHandler("md-drugs:client:makebluextcquad", 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 Unstamped Blue Quad Stack Ecstacy", 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:makebluextcquad")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
else
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
Citizen.Wait(4000)
ClearPedTasks(PlayerPedId())
end
end, 1, 8) -- NumberOfCircles, MS
end)
end)
------------------------------------------------------------------ Stamping
RegisterNetEvent("md-drugs:client:stampwhite")
AddEventHandler("md-drugs:client:stampwhite", 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:stampwhite")
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: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)
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()
exports['qb-target']:AddBoxZone("stealisosafrole2",Config.isosafrole,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stealisosafrole2",
heading = 156.0,
debugPoly = false,
minZ = Config.isosafrole-2,
maxZ = Config.isosafrole+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:stealisosafrole",
icon = 'fas fa-sign-in-alt',
label = 'Steal Isosafrole',
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("stealmdp2p",Config.mdp2p,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "stealmdp2p",
heading = 156.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',
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("makerawxtc",Config.rawxtcloc,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makerawxtc",
heading = 156.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',
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("buypress",Config.buypress,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "buypress",
heading = 156.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',
},
},
distance = 2.5
})
exports['qb-target']:AddBoxZone("makeunstampedwhite1",Config.makeunstampedwhite,1.5, 1.75, { -- 963.37, -2122.95, 31.47
name = "makeunstampedwhite1",
heading = 156.0,
debugPoly = false,
minZ = Config.makeunstampedwhite-2,
maxZ = Config.makeunstampedwhite+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:makextcsingle",
icon = 'fas fa-eye',
label = 'Make White Single Stack',
item = "singlepress",
},
{
type = "client",
event = "md-drugs:client:makextcdual",
icon = 'fas fa-eye',
label = 'Make White dual Stack',
item = "dualpress",
},
{
type = "client",
event = "md-drugs:client:makextctriple",
icon = 'fas fa-eye',
label = 'Make White Triple Stack',
item = "triplepress",
},
{
type = "client",
event = "md-drugs:client:makextcquad",
icon = 'fas fa-eye',
label = 'Make White Quad Stack',
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 = 156.0,
debugPoly = false,
minZ = Config.makeunstampedred-2,
maxZ = Config.makeunstampedred+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:makeredxtcsingle",
icon = 'fas fa-eye',
label = 'Make Red Single Stack',
item = "singlepress",
},
{
type = "client",
event = "md-drugs:client:makeredxtcdual",
icon = 'fas fa-eye',
label = 'Make Red dual Stack',
item = "dualpress",
},
{
type = "client",
event = "md-drugs:client:makeredxtctriple",
icon = 'fas fa-eye',
label = 'Make Red Triple Stack',
item = "triplepress",
},
{
type = "client",
event = "md-drugs:client:makeredxtcquad",
icon = 'fas fa-eye',
label = 'Make Red Quad Stack',
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 = 156.0,
debugPoly = false,
minZ = Config.makeunstampedorange-2,
maxZ = Config.makeunstampedorange+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:makeorangextcsingle",
icon = 'fas fa-eye',
label = 'Make orange Single Stack',
item = "singlepress",
},
{
type = "client",
event = "md-drugs:client:makeorangextcdual",
icon = 'fas fa-eye',
label = 'Make orange dual Stack',
item = "dualpress",
},
{
type = "client",
event = "md-drugs:client:makeorangextctriple",
icon = 'fas fa-eye',
label = 'Make orange Triple Stack',
item = "triplepress",
},
{
type = "client",
event = "md-drugs:client:makeorangextcquad",
icon = 'fas fa-eye',
label = 'Make orange Quad Stack',
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 = 156.0,
debugPoly = false,
minZ = Config.makeunstampedblue-2,
maxZ = Config.makeunstampedblue+2,
}, {
options = {
{
type = "client",
event = "md-drugs:client:makebluextcsingle",
icon = 'fas fa-eye',
label = 'Make blue Single Stack',
item = "singlepress",
},
{
type = "client",
event = "md-drugs:client:makebluextcdual",
icon = 'fas fa-eye',
label = 'Make blue dual Stack',
item = "dualpress",
},
{
type = "client",
event = "md-drugs:client:makebluextctriple",
icon = 'fas fa-eye',
label = 'Make blue Triple Stack',
item = "triplepress",
},
{
type = "client",
event = "md-drugs:client:makebluextcquad",
icon = 'fas fa-eye',
label = 'Make blue Quad Stack',
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 = 156.0,
debugPoly = false,
minZ = Config.stamp-2,
maxZ = Config.stamp+2,
}, {
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',
},
},
distance = 2.5
})
end)