Add files via upload
No files matched your search
@@ -0,0 +1,146 @@
|
||||
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()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:cutcokeone")
|
||||
AddEventHandler("md-drugs:client:cutcokeone", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:bagcoke")
|
||||
AddEventHandler("md-drugs:client:bagcoke", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
@@ -0,0 +1,24 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterNetEvent('md-drugs:client:consumedrugs', function(itemName)
|
||||
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()
|
||||
ClearPedTasks(PlayerPedId())
|
||||
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
|
||||
if itemName == "white_playboys" or itemName == "white_playboys2" or itemName == "white_playboys3" or itemName == "white_playboys4" or itemName == "blue_playboys" or itemName == "blue_playboys2" or itemName == "blue_playboys3" or itemName == "blue_playboys4" or itemName == "red_playboys" or itemName == "red_playboys2" or itemName == "red_playboys3" or itemName == "red_playboys4" or itemName == "orange_playboys" or itemName == "orange_playboy2s" or itemName == "orange_playboys3" or itemName == "orange_playboys4" or itemName == "white_aliens" or itemName == "white_aliens2" or itemName == "white_aliens3" or itemName == "white_aliens4" or itemName == "blue_aliens" or itemName == "blue_aliens2" or itemName == "blue_aliens3" or itemName == "blue_aliens4" or itemName == "red_aliens" or itemName == "red_aliens3" or itemName == "red_aliens2" or itemName == "red_aliens4" or itemName == "orange_aliens" or itemName == "orange_aliens2" or itemName == "orange_aliens3" or itemName == "orange_aliens4" or itemName == "white_pl" or itemName == "white_pl2" or itemName == "white_pl3" or itemName == "white_pl4" or itemName == "blue_pl" or itemName == "blue_pl2" or itemName == "blue_pl3" or itemName == "blue_pl4" or itemName == "red_pl" or itemName == "red_pl2" or itemName == "red_pl3" or itemName == "red_pl4" or itemName == "orange_pl" or itemName == "orange_pl2" or itemName == "orange_pl3" or itemName == "orange_pl4" or itemName == "white_trolls" or itemName == "white_trolls2" or itemName == "white_trolls3" or itemName == "white_trolls4" or itemName == "blue_trolls" or itemName == "blue_trolls2" or itemName == "blue_trolls3" or itemName == "blue_trolls4" or itemName == "red_trolls" or itemName == "red_trolls2" or itemName == "red_trolls3" or itemName == "red_trolls4" or itemName == "orange_trolls" or itemName == "orange_trolls2" or itemName == "orange_trolls3" or itemName == "orange_trolls4" or itemName == "white_cats2" or itemName == "white_cats3" or itemName == "white_cats4" or itemName == "white_cats" or itemName == "blue_cats" or itemName == "blue_cats3" or itemName == "blue_cats2" or itemName == "blue_cats4" or itemName == "red_cats" or itemName == "red_cats2" or itemName == "red_cats3" or itemName == "red_cats4" or itemName == "orange_cats" or itemName == "orange_cats2" or itemName == "orange_cats3" or itemName == "orange_cats4" then
|
||||
AlienEffect()
|
||||
elseif itemName == "cokebaggystagetwo" or itemName == "cokebaggystagethree" or itemName == "baggedcracked" or itemName == "baggedcrackedstagetwo" or itemName == "baggedcrackedstagethree" then
|
||||
CokeBaggyEffect()
|
||||
else
|
||||
TrevorEffect()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
@@ -0,0 +1,312 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local cornerselling = false
|
||||
local hasTarget = false
|
||||
local lastPed = {}
|
||||
local stealingPed = nil
|
||||
local stealData = {}
|
||||
local availableDrugs = {}
|
||||
local currentOfferDrug = nil
|
||||
local CurrentCops = 0
|
||||
local textDrawn = false
|
||||
local zoneMade = false
|
||||
|
||||
-- Functions
|
||||
local function LoadAnimDict(dict)
|
||||
RequestAnimDict(dict)
|
||||
while not HasAnimDictLoaded(dict) do
|
||||
Wait(0)
|
||||
end
|
||||
end
|
||||
|
||||
local function TooFarAway()
|
||||
QBCore.Functions.Notify("too far from your corner homie", 'error')
|
||||
LocalPlayer.state:set("inv_busy", false, true)
|
||||
cornerselling = false
|
||||
hasTarget = false
|
||||
availableDrugs = {}
|
||||
end
|
||||
|
||||
local function PoliceCall()
|
||||
-- if Config.PoliceCallChance <= math.random(1, 100) then
|
||||
-- TriggerServerEvent('police:server:policeAlert', 'Drug sale in progress')
|
||||
-- end
|
||||
end
|
||||
|
||||
local function RobberyPed()
|
||||
if Config.UseTarget then
|
||||
exports['qb-target']:AddEntityZone('stealingPed', stealingPed, {
|
||||
name = 'stealingPed',
|
||||
debugPoly = false,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
icon = 'fas fa-magnifying-glass',
|
||||
label = "take back",
|
||||
action = function()
|
||||
local player = PlayerPedId()
|
||||
exports["rpemotes"]:EmoteCommandStart("pickup", 0)
|
||||
Wait(2000)
|
||||
ClearPedTasks(player)
|
||||
TriggerServerEvent('md-drugs:server:giveStealItems', stealData.item, stealData.amount)
|
||||
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items[stealData.item], "add")
|
||||
stealingPed = nil
|
||||
stealData = {}
|
||||
exports['qb-target']:RemoveZone('stealingPed')
|
||||
end,
|
||||
canInteract = function(entity)
|
||||
if IsEntityDead(entity) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
}
|
||||
},
|
||||
distance = 1.5,
|
||||
})
|
||||
CreateThread(function()
|
||||
while stealingPed do
|
||||
local playerPed = PlayerPedId()
|
||||
local pos = GetEntityCoords(playerPed)
|
||||
local pedpos = GetEntityCoords(stealingPed)
|
||||
local dist = #(pos - pedpos)
|
||||
if dist > 100 then
|
||||
stealingPed = nil
|
||||
stealData = {}
|
||||
exports['qb-target']:RemoveZone('stealingPed')
|
||||
break
|
||||
end
|
||||
Wait(0)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
local function SellToPed(ped)
|
||||
hasTarget = true
|
||||
|
||||
for i = 1, #lastPed, 1 do
|
||||
if lastPed[i] == ped then
|
||||
hasTarget = false
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
local successChance = math.random(1, 100)
|
||||
local scamChance = math.random(1, 100)
|
||||
local getRobbed = math.random(1, 100)
|
||||
if successChance <= Config.SuccessChance then hasTarget = false return end
|
||||
|
||||
local drugType = math.random(1, #availableDrugs)
|
||||
local bagAmount = math.random(1, availableDrugs[drugType].amount)
|
||||
if bagAmount > 15 then bagAmount = math.random(9, 15) end
|
||||
|
||||
currentOfferDrug = availableDrugs[drugType]
|
||||
|
||||
local ddata = Config.DrugsPrice[currentOfferDrug.item]
|
||||
local randomPrice = math.random(ddata.min, ddata.max) * bagAmount
|
||||
if scamChance <= Config.ScamChance then randomPrice = math.random(3, 10) * bagAmount end
|
||||
|
||||
SetEntityAsNoLongerNeeded(ped)
|
||||
ClearPedTasks(ped)
|
||||
|
||||
local coords = GetEntityCoords(PlayerPedId(), true)
|
||||
local pedCoords = GetEntityCoords(ped)
|
||||
local pedDist = #(coords - pedCoords)
|
||||
if getRobbed <= Config.RobberyChance then
|
||||
TaskGoStraightToCoord(ped, coords, 15.0, -1, 0.0, 0.0)
|
||||
else
|
||||
TaskGoStraightToCoord(ped, coords, 1.2, -1, 0.0, 0.0)
|
||||
end
|
||||
|
||||
while pedDist > 1.5 do
|
||||
coords = GetEntityCoords(PlayerPedId(), true)
|
||||
pedCoords = GetEntityCoords(ped)
|
||||
if getRobbed <= Config.RobberyChance then
|
||||
TaskGoStraightToCoord(ped, coords, 15.0, -1, 0.0, 0.0)
|
||||
else
|
||||
TaskGoStraightToCoord(ped, coords, 1.2, -1, 0.0, 0.0)
|
||||
end
|
||||
TaskGoStraightToCoord(ped, coords, 1.2, -1, 0.0, 0.0)
|
||||
pedDist = #(coords - pedCoords)
|
||||
Wait(100)
|
||||
end
|
||||
|
||||
TaskLookAtEntity(ped, PlayerPedId(), 5500.0, 2048, 3)
|
||||
TaskTurnPedToFaceEntity(ped, PlayerPedId(), 5500)
|
||||
TaskStartScenarioInPlace(ped, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false)
|
||||
|
||||
if hasTarget then
|
||||
while pedDist < 3.0 and not IsPedDeadOrDying(ped) do
|
||||
local coords2 = GetEntityCoords(PlayerPedId(), true)
|
||||
local pedCoords2 = GetEntityCoords(ped)
|
||||
local pedDist2 = #(coords2 - pedCoords2)
|
||||
if getRobbed <= Config.RobberyChance then
|
||||
TriggerServerEvent('md-drugs:server:robCornerDrugs', drugType, bagAmount)
|
||||
QBCore.Functions.Notify("You Got Robbed " .. bagAmount .. " Bags of " .. currentOfferDrug.item.. "!")
|
||||
stealingPed = ped
|
||||
stealData = {
|
||||
item = availableDrugs[drugType].item,
|
||||
drugType = drugType,
|
||||
amount = bagAmount,
|
||||
}
|
||||
hasTarget = false
|
||||
local moveto = GetEntityCoords(PlayerPedId())
|
||||
local movetoCoords = {x = moveto.x + math.random(100, 500), y = moveto.y + math.random(100, 500), z = moveto.z, }
|
||||
ClearPedTasksImmediately(ped)
|
||||
TaskGoStraightToCoord(ped, movetoCoords.x, movetoCoords.y, movetoCoords.z, 15.0, -1, 0.0, 0.0)
|
||||
lastPed[#lastPed + 1] = ped
|
||||
RobberyPed()
|
||||
break
|
||||
else
|
||||
if pedDist2 < 1.5 and cornerselling then
|
||||
if Config.UseTarget and not zoneMade then
|
||||
zoneMade = true
|
||||
exports['qb-target']:AddEntityZone('sellingPed', ped, {
|
||||
name = 'sellingPed',
|
||||
debugPoly = false,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
icon = 'fas fa-hand-holding-dollar',
|
||||
label = "Sell " ..bagAmount.. " of " .. currentOfferDrug.item.. " for " .. randomPrice .. " Dollars! ",
|
||||
action = function(entity)
|
||||
local playerPed = PlayerPedId()
|
||||
if IsPedInAnyVehicle(PlayerPedId(), false) then
|
||||
QBCore.Functions.Notify("youre in a car", 'error')
|
||||
hasTarget = false
|
||||
SetPedKeepTask(entity, false)
|
||||
SetEntityAsNoLongerNeeded(entity)
|
||||
ClearPedTasksImmediately(entity)
|
||||
lastPed[#lastPed + 1] = entity
|
||||
exports['qb-target']:RemoveZone('sellingPed')
|
||||
return
|
||||
else
|
||||
QBCore.Functions.Progressbar("cornerSelling", "selling Drugs", '5000', false, false, {
|
||||
disableMovement = true,
|
||||
disableCarMovement = true,
|
||||
disableMouse = false,
|
||||
disableCombat = false,
|
||||
}, {}, {}, {}, function()
|
||||
TriggerServerEvent('md-drugs:server:sellCornerDrugs', drugType, bagAmount, randomPrice)
|
||||
hasTarget = false
|
||||
exports["rpemotes"]:EmoteCommandStart("point", 0)
|
||||
Wait(650)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
SetPedKeepTask(entity, false)
|
||||
SetEntityAsNoLongerNeeded(entity)
|
||||
ClearPedTasksImmediately(entity)
|
||||
lastPed[#lastPed + 1] = entity
|
||||
exports['qb-target']:RemoveZone('sellingPed')
|
||||
PoliceCall()
|
||||
end)
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
icon = 'fas fa-x',
|
||||
label = 'Decline offer',
|
||||
action = function(entity)
|
||||
QBCore.Functions.Notify("Fuck that Offer", 'error')
|
||||
hasTarget = false
|
||||
SetPedKeepTask(entity, false)
|
||||
SetEntityAsNoLongerNeeded(entity)
|
||||
ClearPedTasksImmediately(entity)
|
||||
lastPed[#lastPed + 1] = entity
|
||||
exports['qb-target']:RemoveZone('sellingPed')
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 1.5,
|
||||
})
|
||||
end
|
||||
else
|
||||
if Config.UseTarget then
|
||||
zoneMade = false
|
||||
exports['qb-target']:RemoveZone('sellingPed')
|
||||
|
||||
end
|
||||
hasTarget = false
|
||||
SetPedKeepTask(ped, false)
|
||||
SetEntityAsNoLongerNeeded(ped)
|
||||
ClearPedTasksImmediately(ped)
|
||||
lastPed[#lastPed + 1] = ped
|
||||
break
|
||||
end
|
||||
end
|
||||
Wait(0)
|
||||
end
|
||||
Wait(math.random(4000, 7000))
|
||||
end
|
||||
end
|
||||
|
||||
local function ToggleSelling()
|
||||
if not cornerselling then
|
||||
cornerselling = true
|
||||
LocalPlayer.state:set("inv_busy", true, true)
|
||||
QBCore.Functions.Notify("get that paper")
|
||||
local startLocation = GetEntityCoords(PlayerPedId())
|
||||
CreateThread(function()
|
||||
while cornerselling do
|
||||
local player = PlayerPedId()
|
||||
local coords = GetEntityCoords(player)
|
||||
if not hasTarget then
|
||||
local PlayerPeds = {}
|
||||
if next(PlayerPeds) == nil then
|
||||
for _, activePlayer in ipairs(GetActivePlayers()) do
|
||||
local ped = GetPlayerPed(activePlayer)
|
||||
PlayerPeds[#PlayerPeds + 1] = ped
|
||||
end
|
||||
end
|
||||
local closestPed, closestDistance = QBCore.Functions.GetClosestPed(coords, PlayerPeds)
|
||||
if closestDistance < 15.0 and closestPed ~= 0 and not IsPedInAnyVehicle(closestPed) and GetPedType(closestPed) ~= 28 then
|
||||
SellToPed(closestPed)
|
||||
end
|
||||
end
|
||||
local startDist = #(startLocation - coords)
|
||||
if startDist > 30 then
|
||||
TooFarAway()
|
||||
end
|
||||
Wait(0)
|
||||
end
|
||||
end)
|
||||
else
|
||||
stealingPed = nil
|
||||
stealData = {}
|
||||
cornerselling = false
|
||||
LocalPlayer.state:set("inv_busy", false, true)
|
||||
QBCore.Functions.Notify("lazy ass cant even sell drugs")
|
||||
end
|
||||
end
|
||||
|
||||
-- Events
|
||||
RegisterNetEvent('md-drugs:client:cornerselling', function()
|
||||
QBCore.Functions.TriggerCallback('md-drugs:server:cornerselling:getAvailableDrugs', function(result)
|
||||
if CurrentCops >= Config.MinimumDrugSalePolice then
|
||||
if IsPedInAnyVehicle(PlayerPedId(), false) then
|
||||
QBCore.Functions.Notify("youre in a car", 'error')
|
||||
else
|
||||
if result then
|
||||
availableDrugs = result
|
||||
ToggleSelling()
|
||||
else
|
||||
QBCore.Functions.Notify("what you gonna sell fuckin air or something?", 'error')
|
||||
LocalPlayer.state:set("inv_busy", false, true)
|
||||
end
|
||||
end
|
||||
else
|
||||
QBCore.Functions.Notify("not enough pork", "error")
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('police:SetCopCount', function(amount)
|
||||
CurrentCops = amount
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:refreshAvailableDrugs', function(items)
|
||||
availableDrugs = items
|
||||
if availableDrugs == nil or #availableDrugs <= 0 then
|
||||
QBCore.Functions.Notify("no Drugs", 'error')
|
||||
cornerselling = false
|
||||
LocalPlayer.state:set("inv_busy", false, true)
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,40 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makecrackone")
|
||||
AddEventHandler("md-drugs:client:makecrackone", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failcrackone")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:bagcrack")
|
||||
AddEventHandler("md-drugs:client:bagcrack", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,351 @@
|
||||
QBCore = exports['qb-core']:GetCoreObject()
|
||||
local currentDealer = nil
|
||||
local dealerIsHome = false
|
||||
local waitingDelivery = nil
|
||||
local activeDelivery = nil
|
||||
local deliveryTimeout = 0
|
||||
local waitingKeyPress = false
|
||||
local dealerCombo = nil
|
||||
local drugDeliveryZone
|
||||
|
||||
-- Handlers
|
||||
|
||||
AddStateBagChangeHandler('isLoggedIn', nil, function(_, _, value)
|
||||
if value then
|
||||
QBCore.Functions.TriggerCallback('md-drugs:server:RequestConfig', function(DealerConfig)
|
||||
Config.Dealers = DealerConfig
|
||||
end)
|
||||
Wait(1000)
|
||||
InitZones()
|
||||
else
|
||||
if not Config.UseTarget and dealerCombo then dealerCombo:destroy() end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Functions
|
||||
|
||||
local function GetClosestDealer()
|
||||
local ped = PlayerPedId()
|
||||
local pCoords = GetEntityCoords(ped)
|
||||
for k,v in pairs(Config.Dealers) do
|
||||
local dealerCoords = vector3(v.coords.x, v.coords.y, v.coords.z)
|
||||
if #(pCoords - dealerCoords) < 2 then
|
||||
currentDealer = k
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function OpenDealerShop()
|
||||
GetClosestDealer()
|
||||
local repItems = {}
|
||||
repItems.label = Config.Dealers[currentDealer]["name"]
|
||||
repItems.items = {}
|
||||
repItems.slots = 30
|
||||
for k, _ in pairs(Config.Dealers[currentDealer]["products"]) do
|
||||
if QBCore.Functions.GetPlayerData().metadata["dealerrep"] >= Config.Dealers[currentDealer]["products"][k].minrep then
|
||||
repItems.items[k] = Config.Dealers[currentDealer]["products"][k]
|
||||
end
|
||||
end
|
||||
TriggerServerEvent("inventory:server:OpenInventory", "shop", "Dealer_"..Config.Dealers[currentDealer]["name"], repItems)
|
||||
end
|
||||
|
||||
|
||||
|
||||
local function RandomDeliveryItemOnRep()
|
||||
local myRep = QBCore.Functions.GetPlayerData().metadata["dealerrep"]
|
||||
local availableItems = {}
|
||||
for k, _ in pairs(Config.DeliveryItems) do
|
||||
if Config.DeliveryItems[k]["minrep"] <= myRep then
|
||||
availableItems[#availableItems+1] = k
|
||||
end
|
||||
end
|
||||
return availableItems[math.random(1, #availableItems)]
|
||||
end
|
||||
|
||||
local function RequestDelivery()
|
||||
if not waitingDelivery then
|
||||
GetClosestDealer()
|
||||
|
||||
local amount = math.random(1, 3)
|
||||
local item = RandomDeliveryItemOnRep()
|
||||
|
||||
QBCore.Functions.Notify("Currently searching for a delivery...", 'success')
|
||||
if Config.NearbyDeliveries == true then
|
||||
local playerPed = PlayerPedId()
|
||||
local playerCoords = GetEntityCoords(playerPed)
|
||||
local nearbyLocations = {}
|
||||
-- Filter out the nearby locations
|
||||
for _, location in ipairs(Config.DeliveryLocations) do
|
||||
local distance = #(playerCoords - location.coords)
|
||||
if distance <= Config.DeliveryWithin then
|
||||
nearbyLocations[#nearbyLocations + 1] = location
|
||||
end
|
||||
end
|
||||
|
||||
-- Select a random location from the nearby locations
|
||||
if #nearbyLocations > 0 then
|
||||
local selectedLocation = nearbyLocations[math.random(1, #nearbyLocations)]
|
||||
waitingDelivery = {
|
||||
["coords"] = selectedLocation.coords,
|
||||
["locationLabel"] = selectedLocation.label,
|
||||
["amount"] = amount,
|
||||
["dealer"] = currentDealer,
|
||||
["itemData"] = Config.DeliveryItems[item],
|
||||
["item"] = item
|
||||
}
|
||||
else
|
||||
QBCore.Functions.Notify("Nothing Close By", 'error')
|
||||
|
||||
end
|
||||
else
|
||||
local location = math.random(1, #Config.DeliveryLocations)
|
||||
|
||||
waitingDelivery = {
|
||||
["coords"] = Config.DeliveryLocations[location]["coords"],
|
||||
["locationLabel"] = Config.DeliveryLocations[location]["label"],
|
||||
["amount"] = amount,
|
||||
["dealer"] = currentDealer,
|
||||
["itemData"] = Config.DeliveryItems[item],
|
||||
["item"] = item
|
||||
}
|
||||
if Config.Debug == true then
|
||||
print(Config.DeliveryLocations[location]["coords"])
|
||||
print(Config.DeliveryLocations[location]["label"])
|
||||
end
|
||||
end
|
||||
|
||||
TriggerServerEvent('md-drugs:server:giveDeliveryItems', waitingDelivery)
|
||||
SetTimeout(2000, function()
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = Config.Dealers[currentDealer]["name"],
|
||||
subject = "Delivery Location",
|
||||
message = "Deliver This For Me",
|
||||
button = {
|
||||
enabled = true,
|
||||
buttonEvent = "md-drugs:client:setLocation",
|
||||
buttonData = waitingDelivery
|
||||
}
|
||||
})
|
||||
end)
|
||||
else
|
||||
QBCore.Functions.Notify("You Havent Even Finished The One I Told You Too", 'error')
|
||||
end
|
||||
end
|
||||
|
||||
local function DeliveryTimer()
|
||||
CreateThread(function()
|
||||
while deliveryTimeout - 1 > 0 do
|
||||
deliveryTimeout = deliveryTimeout - 1
|
||||
Wait(1000)
|
||||
end
|
||||
deliveryTimeout = 0
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
local function PoliceCall()
|
||||
-- local random = math.random(1, 100)
|
||||
-- if random <= Config.PoliceCallChance then
|
||||
-- TriggerServerEvent('police:server:policeAlert', 'Suspicous activity')
|
||||
-- end
|
||||
end
|
||||
|
||||
local function DeliverStuff()
|
||||
if deliveryTimeout > 0 then
|
||||
Wait(500)
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
PoliceCall()
|
||||
QBCore.Functions.Progressbar("work_dropbox", "handing Off Package", 3500, false, true, {
|
||||
disableMovement = true,
|
||||
disableCarMovement = true,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
}, {}, {}, {}, function() -- Done
|
||||
TriggerServerEvent('md-drugs:server:successDelivery', activeDelivery, true)
|
||||
activeDelivery = nil
|
||||
exports['qb-target']:RemoveZone('drugDeliveryZone')
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
else
|
||||
TriggerServerEvent('md-drugs:server:successDelivery', activeDelivery, false)
|
||||
end
|
||||
deliveryTimeout = 0
|
||||
end
|
||||
|
||||
local function SetMapBlip(x, y)
|
||||
SetNewWaypoint(x, y)
|
||||
QBCore.Functions.Notify("Marked On Your Map", 'success');
|
||||
end
|
||||
|
||||
-- PolyZone specific functions
|
||||
|
||||
|
||||
function InitZones()
|
||||
if next(Config.Dealers) == nil then return end
|
||||
|
||||
for k,v in pairs(Config.Dealers) do
|
||||
local Ped = "g_m_y_famdnf_01"
|
||||
RequestModel(Ped)
|
||||
while not HasModelLoaded(Ped) do
|
||||
Wait(0)
|
||||
end
|
||||
|
||||
testdealer = CreatePed(0, Ped,v.coords.x,v.coords.y,v.coords.z-1, 90.0, false, false)
|
||||
FreezeEntityPosition(testdealer, true)
|
||||
SetEntityInvincible(testdealer, true)
|
||||
exports["qb-target"]:AddBoxZone("dealer_"..k, vector3(v.coords.x, v.coords.y, v.coords.z), 1.5, 1.5, {
|
||||
name = "dealer_"..k,
|
||||
heading = v.heading,
|
||||
minZ = v.coords.z - 1,
|
||||
maxZ = v.coords.z + 1,
|
||||
debugPoly = false,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
icon = 'fas fa-user-secret',
|
||||
label = "Deliver",
|
||||
action = function()
|
||||
RequestDelivery()
|
||||
end,
|
||||
canInteract = function()
|
||||
GetClosestDealer()
|
||||
local hours = GetClockHours()
|
||||
local min = Config.Dealers[currentDealer]["time"]["min"]
|
||||
local max = Config.Dealers[currentDealer]["time"]["max"]
|
||||
if max < min then
|
||||
if hours <= max then
|
||||
if not waitingDelivery then
|
||||
return true
|
||||
end
|
||||
elseif hours >= min then
|
||||
if not waitingDelivery then
|
||||
return true
|
||||
end
|
||||
end
|
||||
else
|
||||
if hours >= min and hours <= max then
|
||||
if not waitingDelivery then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
},
|
||||
{
|
||||
icon = 'fas fa-user-secret',
|
||||
label = "Open Shop",
|
||||
action = function()
|
||||
OpenDealerShop()
|
||||
end,
|
||||
canInteract = function()
|
||||
GetClosestDealer()
|
||||
local hours = GetClockHours()
|
||||
local min = Config.Dealers[currentDealer]["time"]["min"]
|
||||
local max = Config.Dealers[currentDealer]["time"]["max"]
|
||||
if max < min then
|
||||
if hours <= max then
|
||||
return true
|
||||
elseif hours >= min then
|
||||
return true
|
||||
end
|
||||
else
|
||||
if hours >= min and hours <= max then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
},
|
||||
distance = 1.5
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- Events
|
||||
|
||||
RegisterNetEvent('md-drugs:client:RefreshDealers', function(DealerData)
|
||||
if not Config.UseTarget and dealerCombo then dealerCombo:destroy() end
|
||||
Config.Dealers = DealerData
|
||||
Wait(1000)
|
||||
InitZones()
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:updateDealerItems', function(itemData, amount)
|
||||
TriggerServerEvent('md-drugs:server:updateDealerItems', itemData, amount, currentDealer)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:setDealerItems', function(itemData, amount, dealer)
|
||||
Config.Dealers[dealer]["products"][itemData.slot].amount = Config.Dealers[dealer]["products"][itemData.slot].amount - amount
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:setLocation', function(locationData)
|
||||
if activeDelivery then
|
||||
SetMapBlip(activeDelivery["coords"]["x"], activeDelivery["coords"]["y"])
|
||||
QBCore.Functions.Notify("Already Delivering", 'error')
|
||||
return
|
||||
end
|
||||
activeDelivery = locationData
|
||||
deliveryTimeout = 300
|
||||
DeliveryTimer()
|
||||
SetMapBlip(activeDelivery["coords"].x, activeDelivery["coords"].y)
|
||||
local Ped = "g_m_y_famdnf_01"
|
||||
RequestModel(Ped)
|
||||
while not HasModelLoaded(Ped) do
|
||||
Wait(0)
|
||||
end
|
||||
|
||||
Buyer = CreatePed(0, Ped,activeDelivery["coords"].x, activeDelivery["coords"].y, activeDelivery["coords"].z-1, 180.0, false, false)
|
||||
FreezeEntityPosition(Buyer, true)
|
||||
SetEntityInvincible(Buyer, true)
|
||||
if Config.UseTarget then
|
||||
exports['qb-target']:AddTargetEntity(Buyer, {
|
||||
options = {
|
||||
{
|
||||
icon = 'fas fa-user-secret',
|
||||
label = "Hand Off",
|
||||
action = function()
|
||||
DeliverStuff()
|
||||
Wait(4000)
|
||||
DeleteEntity(Buyer)
|
||||
waitingDelivery = nil
|
||||
end,
|
||||
canInteract = function()
|
||||
if waitingDelivery then
|
||||
return true
|
||||
end
|
||||
end
|
||||
}
|
||||
},
|
||||
distance = 1.5
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:sendDeliveryMail', function(type, deliveryData)
|
||||
if type == 'perfect' then
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = Config.Dealers[deliveryData["dealer"]]["name"],
|
||||
subject = "Delivery",
|
||||
message = "You did it"
|
||||
})
|
||||
elseif type == 'bad' then
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = Config.Dealers[deliveryData["dealer"]]["name"],
|
||||
subject = "Delivery",
|
||||
message = "You Fucked Me Over"
|
||||
})
|
||||
elseif type == 'late' then
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = Config.Dealers[deliveryData["dealer"]]["name"],
|
||||
subject = "Delivery",
|
||||
message = "Better Late Than Dead"
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterCommand('checkrep', function()
|
||||
local drugrep = QBCore.Functions.GetPlayerData().metadata["dealerrep"]
|
||||
QBCore.Functions.Notify("Current Rep: "..drugrep)
|
||||
end)
|
||||
@@ -0,0 +1,322 @@
|
||||
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
|
||||
|
||||
local function loadParticle(dict)
|
||||
if not HasNamedPtfxAssetLoaded(dict) then
|
||||
RequestNamedPtfxAsset(dict)
|
||||
end
|
||||
while not HasNamedPtfxAssetLoaded(dict) do
|
||||
Wait(0)
|
||||
end
|
||||
SetPtfxAssetNextCall(dict)
|
||||
end
|
||||
|
||||
CreateThread(function()
|
||||
local Ped = "g_m_y_famdnf_01"
|
||||
RequestModel(Ped)
|
||||
while not HasModelLoaded(Ped) do
|
||||
Wait(0)
|
||||
end
|
||||
labkitlocation = Config.buyheroinlabkit
|
||||
heroinkitdealer = CreatePed(0, Ped,labkitlocation-1, 180.0, false, false)
|
||||
FreezeEntityPosition(heroinkitdealer, true)
|
||||
SetEntityInvincible(heroinkitdealer, true)
|
||||
exports['qb-target']:AddTargetEntity(heroinkitdealer, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Talk To Buyer",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:buyheroinlabkit"
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
end)
|
||||
|
||||
---- plant spawns dont edit
|
||||
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
|
||||
DeleteObject(heroinlabkit)
|
||||
DeleteObject(dirtylabkitheroin)
|
||||
end)
|
||||
---- plant stop end
|
||||
|
||||
RegisterNetEvent("md-drugs:client:dryplant")
|
||||
AddEventHandler("md-drugs:client:dryplant", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:cutheroin")
|
||||
AddEventHandler("md-drugs:client:cutheroin", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:buyheroinlabkit")
|
||||
AddEventHandler("md-drugs:client:buyheroinlabkit", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setheroinlabkit")
|
||||
AddEventHandler("md-drugs:client:setheroinlabkit", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
heroinlabkit = CreateObject("v_ret_ml_tablea", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
SetVehicleOnGroundProperly(heroinlabkit)
|
||||
exports['qb-target']:AddTargetEntity(heroinlabkit, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:heatliquidheroin",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Cook Heroin",
|
||||
},
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getheroinkitback",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Pick Up",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:heatliquidheroin")
|
||||
AddEventHandler("md-drugs:client:heatliquidheroin", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failheatingheroin")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
DeleteObject(heroinlabkit)
|
||||
Wait(100)
|
||||
dirtylabkitheroin = CreateObject("v_ret_ml_tablea", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
loadParticle("core")
|
||||
heroinkit = StartParticleFxLoopedOnEntity("exp_air_molotov", dirtylabkitheroin, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.5, false, false, false)
|
||||
SetParticleFxLoopedAlpha(heroinkit, 3.0)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
|
||||
|
||||
exports['qb-target']:AddTargetEntity(dirtylabkitheroin, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cleanheroinlabkit",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Clean It",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:cleanheroinlabkit")
|
||||
AddEventHandler("md-drugs:client:cleanheroinlabkit", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("clean", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Cleaning", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:removecleaningkitheroin")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:deletedirtyheroin")
|
||||
AddEventHandler("md-drugs:client:deletedirtyheroin", function()
|
||||
DeleteObject(dirtylabkitheroin)
|
||||
TriggerEvent("md-drugs:client:setheroinlabkit")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getheroinkitback")
|
||||
AddEventHandler("md-drugs:client:getheroinkitback", function()
|
||||
DeleteObject(heroinlabkit)
|
||||
TriggerServerEvent("md-drugs:server:getheroinlabkitback")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:resetheroinkit")
|
||||
AddEventHandler("md-drugs:client:resetheroinkit", function()
|
||||
DeleteObject(heroinlabkit)
|
||||
TriggerEvent("md-drugs:server:getheroinlabkitback")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:fillneedle")
|
||||
AddEventHandler("md-drugs:client:fillneedle", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failheroin")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
@@ -0,0 +1,415 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
local function loadParticle(dict)
|
||||
if not HasNamedPtfxAssetLoaded(dict) then
|
||||
RequestNamedPtfxAsset(dict)
|
||||
end
|
||||
while not HasNamedPtfxAssetLoaded(dict) do
|
||||
Wait(0)
|
||||
end
|
||||
SetPtfxAssetNextCall(dict)
|
||||
end
|
||||
|
||||
CreateThread(function()
|
||||
local Ped = "g_m_y_famdnf_01"
|
||||
RequestModel(Ped)
|
||||
while not HasModelLoaded(Ped) do
|
||||
Wait(0)
|
||||
end
|
||||
tabdealer = CreatePed(0, Ped,vector3(-318.69, -773.59, 47.43), 180.0, false, false)
|
||||
FreezeEntityPosition(tabdealer, true)
|
||||
SetEntityInvincible(tabdealer, true)
|
||||
exports['qb-target']:AddTargetEntity(tabdealer, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Talk To Buyer",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:buytabs"
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getlysergic")
|
||||
AddEventHandler("md-drugs:client:getlysergic", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getdiethylamide")
|
||||
AddEventHandler("md-drugs:client:getdiethylamide", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setlsdlabkit")
|
||||
AddEventHandler("md-drugs:client:setlsdlabkit", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Setting Table Down", 1000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
labkit = CreateObject("v_ret_ml_tablea", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
SetVehicleOnGroundProperly(labkit)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
|
||||
exports['qb-target']:AddTargetEntity(labkit, {
|
||||
options = {
|
||||
{
|
||||
num = 1,
|
||||
type = "client",
|
||||
event = "md-drugs:client:heatliquid",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Heat Liquid",
|
||||
},
|
||||
{
|
||||
num = 4,
|
||||
type = "client",
|
||||
event = "md-drugs:client:getlabkitback",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Pick Up",
|
||||
},
|
||||
{
|
||||
num = 2,
|
||||
type = "client",
|
||||
event = "md-drugs:client:refinequalityacid",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Refine",
|
||||
},
|
||||
{
|
||||
num = 3,
|
||||
type = "client",
|
||||
event = "md-drugs:client:maketabpaper",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Dab Sheets",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getlabkitback")
|
||||
AddEventHandler("md-drugs:client:getlabkitback", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
QBCore.Functions.Progressbar("drink_something", "Packing Up", 1000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
DeleteObject(labkit)
|
||||
TriggerServerEvent('md-drugs:server:getlabkitback')
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:heatliquid")
|
||||
AddEventHandler("md-drugs:client:heatliquid", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
dict = "scr_ie_svm_technical2"
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failheating")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
DeleteObject(labkit)
|
||||
dirtylabkit = CreateObject("v_ret_ml_tablea", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
loadParticle(dict)
|
||||
exitPtfx = StartParticleFxLoopedOnEntity("scr_dst_cocaine", dirtylabkit, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.5, false, false, false)
|
||||
SetParticleFxLoopedAlpha(exitPtfx, 3.0)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
exports['qb-target']:AddTargetEntity(dirtylabkit, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cleanlabkit",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Clean It",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:cleanlabkit")
|
||||
AddEventHandler("md-drugs:client:cleanlabkit", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("clean", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Cleaning", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:removecleaningkit")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:resetlsdkit")
|
||||
AddEventHandler("md-drugs:client:resetlsdkit", function()
|
||||
DeleteObject(dirtylabkit)
|
||||
TriggerEvent("md-drugs:client:setlsdlabkit")
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:refinequalityacid")
|
||||
AddEventHandler("md-drugs:client:refinequalityacid", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failrefinequality")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:maketabpaper")
|
||||
AddEventHandler("md-drugs:client:maketabpaper", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Dipping LSD Onto Paper", 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:maketabpaper")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failtabs")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:cutsheet")
|
||||
AddEventHandler("md-drugs:client:cutsheet", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Cutting Sheets", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:buytabs")
|
||||
AddEventHandler("md-drugs:client:buytabs", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Buying A Lab Kit", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:getlabkit")
|
||||
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:taketabs', function(itemName)
|
||||
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)
|
||||
if itemName == "smiley_tabs" or itemName == "wildcherry_tabs" or itemName == "yinyang_tabs" then
|
||||
AlienEffect()
|
||||
elseif itemName == "pineapple_tabs" then
|
||||
EcstasyEffect()
|
||||
elseif itemName == "bart_tabs" then
|
||||
TrevorEffect()
|
||||
else
|
||||
TrevorEffect()
|
||||
Wait(15000)
|
||||
EcstasyEffect()
|
||||
end
|
||||
end, function() -- Cancel
|
||||
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
|
||||
QBCore.Functions.Notify("Canceled", "error")
|
||||
end)
|
||||
end)
|
||||
@@ -0,0 +1,199 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local Mescaline = {}
|
||||
local hallucinate = nil
|
||||
|
||||
function LoadModel(hash)
|
||||
hash = GetHashKey(hash)
|
||||
RequestModel(hash)
|
||||
while not HasModelLoaded(hash) do
|
||||
Wait(3000)
|
||||
end
|
||||
end
|
||||
|
||||
local function loadParticle(dict)
|
||||
if not HasNamedPtfxAssetLoaded(dict) then
|
||||
RequestNamedPtfxAsset(dict)
|
||||
end
|
||||
while not HasNamedPtfxAssetLoaded(dict) do
|
||||
Wait(0)
|
||||
end
|
||||
SetPtfxAssetNextCall(dict)
|
||||
end
|
||||
|
||||
|
||||
---- plant spawns dont edit
|
||||
RegisterNetEvent('Mescaline:respawnCane', function(loc)
|
||||
local v = GlobalState.Mescaline[loc]
|
||||
local hash = GetHashKey(v.model)
|
||||
--if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||
if not Mescaline[loc] then
|
||||
Mescaline[loc] = CreateObject(hash, v.location, false, true, true)
|
||||
SetEntityAsMissionEntity(Mescaline[loc], true, true)
|
||||
FreezeEntityPosition(Mescaline[loc], true)
|
||||
SetEntityHeading(Mescaline[loc], v.heading)
|
||||
exports['qb-target']:AddTargetEntity(Mescaline[loc], {
|
||||
options = { {
|
||||
icon = "fas fa-hand",
|
||||
label = "pick Cactus",
|
||||
action = function()
|
||||
QBCore.Functions.Progressbar("pick_cane", "picking Cactus", 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("Mescaline:pickupCane", loc)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end, function() -- Cancel
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end
|
||||
}
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent('Mescaline:removeCane', function(loc)
|
||||
if DoesEntityExist(Mescaline[loc]) then DeleteEntity(Mescaline[loc]) end
|
||||
Mescaline[loc] = nil
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("Mescaline:init", function()
|
||||
for k, v in pairs (GlobalState.Mescaline) do
|
||||
local hash = GetHashKey(v.model)
|
||||
if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||
if not v.taken then
|
||||
Mescaline[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
||||
SetEntityAsMissionEntity(Mescaline[k], true, true)
|
||||
FreezeEntityPosition(Mescaline[k], true)
|
||||
SetEntityHeading(Mescaline[k], v.heading)
|
||||
exports['qb-target']:AddTargetEntity(Mescaline[k], {
|
||||
options = { {
|
||||
icon = "fas fa-hand",
|
||||
label = "Pick Mescaline",
|
||||
action = function()
|
||||
QBCore.Functions.Progressbar("pick_cane", "Picking Mescaline", 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("Mescaline: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_cactus_03')
|
||||
TriggerEvent('Mescaline:init')
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
|
||||
Wait(3000)
|
||||
LoadModel('prop_cactus_03')
|
||||
TriggerEvent('Mescaline:init')
|
||||
end)
|
||||
|
||||
AddEventHandler('onResourceStop', function(resourceName)
|
||||
if GetCurrentResourceName() == resourceName then
|
||||
SetModelAsNoLongerNeeded(GetHashKey('prop_cactus_03'))
|
||||
for k, v in pairs(Mescaline) do
|
||||
if DoesEntityExist(v) then
|
||||
DeleteEntity(v) SetEntityAsNoLongerNeeded(v)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
exports['qb-target']:AddBoxZone("drymescaline",Config.DryOut,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "drymescaline",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.DryOut-2,
|
||||
maxZ = Config.DryOut+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:drymescaline",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Out",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
|
||||
end)
|
||||
RegisterNetEvent("md-drugs:client:drymescaline")
|
||||
AddEventHandler("md-drugs:client:drymescaline", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Drying Out", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:drymescaline")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:takemescaline")
|
||||
AddEventHandler("md-drugs:client:takemescaline", function()
|
||||
local chance = math.random(1,10)
|
||||
local chance2 = math.random(1,100)
|
||||
QBCore.Functions.Progressbar("drink_something", "Taking Mescaline", 1000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
if chance <= Config.Badtrip then
|
||||
AlienEffect()
|
||||
clone = ClonePed(PlayerPedId(), false, false, true)
|
||||
NetworkRegisterEntityAsNetworked(clone)
|
||||
networkID = NetworkGetNetworkIdFromEntity(clone)
|
||||
SetNetworkIdCanMigrate(networkID, true)
|
||||
SetNetworkIdExistsOnAllMachines(networkID, true)
|
||||
SetEntityAsMissionEntity(clone)
|
||||
SetEntityVisible(clone, true)
|
||||
SetPedRelationshipGroupHash(clone)
|
||||
SetPedAccuracy(clone)
|
||||
SetPedArmour(clone)
|
||||
SetPedCanSwitchWeapon(clone, true)
|
||||
SetPedFleeAttributes(clone, false)
|
||||
if chance2 <= 99 then
|
||||
GiveWeaponToPed(clone, "weapon_flaregun", 1, false, true)
|
||||
TaskCombatPed(clone, PlayerPedId(), 0, 16)
|
||||
SetPedCombatAttributes(clone, 46, true)
|
||||
Wait(1000 * 30)
|
||||
DeleteEntity(clone)
|
||||
else
|
||||
GiveWeaponToPed(clone, "weapon_rpg", 1, false, true)
|
||||
TaskCombatPed(clone, PlayerPedId(), 0, 16)
|
||||
SetPedCombatAttributes(clone, 46, true)
|
||||
Wait(1000 * 30)
|
||||
DeleteEntity(clone)
|
||||
end
|
||||
else
|
||||
AlienEffect()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
@@ -0,0 +1,172 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
local deliveryBlip = nil
|
||||
local PZone = nil
|
||||
local listen = false
|
||||
local carryPackage = nil
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getoxytruck")
|
||||
AddEventHandler("md-drugs:client:getoxytruck", function()
|
||||
if TriggerServerEvent('md-drugs:server:payfortruck') then
|
||||
end
|
||||
end)
|
||||
|
||||
function Policecall()
|
||||
---------------------- insert police call in here
|
||||
end
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:Client:getoxylocation", function()
|
||||
local coords = Config.truckspawn
|
||||
local ModelHash = "burrito3" -- Use Compile-time hashes to get the hash of this model
|
||||
if not IsModelInCdimage(ModelHash) then return end
|
||||
RequestModel(ModelHash) -- Request the model
|
||||
while not HasModelLoaded(ModelHash) do -- Waits for the model to load
|
||||
Wait(0)
|
||||
end
|
||||
local oxycar = CreateVehicle(ModelHash,Config.truckspawn.x, Config.truckspawn.y,Config.truckspawn.z, Config.truckspawn.h, true, false)
|
||||
SetEntityHeading(oxycar, coords.w)
|
||||
exports[Config.Fuel]:SetFuel(oxycar, 100.0)
|
||||
TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(oxycar))
|
||||
TriggerEvent('QBCore:Notify', 'Your truck is here', 'success')
|
||||
TriggerEvent("md-drugs:client:getoxylocationroute")
|
||||
SetVehicleEngineOn(oxycar, true, true)
|
||||
exports['qb-target']:AddTargetEntity(oxycar, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getfromtrunk",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Get Package",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
|
||||
exports['qb-target']:AddBoxZone("getoxylocation",Config.Payfortruck,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "getoxylocation",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.Payfortruck-2,
|
||||
maxZ = Config.Payfortruck+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getoxytruck",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Pay For Truck",
|
||||
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
|
||||
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getoxylocationroute")
|
||||
AddEventHandler("md-drugs:client:getoxylocationroute", function()
|
||||
Wait(100)
|
||||
local unlucky = math.random(1,100)
|
||||
local CurrentLocation = Config.oxylocations[math.random(#Config.oxylocations)]
|
||||
local unluck = math.random(1,100)
|
||||
if deliveryBlip ~= nil then
|
||||
RemoveBlip(deliveryBlip)
|
||||
end
|
||||
if CurrentLocation ~= nil then
|
||||
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 = "oxyruns", debugPoly = false })
|
||||
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
|
||||
end
|
||||
if unluck <= Config.PoliceAlertOxy then
|
||||
policecall()
|
||||
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, false, false)
|
||||
SetEntityHeading(drugdealer, 180)
|
||||
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:giveoxybox"
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
|
||||
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getfromtrunk")
|
||||
AddEventHandler("md-drugs:client:getfromtrunk", function()
|
||||
if carryPackage then
|
||||
QBCore.Functions.Notify("You Cant Carry More Than One", "error")
|
||||
else
|
||||
local pos = GetEntityCoords(PlayerPedId(), true)
|
||||
RequestAnimDict('anim@heists@box_carry@')
|
||||
while (not HasAnimDictLoaded('anim@heists@box_carry@')) do
|
||||
Wait(7)
|
||||
end
|
||||
TaskPlayAnim(PlayerPedId(), 'anim@heists@box_carry@', 'idle', 5.0, -1, -1, 50, 0, false, false, false)
|
||||
RequestModel("hei_prop_drug_statue_box_big")
|
||||
while not HasModelLoaded("hei_prop_drug_statue_box_big") do
|
||||
Wait(0)
|
||||
end
|
||||
local object = CreateObject("hei_prop_drug_statue_box_big", pos.x, pos.y, pos.z, true, true, true)
|
||||
AttachEntityToEntity(object, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 57005), 0.05, 0.1, -0.3, 300.0, 250.0, 20.0, true, true, false, true, 1, true)
|
||||
carryPackage = object
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:giveoxybox")
|
||||
AddEventHandler("md-drugs:client:giveoxybox", function()
|
||||
if carryPackage then
|
||||
QBCore.Functions.Progressbar("drink_something", "handing over oxy", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:giveoxybox")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
|
||||
DeleteEntity(drugdealer)
|
||||
DetachEntity(carryPackage, true, true)
|
||||
DeleteObject(carryPackage)
|
||||
carryPackage = nil
|
||||
end)
|
||||
else
|
||||
QBCore.Functions.Notify("cant be empty handed idiot", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterCommand('prescriptionpad', function()
|
||||
if QBCore.Functions.GetPlayerData().job.name == "ambulance" then
|
||||
exports['qb-menu']:openMenu({
|
||||
{
|
||||
header = 'Prescription Pad',
|
||||
icon = 'fa-solid fa-prescription',
|
||||
isMenuHeader = true, -- Set to true to make a nonclickable title
|
||||
},
|
||||
{
|
||||
header = 'Give Vicodin',
|
||||
txt = 'Give Vicodin ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
params = {
|
||||
event = 'md-drugs:client:givevicodinprescription',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
header = 'Give Adderal',
|
||||
txt = 'Give Adderal ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
params = {
|
||||
event = 'md-drugs:client:giveadderalprescription',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
header = 'Give Morphine',
|
||||
txt = 'Give Morphine ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
params = {
|
||||
event = 'md-drugs:client:givemorphineprescription',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
header = 'Give Xanax',
|
||||
txt = 'Give Vicodin ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
params = {
|
||||
event = 'md-drugs:client:givexanaxprescription',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
else
|
||||
QBCore.Functions.Notify("Youre Not A Medical Person", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:givevicodinprescription")
|
||||
AddEventHandler("md-drugs:client:givevicodinprescription", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Getting The Prescription Written", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:givevicodinprescription")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
RegisterNetEvent("md-drugs:client:giveadderalprescription")
|
||||
AddEventHandler("md-drugs:client:giveadderalprescription", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Getting The Prescription Written", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:giveadderalprescription")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:givemorphineprescription")
|
||||
AddEventHandler("md-drugs:client:givemorphineprescription", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Getting The Prescription Written", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:givemorphineprescription")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
RegisterNetEvent("md-drugs:client:givexanaxprescription")
|
||||
AddEventHandler("md-drugs:client:givexanaxprescription", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Getting The Prescription Written", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
TriggerServerEvent("md-drugs:server:givexanaxprescription")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:fillprescription")
|
||||
AddEventHandler("md-drugs:client:fillprescription", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:openingvicodin")
|
||||
AddEventHandler("md-drugs:client:openingvicodin", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Opening Bottle", 4000, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
disableInventory = true,
|
||||
}, {}, {}, {}, function()-- Done
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent('md-drugs:client:takepharma', function(itemName)
|
||||
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)
|
||||
|
||||
if itemName == "vicodin" then
|
||||
exports['ps-buffs']:AddHealthBuff(10000, 20)
|
||||
elseif itemName == "adderal" then
|
||||
exports['ps-buffs']:StaminaBuffEffect(5000, 1.3)
|
||||
elseif itemName == "xanax" then
|
||||
exports['ps-buffs']:AddStressBuff(10000, 25)
|
||||
else
|
||||
exports['ps-buffs']:AddHealthBuff(10000, 40)
|
||||
end
|
||||
end, function() -- Cancel
|
||||
StopAnimTask(PlayerPedId(), "mp_suicide", "pill", 1.0)
|
||||
QBCore.Functions.Notify("Canceled", "error")
|
||||
end)
|
||||
end)
|
||||
@@ -0,0 +1,132 @@
|
||||
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)
|
||||
@@ -0,0 +1,369 @@
|
||||
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("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
|
||||
})
|
||||
|
||||
|
||||
----- 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("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",Config.FillPrescription,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "pharmapresc",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.FillPrescription-2,
|
||||
maxZ = Config.FillPrescription+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillprescription",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Prescription",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
----------------------------------------- mescaline
|
||||
exports['qb-target']:AddBoxZone("drymescaline",Config.DryOut,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "drymescaline",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.DryOut-2,
|
||||
maxZ = Config.DryOut+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:drymescaline",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Out",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
--------------------------------------- XTC
|
||||
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("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)
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
CreateThread(function()
|
||||
local current = "g_m_y_famdnf_01"
|
||||
RequestModel(current)
|
||||
while not HasModelLoaded(current) do
|
||||
Wait(0)
|
||||
end
|
||||
local CurrentLocation = Config.Travellingmerchant[math.random(#Config.Travellingmerchant)]
|
||||
|
||||
travellingmerchant = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, CurrentLocation.h, false, false)
|
||||
FreezeEntityPosition(travellingmerchant, true)
|
||||
SetEntityInvincible(travellingmerchant, true)
|
||||
exports['qb-target']:AddTargetEntity(travellingmerchant, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Travelling Merchant",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:OpenMerchant"
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:OpenMerchant')
|
||||
AddEventHandler('md-drugs:client:OpenMerchant', function()
|
||||
TriggerServerEvent("inventory:server:OpenInventory", "shop", "travelling merchant", Config.Items)
|
||||
end)
|
||||
@@ -0,0 +1,583 @@
|
||||
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 = 'Oxy Run',
|
||||
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 = "Oxy Runs",
|
||||
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)
|
||||
@@ -0,0 +1,871 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setpressquad")
|
||||
AddEventHandler("md-drugs:client:setpressquad", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
Wait(4000)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
quadpress = CreateObject("bkr_prop_coke_press_01b", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
SetVehicleOnGroundProperly(quadpress)
|
||||
exports['qb-target']:AddTargetEntity(quadpress, {
|
||||
options = {
|
||||
{
|
||||
num = 1,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makextcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White quad Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 2,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeredxtcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red quad Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 3,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeorangextcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange quad Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 4,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makebluextcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue quad Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 5,
|
||||
type = "client",
|
||||
event = "md-drugs:client:getquadpressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setpresstriple")
|
||||
AddEventHandler("md-drugs:client:setpresstriple", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
Wait(4000)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
triplepress = CreateObject("bkr_prop_coke_press_01b", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
SetVehicleOnGroundProperly(triplepress)
|
||||
exports['qb-target']:AddTargetEntity(triplepress, {
|
||||
options = {
|
||||
{
|
||||
num = 1,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makextctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White triple Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 2,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeredxtctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red triple Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 3,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeorangextctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange triple Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 4,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makebluextctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue triple Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 5,
|
||||
type = "client",
|
||||
event = "md-drugs:client:gettriplepressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setpressdual")
|
||||
AddEventHandler("md-drugs:client:setpressdual", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
Wait(4000)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
dualpress = CreateObject("bkr_prop_coke_press_01b", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
SetVehicleOnGroundProperly(dualpress)
|
||||
exports['qb-target']:AddTargetEntity(dualpress, {
|
||||
options = {
|
||||
{
|
||||
num = 1,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makextcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 2,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeredxtcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 3,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeorangextcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 4,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makebluextcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 5,
|
||||
type = "client",
|
||||
event = "md-drugs:client:getdualpressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setpresssingle")
|
||||
AddEventHandler("md-drugs:client:setpresssingle", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
Wait(4000)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
singlepress = CreateObject("bkr_prop_coke_press_01aa", PedCoords.x+1, PedCoords.y+1, PedCoords.z-1, true, false)
|
||||
SetVehicleOnGroundProperly(singlepress)
|
||||
exports['qb-target']:AddTargetEntity(singlepress, {
|
||||
options = {
|
||||
{
|
||||
num = 1,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makextcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 2,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeredxtcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 3,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makeorangextcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 4,
|
||||
type = "client",
|
||||
event = "md-drugs:client:makebluextcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
num = 5,
|
||||
type = "client",
|
||||
event = "md-drugs:client:getsinglepressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
},
|
||||
distance = 3.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getsinglepressback")
|
||||
AddEventHandler("md-drugs:client:getsinglepressback", function()
|
||||
DeleteObject(singlepress)
|
||||
TriggerServerEvent("md-drugs:server:getsinglepressback")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getdualpressback")
|
||||
AddEventHandler("md-drugs:client:getdualpressback", function()
|
||||
DeleteObject(dualpress)
|
||||
TriggerServerEvent("md-drugs:server:getdualpressback")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:gettriplepressback")
|
||||
AddEventHandler("md-drugs:client:gettriplepressback", function()
|
||||
DeleteObject(triplepress)
|
||||
TriggerServerEvent("md-drugs:server:gettriplepressback")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getquadpressback")
|
||||
AddEventHandler("md-drugs:client:getquadpressback", function()
|
||||
DeleteObject(quadpress)
|
||||
TriggerServerEvent("md-drugs:server:getquadpressback")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:stealisosafrole")
|
||||
AddEventHandler("md-drugs:client:stealisosafrole", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:stealmdp2p")
|
||||
AddEventHandler("md-drugs:client:stealmdp2p", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makingrawxtc")
|
||||
AddEventHandler("md-drugs:client:makingrawxtc", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
---------------------------- unstamped just xtc
|
||||
RegisterNetEvent("md-drugs:client:makextcsingle")
|
||||
AddEventHandler("md-drugs:client:makextcsingle", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 4, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makextcdual")
|
||||
AddEventHandler("md-drugs:client:makextcdual", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makextctriple")
|
||||
AddEventHandler("md-drugs:client:makextctriple", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makextcquad")
|
||||
AddEventHandler("md-drugs:client:makextcquad", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
-------------------------------------------------
|
||||
RegisterNetEvent("md-drugs:client:makeredxtcsingle")
|
||||
AddEventHandler("md-drugs:client:makeredxtcsingle", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 4, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeredxtcdual")
|
||||
AddEventHandler("md-drugs:client:makeredxtcdual", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeredxtctriple")
|
||||
AddEventHandler("md-drugs:client:makeredxtctriple", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeredxtcquad")
|
||||
AddEventHandler("md-drugs:client:makeredxtcquad", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
--------------------------------------------------------------- making orange unstamped
|
||||
RegisterNetEvent("md-drugs:client:makeorangextcsingle")
|
||||
AddEventHandler("md-drugs:client:makeorangextcsingle", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 4, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeorangextcdual")
|
||||
AddEventHandler("md-drugs:client:makeorangextcdual", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeorangextctriple")
|
||||
AddEventHandler("md-drugs:client:makeorangextctriple", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeorangextcquad")
|
||||
AddEventHandler("md-drugs:client:makeorangextcquad", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
--------------------------------------- blue unstamped
|
||||
RegisterNetEvent("md-drugs:client:makebluextcsingle")
|
||||
AddEventHandler("md-drugs:client:makebluextcsingle", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 4, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makebluextcdual")
|
||||
AddEventHandler("md-drugs:client:makebluextcdual", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makebluextctriple")
|
||||
AddEventHandler("md-drugs:client:makebluextctriple", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makebluextcquad")
|
||||
AddEventHandler("md-drugs:client:makebluextcquad", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
------------------------------------------------------------------ Stamping
|
||||
RegisterNetEvent("md-drugs:client:stampwhite")
|
||||
AddEventHandler("md-drugs:client:stampwhite", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:stampred")
|
||||
AddEventHandler("md-drugs:client:stampred", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:stamporange")
|
||||
AddEventHandler("md-drugs:client:stamporange", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:stampblue")
|
||||
AddEventHandler("md-drugs:client:stampblue", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
QBCore.Functions.Notify("Its a circle. It Aint Hard", "error")
|
||||
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles, MS
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getsinglepress")
|
||||
AddEventHandler("md-drugs:client:getsinglepress", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
|
||||
end)
|
||||
end)
|
||||
RegisterNetEvent("md-drugs:client:exchangepresses")
|
||||
AddEventHandler("md-drugs:client:exchangepresses", function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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:upgradepress")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
|
||||
end)
|
||||
end)
|
||||
RegisterNetEvent("md-drugs:client:buypress")
|
||||
AddEventHandler("md-drugs:client:buypress", function()
|
||||
exports['qb-menu']:openMenu({
|
||||
{
|
||||
header = 'Exchange Presses',
|
||||
icon = 'fas fa-code',
|
||||
isMenuHeader = true, -- Set to true to make a nonclickable title
|
||||
},
|
||||
{
|
||||
header = 'Single Press',
|
||||
txt = 'Buy a single press for 20k',
|
||||
icon = 'fas fa-code-merge',
|
||||
params = {
|
||||
event = 'md-drugs:client:getsinglepress',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
header = 'Exchange Single For Dual',
|
||||
txt = '20 of each unstamped single stack pill and your single press ',
|
||||
icon = 'fas fa-code-merge',
|
||||
params = {
|
||||
event = 'md-drugs:client:exchangepresses',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
header = 'Exchange Dual For Triple',
|
||||
txt = '50 of each unstamped dual stack pill and your dual press ',
|
||||
icon = 'fas fa-code-merge',
|
||||
params = {
|
||||
event = 'md-drugs:client:exchangepresses',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
header = 'Exchange Triple For Quad',
|
||||
txt = '150 of each unstamped Triple stack pill and your triple press ',
|
||||
icon = 'fas fa-code-merge',
|
||||
params = {
|
||||
event = 'md-drugs:client:exchangepresses',
|
||||
args = {
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
||||
|
||||
@@ -0,0 +1,628 @@
|
||||
Config = {} --Ignore.
|
||||
|
||||
Config.UseTarget = GetConvar('UseTarget', 'false') == 'true'
|
||||
Config.rewardItem = "coca_leaf"
|
||||
Config.rewardItemheroin = "poppyresin"
|
||||
Config.rewardshrooms = "shrooms"
|
||||
Config.rewardMescaline = "cactusbulb"
|
||||
Config.respawnTime = 150 -- Seconds
|
||||
Config.cd = false ---- if you use cd-dispatch
|
||||
Config.ps = false --- if you use ps dispatch
|
||||
Config.gks = true -- true if you use gks, false if you use qb or renewed phone
|
||||
Config.Fuel = "LegacyFuel" -- type the name of script you use i.e. ps-fuel, cdn-fuel, LegacyFuel
|
||||
|
||||
------------- Cocaine locations
|
||||
Config.makecokepowder = vector3(-1365.47, -323.64, 39.41) -- where to take coca leaves to make powder
|
||||
Config.cutcokeone = vector3(-1362.8, -322.13, 39.49) -- cutting stage coke with baking soda
|
||||
Config.bagcoke = vector3(-1364.8, -320.26, 39.51) -- bag stage
|
||||
|
||||
---------------- Crack locations
|
||||
Config.makecrack = vector3(-1366.22, -317.84, 39.55) -- make crack with baking soda with cut coke 1-3
|
||||
Config.bagcrack = vector3(-1367.28, -315.88, 39.59) --- bag crack 1-3 stages
|
||||
|
||||
------------------------- LSD Locations
|
||||
Config.lysergicacid = vector3(-1370.71, -317.3, 39.51) -- get lysergic acid
|
||||
Config.diethylamide = vector3(-1371.71, -316.02, 39.53) -- get diethylamide
|
||||
Config.gettabs = vector3(-1370.77, -314.51, 39.58) -- buy tab paper
|
||||
Config.buylsdlabkit = vector3(-1369.26, -312.04, 39.66)-- buy lab kit
|
||||
|
||||
------------------------- Heroin Locations
|
||||
Config.dryplant = vector3(-1367.05, -311.07, 39.72) -- turn resin into powder
|
||||
Config.buyheroinlabkit = vector3(-1368.19, -309.84, 39.73) -- buy heroin lab kit
|
||||
Config.cutheroinone = vector3(-1368.87, -308.96, 39.75) -- cut heroin stage 1-3 with baking soda
|
||||
Config.fillneedle = vector3(-1373.13, -311.36, 39.63) -- fill needles with heroin
|
||||
|
||||
------------ XTC
|
||||
Config.isosafrole = vector3(892.7, -957.2, 39.28) -- where to steal isosafrole
|
||||
Config.mdp2p = vector3(901.07, -963.11, 39.28) -- where to steal mdp2p
|
||||
Config.rawxtcloc = vector3(898.51, -960.2, 39.28) -- where to combine the 2 ingridents to make raw xtc
|
||||
Config.stamp = vector3(895.98, -963.57, 39.28) -- where to stamp pills
|
||||
Config.buypress = vector3(868.3, -960.72, 26.28)-- Where you buy your presses
|
||||
|
||||
----- mescaline
|
||||
Config.DryOut = vector3(2622.6, 4222.57, 43.6) -- Place to dry out mescaline into usuable drug
|
||||
Config.Badtrip = 20 -- number means % chance to spawn a clone that chases and attacks while on mescaline
|
||||
|
||||
---------- Pharma
|
||||
Config.FillPrescription = Vector3(2432.43, 4253, 45.2) ----------- this is where you want people to take their prescription to get a bottle of pills. They use bottle to get a random amount of prescription pills
|
||||
------- travelling merchant
|
||||
|
||||
Config.Travellingmerchant = { ------------ these are the random locations the merchant can spawn on script start. whatever you want for the merchant is in Config.Items right below
|
||||
vector4(-119.06, -977.19, 304.25, 103.88),
|
||||
vector4(-1522.23, 1475.63, 112.02, 23.57),
|
||||
vector4(-3278.99, 973.33, 5.34, 90.02),
|
||||
}
|
||||
Config.Items = { --- this is the store for the travelling merchant
|
||||
label = "Travelling Merchant",
|
||||
slots = 13,
|
||||
items = {
|
||||
[1] = {name = "tab_paper", price = 50,amount = 50, info = {}, type = "item", slot = 1},
|
||||
[2] = {name = "bakingsoda", price = 25, amount = 50, info = {}, type = "item", slot = 2},
|
||||
[3] = {name = "isosafrole", price = 25, amount = 50, info = {}, type = "item", slot = 3},
|
||||
[4] = {name = "mdp2p", price = 25, amount = 50, info = {}, slot = 4},
|
||||
[5] = {name = "lysergic_acid", price = 25, amount = 50, info = {}, type = "item", slot = 5},
|
||||
[6] = {name = "diethylamide", price = 25, amount = 50, info = {}, type = "item", slot = 6},
|
||||
[7] = {name = "empty_weed_bag", price = 2, amount = 1000, info = {}, type = "item", slot = 7},
|
||||
[8] = {name = "emptyvial", price = 2, amount = 1000, info = {}, type = "item", slot = 8},
|
||||
[9] = {name = "needle", price = 2, amount = 1000, info = {}, type = "item", slot = 9},
|
||||
[10] = {name = "cokeburner", price = 25, amount = 50, info = {}, type = "item", slot = 10},
|
||||
[11] = {name = "crackburner", price = 2, amount = 50, info = {}, type = "item", slot = 11},
|
||||
[12] = {name = "lsdburner", price = 2, amount = 50, info = {}, type = "item", slot = 12},
|
||||
[13] = {name = "heroinburner", price = 2, amount = 50, info = {}, type = "item", slot = 13},
|
||||
}
|
||||
}
|
||||
--------------------------------------- oxy runs
|
||||
---- How oxyruns work. You pay for a truck, you get in it and it gives a route. There is a 20% chance that the car will be "hot" and you have to ditch it. No Routes will spawn if that pops up
|
||||
----- when you get to the drop off point third eye the truck. You will carry a box to the ped. He will give you cash, some oxy and maybe a random item. Rinse and repeat
|
||||
Config.truckspawn = vector4(1449.65, -1486.0, 63.22, 342.58) --- where the truck will spawn when you pay for it
|
||||
Config.Payfortruck = vector3(1437.64, -1491.91, 63.62) --- where you pay for the truck
|
||||
|
||||
Config.oxylocations = { -- These are different locations where a ped spawns.
|
||||
vector4(-2352.32, 266.78, 165.3, 23.46),
|
||||
vector4(-1467.49, 874.01, 183.59, 298.45),
|
||||
vector4(-856.71, 874.26, 202.85, 205.3),
|
||||
vector4(950.58, -128.49, 74.42, 205.3),
|
||||
vector4(1152.71, -328.43, 69.21, 205.3),
|
||||
vector4(112.66, -1955.67, 20.75, 37.94),
|
||||
vector4(-544.4, -1684.8, 19.89, 252.07),
|
||||
vector4(-1185.02, -1805.4, 3.91, 184.83),
|
||||
vector4(-1641.4, -981.99, 7.58, 35.38),
|
||||
vector4(-1827.93, 782.36, 138.29, 219.99),
|
||||
vector4(-320.84, 2818.73, 59.45, 337.22),
|
||||
vector4(474.88, 2609.56, 44.48, 357.0),
|
||||
}
|
||||
|
||||
Config.OxyRandItems = { -- random items you get for completing the mission
|
||||
"oxy",
|
||||
"lockpick",
|
||||
"cryptostick",
|
||||
}
|
||||
Config.PoliceAlertOxy = 90 -- This is a % out of 100 to alert police
|
||||
------------------------ Drug Picking locations.
|
||||
Config.CocaPlant = {
|
||||
[1] = {
|
||||
location = vector3(1474.25, -2643.87, 42.88),
|
||||
heading = 334.49,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[2] = {
|
||||
location = vector3(1472.35, -2649.3, 41.87),
|
||||
heading = 329.56,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[3] = {
|
||||
location = vector3(1475.7, -2652.9, 40.8),
|
||||
heading = 25.16,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[4] = {
|
||||
location = vector3(1481.0, -2654.99, 39.86),
|
||||
heading = 21.52,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[5] = {
|
||||
location = vector3(1480.9, -2660.63, 38.68),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[6] = {
|
||||
location = vector3(1477.18, -2666.53, 38.19),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[7] = {
|
||||
location = vector3(1477.58, -2670.82, 37.73),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[8] = {
|
||||
location = vector3(1476.56, -2675.82, 37.46),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[9] = {
|
||||
location = vector3(1474.8, -2680.19, 37.03),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[10] = {
|
||||
location = vector3(1471.52, -2685.0, 36.82),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[11] = {
|
||||
location = vector3(1462.82, -2676.58, 38.83),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[12] = {
|
||||
location = vector3(1461.31, -2667.74, 39.67),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[13] = {
|
||||
location = vector3(1456.3, -2647.61, 43.39),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
[14] = {
|
||||
location = vector3(1453.65, -2641.56, 45.0),
|
||||
heading = 202.97,
|
||||
model = "prop_plant_01a"
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Config.PoppyPlants = {
|
||||
[1] = {
|
||||
location = vector3(-2251.3, -99.18, 100.11),
|
||||
heading = 334.49,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[2] = {
|
||||
location = vector3(-2249.63, -92.97, 101.8),
|
||||
heading = 329.56,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[3] = {
|
||||
location = vector3(-2245.57, -85.12, 104.5),
|
||||
heading = 25.16,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[4] = {
|
||||
location = vector3(-2240.81, -88.48, 105.88),
|
||||
heading = 21.52,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[5] = {
|
||||
location = vector3(-2240.87, -93.36, 103.88),
|
||||
heading = 334.49,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[6] = {
|
||||
location = vector3(-2236.0, -95.34, 102.55),
|
||||
heading = 329.56,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[7] = {
|
||||
location = vector3(-2240.6, -100.01, 100.49),
|
||||
heading = 25.16,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[8] = {
|
||||
location = vector3(-2246.29, -104.92, 99.27),
|
||||
heading = 21.52,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[9] = {
|
||||
location = vector3(-2243.64, -107.99, 96.71),
|
||||
heading = 334.49,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[10] = {
|
||||
location = vector3(-2254.22, -108.76, 97.25),
|
||||
heading = 329.56,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[11] = {
|
||||
location = vector3(-2247.33, -108.92, 97.70),
|
||||
heading = 25.16,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[12] = {
|
||||
location = vector3(-2250.96, -111.22, 97.50),
|
||||
heading = 21.52,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
[13] = {
|
||||
location = vector3(465.95, -1021.32, 31.78),
|
||||
heading = 21.52,
|
||||
model = "prop_plant_01b"
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
Config.shrooms = {
|
||||
[1] = {
|
||||
location = vector3(2185.14, 5183.81, 57.48),
|
||||
heading = 334.49,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[2] = {
|
||||
location = vector3(2174.45, 5187.85, 57.43),
|
||||
heading = 329.56,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[3] = {
|
||||
location = vector3(2166.22, 5196.56, 58.0),
|
||||
heading = 25.16,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[4] = {
|
||||
location = vector3(2166.82, 5204.83, 58.63),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[5] = {
|
||||
location = vector3(2174.84, 5205.82, 59.19),
|
||||
heading = 334.49,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[6] = {
|
||||
location = vector3(2184.46, 5201.23, 59.2),
|
||||
heading = 329.56,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[7] = {
|
||||
location = vector3(2192.45, 5194.89, 58.86),
|
||||
heading = 25.16,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[8] = {
|
||||
location = vector3(2207.53, 5187.81, 58.95),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[9] = {
|
||||
location = vector3(2213.46, 5191.11, 59.81),
|
||||
heading = 334.49,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[10] = {
|
||||
location = vector3(2218.31, 5180.0, 58.18),
|
||||
heading = 329.56,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[11] = {
|
||||
location = vector3(2212.75, 5172.35, 57.2),
|
||||
heading = 25.16,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[12] = {
|
||||
location = vector3(2208.56, 5167.06, 56.34),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[13] = {
|
||||
location = vector3(2196.9, 5158.59, 54.84),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
|
||||
[14] = {
|
||||
location = vector3(2191.62, 5174.91, 56.68),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[15] = {
|
||||
location = vector3(2190.18, 5182.54, 57.47),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[16] = {
|
||||
location = vector3(2185.85, 5190.49, 58.1),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
[17] = {
|
||||
location = vector3(2179.95, 5194.19, 58.26),
|
||||
heading = 21.52,
|
||||
model = "prop_stoneshroom1"
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
Config.Mescaline = {
|
||||
[1] = {
|
||||
location = vector3(2598.73, 4207.89, 41.02),
|
||||
heading = 334.49,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[2] = {
|
||||
location = vector3(2601.46, 4199.34, 40.62),
|
||||
heading = 329.56,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[3] = {
|
||||
location = vector3(2611.63, 4194.18, 41.18),
|
||||
heading = 25.16,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[4] = {
|
||||
location = vector3(2620.18, 4202.69, 41.5),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[5] = {
|
||||
location = vector3(2624.26, 4211.75, 42.34),
|
||||
heading = 334.49,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[6] = {
|
||||
location = vector3(2635.21, 4207.5, 42.49),
|
||||
heading = 329.56,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[7] = {
|
||||
location = vector3(2644.97, 4193.51, 42.11),
|
||||
heading = 25.16,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[8] = {
|
||||
location = vector3(2654.21, 4195.31, 41.23),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[9] = {
|
||||
location = vector3(2653.32, 4206.49, 41.62),
|
||||
heading = 334.49,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[10] = {
|
||||
location = vector3(2647.45, 4213.94, 42.49),
|
||||
heading = 329.56,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[11] = {
|
||||
location = vector3(2636.3, 4218.49, 43.03),
|
||||
heading = 25.16,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[12] = {
|
||||
location = vector3(2627.37, 4223.2, 42.88),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[13] = {
|
||||
location = vector3(2617.86, 4230.38, 42.63),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
|
||||
[14] = {
|
||||
location = vector3(2609.8, 4222.12, 41.19),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[15] = {
|
||||
location = vector3(2602.96, 4194.05, 41.01),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[16] = {
|
||||
location = vector3(2614.39, 4188.3, 41.68),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
[17] = {
|
||||
location = vector3(2623.82, 4189.97, 41.44),
|
||||
heading = 21.52,
|
||||
model = "prop_cactus_03"
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
---------------------- even though there is a comment out section since this feature was released i get constant questions about it. so ill make a note. if you ask for support saying these peds arent spawning ill delete your ticket.
|
||||
---------------------- This only happens if the wholesale is a setup. They will spawn and shoot you. THEY ONLY SPAWN IF ITS A SETUP
|
||||
Config.Cokepeds = { ------------- this is where the setup peds will spawn to kill you
|
||||
vector3(640.24, 644.18, 129.09),
|
||||
vector3(642.64, 649.71, 128.91),
|
||||
vector3(646.47, 650.65, 128.91),
|
||||
vector3(652.8, 649.88, 128.95),
|
||||
vector3(656.87, 631.85, 128.91),
|
||||
vector3(649.96, 620.57, 128.91),
|
||||
}
|
||||
|
||||
Config.CrackPeds = { ------------- this is where the setup peds will spawn to kill you
|
||||
vector3(1873.25, 299.28, 164.27),
|
||||
vector3(1891.37, 292.12, 163.68),
|
||||
vector3(1886.68, 274.1, 162.96),
|
||||
vector3(1869.67, 265.97, 163.72),
|
||||
vector3(1836.88, 251.09, 162.56),
|
||||
vector3(1853.3, 230.64, 162.09),
|
||||
}
|
||||
|
||||
Config.heroinPeds = { ------------- this is where the setup peds will spawn to kill you
|
||||
vector3(2740.93, 1389.09, 24.5),
|
||||
vector3(2713.38, 1392.31, 24.54),
|
||||
vector3(2703.66, 1355.09, 24.52),
|
||||
vector3(2680.34, 1363.39, 24.52),
|
||||
vector3(2766.1, 1388.15, 24.52),
|
||||
vector3(2764.76, 1364.16, 24.52),
|
||||
}
|
||||
|
||||
Config.lsdPeds = { ------------- this is where the setup peds will spawn to kill you
|
||||
vector3(-1564.49, 838.85, 184.18),
|
||||
vector3(-1545.33, 863.67, 181.44),
|
||||
vector3(-1542.18, 802.71, 184.24),
|
||||
vector3(-1524.31, 820.44, 181.79),
|
||||
}
|
||||
|
||||
----------- qb-drugs update built in here below
|
||||
----------- Everything is now a target and not displaytext. Dealers are no longer just doors, they will spawn peds where you place your dealer. This is a literally qb-drugs with SLIGHT edits. mainly added peds for deliveries, made everything a target
|
||||
------------ and changed the range a ped will walk up to you to be a bigger radius.
|
||||
Config.SuccessChance = 50
|
||||
Config.ScamChance = 25
|
||||
Config.RobberyChance = 25
|
||||
Config.MinimumDrugSalePolice = 0
|
||||
|
||||
Config.DrugsPrice = {
|
||||
["weed_white-widow"] = { min = 15, max = 24 },
|
||||
["weed_og-kush"] = {min = 15, max = 28},
|
||||
["weed_skunk"] = {min = 15, max = 31 },
|
||||
["weed_amnesia"] = {min = 18, max = 34},
|
||||
["weed_purple-haze"] = {min = 18, max = 37},
|
||||
["weed_ak47"] = {min = 18, max = 40},
|
||||
["crack_baggy"] = {min = 18, max = 34},
|
||||
["cokebaggy"] = {min = 18, max = 37},
|
||||
["cokebaggystagetwo"] = {min = 18, max = 40},
|
||||
["cokebaggystagethree"] = {min = 18, max = 40},
|
||||
["heroin_ready"] = {min = 18, max = 40},
|
||||
["heroin_readystagetwo"] = {min = 18, max = 40},
|
||||
["heroin_readystagethree"] = {min = 18, max = 40},
|
||||
["baggedcracked"] = {min = 18, max = 40},
|
||||
["baggedcrackedstagetwo"] = {min = 18, max = 40},
|
||||
["baggedcrackedstagethree"] = {min = 18, max = 40},
|
||||
["white_playboys"] = {min = 18, max = 40},
|
||||
["white_playboys2"] = {min = 18, max = 40},
|
||||
["white_playboys3"] = {min = 18, max = 40},
|
||||
["white_playboys4"] = {min = 18, max = 40},
|
||||
["blue_playboys"] = {min = 18, max = 40},
|
||||
["blue_playboys2"] = {min = 18, max = 40},
|
||||
["blue_playboys3"] = {min = 18, max = 40},
|
||||
["blue_playboys4"] = {min = 18, max = 40},
|
||||
["red_playboys"] = {min = 18, max = 40},
|
||||
["red_playboys2"] = {min = 18, max = 40},
|
||||
["red_playboys3"] = {min = 18, max = 40},
|
||||
["red_playboys4"] = {min = 18, max = 40},
|
||||
["orange_playboys"] = {min = 18, max = 40},
|
||||
["orange_playboys2"] = {min = 18, max = 40},
|
||||
["orange_playboys3"] = {min = 18, max = 40},
|
||||
["orange_playboys4"] = {min = 18, max = 40},
|
||||
["white_aliens"] = {min = 18, max = 40},
|
||||
["white_aliens2"] = {min = 18, max = 40},
|
||||
["white_aliens3"] = {min = 18, max = 40},
|
||||
["white_aliens4"] = {min = 18, max = 40},
|
||||
["blue_aliens"] = {min = 18, max = 40},
|
||||
["blue_aliens2"] = {min = 18, max = 40},
|
||||
["blue_aliens3"] = {min = 18, max = 40},
|
||||
["blue_aliens4"] = {min = 18, max = 40},
|
||||
["red_aliens"] = {min = 18, max = 40},
|
||||
["red_aliens2"] = {min = 18, max = 40},
|
||||
["red_aliens3"] = {min = 18, max = 40},
|
||||
["red_aliens4"] = {min = 18, max = 40},
|
||||
["orange_aliens"] = {min = 18, max = 40},
|
||||
["orange_aliens2"] = {min = 18, max = 40},
|
||||
["orange_aliens3"] = {min = 18, max = 40},
|
||||
["orange_aliens4"] = {min = 18, max = 40},
|
||||
["white_pl"] = {min = 18, max = 40},
|
||||
["white_pl2"] = {min = 18, max = 40},
|
||||
["white_pl3"] = {min = 18, max = 40},
|
||||
["white_pl4"] = {min = 18, max = 40},
|
||||
["blue_pl"] = {min = 18, max = 40},
|
||||
["blue_pl2"] = {min = 18, max = 40},
|
||||
["blue_pl3"] = {min = 18, max = 40},
|
||||
["blue_pl4"] = {min = 18, max = 40},
|
||||
["red_pl"] = {min = 18, max = 40},
|
||||
["red_pl2"] = {min = 18, max = 40},
|
||||
["red_pl3"] = {min = 18, max = 40},
|
||||
["red_pl4"] = {min = 18, max = 40},
|
||||
["orange_pl"] = {min = 18, max = 40},
|
||||
["orange_pl2"] = {min = 18, max = 40},
|
||||
["orange_pl3"] = {min = 18, max = 40},
|
||||
["orange_pl4"] = {min = 18, max = 40},
|
||||
["white_trolls"] = {min = 18, max = 40},
|
||||
["white_trolls2"] = {min = 18, max = 40},
|
||||
["white_trolls3"] = {min = 18, max = 40},
|
||||
["white_trolls4"] = {min = 18, max = 40},
|
||||
["blue_trolls"] = {min = 18, max = 40},
|
||||
["blue_trolls2"] = {min = 18, max = 40},
|
||||
["blue_trolls3"] = {min = 18, max = 40},
|
||||
["blue_trolls4"] = {min = 18, max = 40},
|
||||
["red_trolls"] = {min = 18, max = 40},
|
||||
["red_trolls2"] = {min = 18, max = 40},
|
||||
["red_trolls3"] = {min = 18, max = 40},
|
||||
["red_trolls4"] = {min = 18, max = 40},
|
||||
["orange_trolls"] = {min = 18, max = 40},
|
||||
["orange_trolls2"] = {min = 18, max = 40},
|
||||
["orange_trolls3"] = {min = 18, max = 40},
|
||||
["orange_trolls4"] = {min = 18, max = 40},
|
||||
["white_cats"] = {min = 18, max = 40},
|
||||
["white_cats2"] = {min = 18, max = 40},
|
||||
["white_cats3"] = {min = 18, max = 40},
|
||||
["white_cats4"] = {min = 18, max = 40},
|
||||
["blue_cats"] = {min = 18, max = 40},
|
||||
["blue_cats2"] = {min = 18, max = 40},
|
||||
["blue_cats3"] = {min = 18, max = 40},
|
||||
["blue_cats4"] = {min = 18, max = 40},
|
||||
["red_cats"] = {min = 18, max = 40},
|
||||
["red_cats2"] = {min = 18, max = 40},
|
||||
["red_cats3"] = {min = 18, max = 40},
|
||||
["red_cats4"] = {min = 18, max = 40},
|
||||
["orange_cats"] = {min = 18, max = 40},
|
||||
["orange_cats2"] = {min = 18, max = 40},
|
||||
["orange_cats3"] = {min = 18, max = 40},
|
||||
["orange_cats4"] = {min = 18, max = 40},
|
||||
}
|
||||
|
||||
Debug = false -- true / false - Currently prints the vector3 and label of locations when requesting a delivery
|
||||
NearbyDeliveries = false -- true / false - Do you want deliveries to be within a certain amount of units?
|
||||
DeliveryWithin = 2000 -- int (Default 2000) - How many units do you want the delivery location to be within from the player when making a delivery request?
|
||||
Config.Dealers = {}
|
||||
--UseTarget = GetConvar('UseTarget', 'false') == 'true', -- Use qb-target interactions (don't change this, go to your server.cfg and add setr UseTarget true)
|
||||
PoliceCallChance = 99 --in percentage (if 99, theres the 99% to call the police)
|
||||
|
||||
-- Shop Config
|
||||
Config.Products = {
|
||||
[1] = {name = "weed_white-widow_seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 0},
|
||||
[2] = {name = "weed_skunk_seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 20},
|
||||
[3] = {name = "weed_purple-haze_seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 40},
|
||||
[4] = {name = "weed_og-kush_seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 60},
|
||||
[5] = {name = "weed_amnesia_seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 80},
|
||||
}
|
||||
|
||||
Config.UseMarkedBills = false -- true for marked bills, false for cash
|
||||
Config.DeliveryRepGain = 1 -- amount of rep gained per delivery
|
||||
Config.DeliveryRepLoss = 1 -- amount of rep lost if delivery wrong or late
|
||||
Config.PoliceDeliveryModifier = 2 -- amount to multiply active cop count by
|
||||
Config.WrongAmountFee = 2 -- divide the payout by this value for wrong delivery amount
|
||||
Config.OverdueDeliveryFee = 4 -- divide the payout by this value for overdue delivery
|
||||
|
||||
Config.DeliveryItems = {
|
||||
[1] = {
|
||||
["item"] = "weed_brick",
|
||||
["minrep"] = 0,
|
||||
['payout'] = 1000
|
||||
},
|
||||
[2] = {
|
||||
["item"] = "coke_brick",
|
||||
["minrep"] = 0,
|
||||
['payout'] = 1000
|
||||
},
|
||||
}
|
||||
|
||||
Config.DeliveryLocations = {
|
||||
[1] = {
|
||||
["label"] = "Stripclub",
|
||||
["coords"] = vector3(106.24, -1280.32, 29.24),
|
||||
},
|
||||
[2] = {
|
||||
["label"] = "Vinewood Video",
|
||||
["coords"] = vector3(223.98, 121.53, 102.76),
|
||||
},
|
||||
[3] = {
|
||||
["label"] = "Taxi",
|
||||
["coords"] = vector3(882.67, -160.26, 77.11),
|
||||
},
|
||||
[4] = {
|
||||
["label"] = "Resort",
|
||||
["coords"] = vector3(-1245.63, 376.21, 75.34),
|
||||
},
|
||||
[5] = {
|
||||
["label"] = "Bahama Mamas",
|
||||
["coords"] = vector3(-1383.1, -639.99, 28.67),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
name "mustache-drugs"
|
||||
author "mustache_dom"
|
||||
description "drugs by mustache dom"
|
||||
fx_version "cerulean"
|
||||
game "gta5"
|
||||
|
||||
client_scripts {
|
||||
'client/**.lua',
|
||||
'@PolyZone/client.lua',
|
||||
'@PolyZone/CircleZone.lua',
|
||||
}
|
||||
|
||||
server_scripts {
|
||||
'server/**.lua',
|
||||
'@oxmysql/lib/MySQL.lua',
|
||||
|
||||
}
|
||||
|
||||
shared_scripts {
|
||||
'config.lua',
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
lua54 'yes'
|
||||
|
||||
dependency '/assetpacks'
|
||||
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 515 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,283 @@
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
This was all possible because of creators and devs in Project Sloth, JixelTay, and Samuel's development. I used the globalstates and spawning of props from Samuel's christmas script (I asked permission before release) tebex link here for their stuff: https://fivem.samueldev.shop/
|
||||
Project Sloth has been a pioneer of how the fivem community should be. Helping the community by creating free, easy to install, and fun scripts. Along with allowing the community to publish free scripts.
|
||||
and Jimathy and Tay are the sole reason I learned(ish) how to code. When I started back last year, I had no idea what I was doing and their scripts are easy to read, edit, and see how things actually function.
|
||||
without those scripts I would forget 1000x more commas and not understand how code communicates. If you don't have any of their scripts. you are missing out. tebex: https://jimathy666.tebex.io/
|
||||
|
||||
I am not affiliated with any of these creators above but I have to give a shout out to the community when I can.
|
||||
|
||||
if you have any issues, you can come to my discord and throw a ticket in. I hope i can get it fixed ASAP Rocky
|
||||
https://discord.gg/TwBaVECdGM
|
||||
|
||||
-----------------------------------------------------------------------------------------------CREDITS-------------------------------------------------------------------------------------------------------------------------------------
|
||||
Big Credit to Samuel's Development for the way they did globalstates. That was the main inspiration to the beginning of this script. https://fivem.samueldev.shop/
|
||||
Big Credit to Project Sloth as a team and also the Project Sloth Community. This was only made because of the big library of Free scripts published by them and their community. Buy Them coffee or something. https://www.buymeacoffee.com/projectsloth/c/6825452
|
||||
Big Credit to Bostra. if you have been around you may have seen him post some free scripts and help people. There was definetly times I dm'd him saying what the fuck am I doing and he helped keep me sane. https://discord.gg/5ncbwMNq
|
||||
Big Credit to Feisty. She made all the images that look good. Seriously you can tell which ones I forgot to ask her for.
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Dependacies
|
||||
[1] qbcore
|
||||
[2] lj or qb inventory
|
||||
[3] ps-buffs
|
||||
[4] ps-ui
|
||||
[5] qb-target
|
||||
[6] polyzone
|
||||
[7] RPEmotes
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
How to install like a fuckin bosssssss
|
||||
STEP 1
|
||||
Add items To qb-core - > shared -> items.lua
|
||||
```
|
||||
------------------ md-drugs
|
||||
["coke"] = {["name"] = "coke", ["label"] = "Raw Cocaine", ["weight"] = 1000, ["type"] = "item", ["image"] = "coke.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Processed cocaine"},
|
||||
["coca_leaf"] = {["name"] = "coca_leaf", ["label"] = "Cocaine leaves", ["weight"] = 1500, ["type"] = "item", ["image"] = "coca_leaf.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cocaine leaves that must be processed !"},
|
||||
["poppyresin"] = {["name"] = "poppyresin", ["label"] = "Poppy resin", ["weight"] = 2000, ["type"] = "item", ["image"] = "poppyresin.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "It sticks to your fingers when you handle it."},
|
||||
["heroin"] = {["name"] = "heroin", ["label"] = "Weak Heroin Powder", ["weight"] = 500, ["type"] = "item", ["image"] = "loosecoke.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Really addictive depressant..."},
|
||||
["bakingsoda"] = {["name"] = "bakingsoda", ["label"] = "Baking Soda", ["weight"] = 300, ["type"] = "item", ["image"] = "bakingsoda.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Household Baking Soda!"},
|
||||
['loosecoke'] = {['name'] = 'loosecoke', ['label'] = 'loose coke', ['weight'] = 100, ['type'] = 'item', ['image'] = 'loosecoke.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Paper made specifically for encasing and smoking tobacco or cannabis.'},
|
||||
['loosecokestagetwo'] = {['name'] = 'loosecokestagetwo', ['label'] = 'More Pure Loose Coke', ['weight'] = 100, ['type'] = 'item', ['image'] = 'loosecokestagetwo.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['loosecokestagethree'] = {['name'] = 'loosecokestagethree', ['label'] = 'Purest Loose Coke', ['weight'] = 100, ['type'] = 'item', ['image'] = 'loosecokestagethree.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['cokebaggystagetwo'] = {['name'] = 'cokebaggystagetwo', ['label'] = 'Bag of Good Coke', ['weight'] = 100, ['type'] = 'item', ['image'] = 'cocaine_baggystagetwo.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'To get happy real quick'},
|
||||
['cokebaggystagethree'] = {['name'] = 'cokebaggystagethree', ['label'] = 'Bag of Great Coke', ['weight'] = 100, ['type'] = 'item', ['image'] = 'cocaine_baggystagethree.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'To get happy real quick'},
|
||||
["cokestagetwo"] = {["name"] = "cokestagetwo", ["label"] = "Better Raw Cocaine", ["weight"] = 100, ["type"] = "item", ["image"] = "cokestagetwo.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["expire"] = 90, ["description"] = "Processed cocaine"},
|
||||
["cokestagethree"] = {["name"] = "cokestagethree", ["label"] = "Best Raw Cocaine", ["weight"] = 100, ["type"] = "item", ["image"] = "cokestagethree.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["expire"] = 90, ["description"] = "Processed cocaine"},
|
||||
|
||||
|
||||
----md-lsd
|
||||
['lysergic_acid'] = {['name'] = 'lysergic_acid', ['label'] = 'Lysergic Acid', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lysergic_acid.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['diethylamide'] = {['name'] = 'diethylamide', ['label'] = 'Diethylamide', ['weight'] = 100, ['type'] = 'item', ['image'] = 'diethylamide.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['lsd_one_vial'] = {['name'] = 'lsd_one_vial', ['label'] = 'Weakest LSD Vial', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_one_vial.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['lsd_vial_two'] = {['name'] = 'lsd_vial_two', ['label'] = 'Slightly Better LSD Vial', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_vial_two.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['lsd_vial_three'] = {['name'] = 'lsd_vial_three', ['label'] = 'Good LSD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_vial_three.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['lsd_vial_four'] = {['name'] = 'lsd_vial_four', ['label'] = 'Really Good LSD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_vial_four.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['lsd_vial_five'] = {['name'] = 'lsd_vial_five', ['label'] = 'Amazing LSD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_vial_five.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['lsd_vial_six'] = {['name'] = 'lsd_vial_six', ['label'] = 'Purest LSD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_vial_six.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['tab_paper'] = {['name'] = 'tab_paper', ['label'] = 'Tab Paper', ['weight'] = 100, ['type'] = 'item', ['image'] = 'tab_paper.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['smileyfacesheet'] = {['name'] = 'smileyfacesheet', ['label'] = 'Smiley Face Sheet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'smileysheet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['wildcherrysheet'] = {['name'] = 'wildcherrysheet', ['label'] = 'Wild Cherry Sheet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'wildcherrysheet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['yinyangsheet'] = {['name'] = 'yinyangsheet', ['label'] = 'Yin and Yang Sheet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'yinyangsheet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['pineapplesheet'] = {['name'] = 'pineapplesheet', ['label'] = 'Pineapple Sheet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pineapplesheet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['bartsheet'] = {['name'] = 'bartsheet', ['label'] = 'Bart Simpson Sheet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'bartsheet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['gratefuldeadsheet'] = {['name'] = 'gratefuldeadsheet', ['label'] = 'Grateful Dead Sheet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'gratefuldeadsheet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['smiley_tabs'] = {['name'] = 'smiley_tabs', ['label'] = 'Smiley tabs', ['weight'] = 100, ['type'] = 'item', ['image'] = 'smiley_tabs.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['wildcherry_tabs'] = {['name'] = 'wildcherry_tabs', ['label'] = 'Wild Cherry Tabs', ['weight'] = 100, ['type'] = 'item', ['image'] = 'wildcherry_tabs.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['yinyang_tabs'] = {['name'] = 'yinyang_tabs', ['label'] = 'Yin and Yang Tabs', ['weight'] = 100, ['type'] = 'item', ['image'] = 'yinyang_tabs.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['pineapple_tabs'] = {['name'] = 'pineapple_tabs', ['label'] = 'Pineapple Tabs', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pineapple_tabs.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['bart_tabs'] = {['name'] = 'bart_tabs', ['label'] = 'Bart Simpson Tabs', ['weight'] = 100, ['type'] = 'item', ['image'] = 'bart_tabs.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['gratefuldead_tabs'] = {['name'] = 'gratefuldead_tabs', ['label'] = 'Grateful Dead Tabs', ['weight'] = 100, ['type'] = 'item', ['image'] = 'gratefuldead_tabs.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'DONT USE IF YOU GET SEIZURES'},
|
||||
['lsdlabkit'] = {['name'] = 'lsdlabkit', ['label'] = 'LSD Mixing Table', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'labkit.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['dirtylsdlabkit'] = {['name'] = 'dirtylsdlabkit', ['label'] = 'Dirty LSD Mixing Table', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'labkit_dirty.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
|
||||
|
||||
---- md heroin
|
||||
["heroinstagetwo"] = {["name"] = "heroinstagetwo", ["label"] = "Better Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinpowderstagetwo.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroinstagethree"] = {["name"] = "heroinstagethree", ["label"] = "Best Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinpowderstagethree.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroincut"] = {["name"] = "heroincut", ["label"] = "Cut Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinpowder.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroincutstagetwo"] = {["name"] = "heroincutstagetwo", ["label"] = "Better Cut Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinpowderstagethree.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroincutstagethree"] = {["name"] = "heroincutstagethree", ["label"] = "Best Cut Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinpowderstagetwo.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroinlabkit"] = {["name"] = "heroinlabkit", ["label"] = "Heroin Lab Kit", ["weight"] = 250, ["type"] = "item", ["image"] = "labkit.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["dirtyheroinlabkit"] = {["name"] = "dirtyheroinlabkit", ["label"] = "Dirty heroin Lab Kit", ["weight"] = 250, ["type"] = "item", ["image"] = "labkit_dirty.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroinvial"] = {["name"] = "heroinvial", ["label"] = "Vial Of Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroin.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroinvialstagetwo"] = {["name"] = "heroinvialstagetwo", ["label"] = "Better Vial of Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinstagetwo.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroinvialstagethree"] = {["name"] = "heroinvialstagethree", ["label"] = "Best Vial Of Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroinstagethree.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroin_ready"] = {["name"] = "heroin_ready", ["label"] = "Syringe Of Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroin_ready.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroin_readystagetwo"] = {["name"] = "heroin_readystagetwo", ["label"] = "Syringe Of Better Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroin_readystagetwo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroin_readystagethree"] = {["name"] = "heroin_readystagethree", ["label"] = "Syringe Of Best Heroin", ["weight"] = 250, ["type"] = "item", ["image"] = "heroin_readystagethree.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["emptyvial"] = {["name"] = "emptyvial", ["label"] = "empty vial", ['weight'] = 100, ["type"] = "item", ["image"] = "emptyvial.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ['combinable'] = nil, ["description"] = ""},
|
||||
["needle"] = {["name"] = "needle", ["label"] = "Syringe", ["weight"] = 250, ["type"] = "item", ["image"] = "syringe.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
|
||||
|
||||
---- md crack
|
||||
["crackrock"] = {["name"] = "crackrock", ["label"] = "Crack Rock", ["weight"] = 250, ["type"] = "item", ["image"] = "crackrock1.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["crackrockstagetwo"] = {["name"] = "crackrockstagetwo", ["label"] = "Better Crack Rock", ["weight"] = 250, ["type"] = "item", ["image"] = "crackrock2.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["crackrockstagethree"] = {["name"] = "crackrockstagethree", ["label"] = "Best Crack Rock", ["weight"] = 250, ["type"] = "item", ["image"] = "crackrock3.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcracked"] = {["name"] = "baggedcracked", ["label"] = "Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag1.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcrackedstagetwo"] = {["name"] = "baggedcrackedstagetwo", ["label"] = "Better Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag2.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcrackedstagethree"] = {["name"] = "baggedcrackedstagethree", ["label"] = "Best Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag3.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
---- shrooms
|
||||
["shrooms"] = {["name"] = "shrooms", ["label"] = "Shrooms", ["weight"] = 250, ["type"] = "item", ["image"] = "shrooms.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
|
||||
-- pharma
|
||||
['prescription_pad'] = {['name'] = 'prescription_pad', ['label'] = 'Prescription Pad', ['weight'] = 10, ['type'] = 'item', ['image'] = 'prescriptionpad.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
|
||||
["vicodin_prescription"] = {["name"] = "vicodin_prescription", ["label"] = "Vicodin Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "vicodinprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["adderal_prescription"] = {["name"] = "adderal_prescription", ["label"] = "Adderal Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "adderalprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["morphine_prescription"] = {["name"] = "morphine_prescription", ["label"] = "Morphine Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "morphineprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["xanax_prescription"] = {["name"] = "xanax_prescription", ["label"] = "Xanax Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "xanaxprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
['adderal'] = {['name'] = 'adderal', ['label'] = 'Adderal', ['weight'] = 100, ['type'] = 'item', ['image'] = 'adderal.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['vicodin'] = {['name'] = 'vicodin', ['label'] = 'Vicodin', ['weight'] = 100, ['type'] = 'item', ['image'] = 'vicodin.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['morphine'] = {['name'] = 'morphine', ['label'] = 'Morphine', ['weight'] = 100, ['type'] = 'item', ['image'] = 'morphine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['xanax'] = {['name'] = 'xanax', ['label'] = 'Xanax', ['weight'] = 100, ['type'] = 'item', ['image'] = 'xanax.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['adderalbottle'] = {['name'] = 'adderalbottle', ['label'] = 'Adderal Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['vicodinbottle'] = {['name'] = 'vicodinbottle', ['label'] = 'Vicodin Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['morphinebottle'] = {['name'] = 'morphinebottle', ['label'] = 'Morphine Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['xanaxbottle'] = {['name'] = 'xanaxbottle', ['label'] = 'Xanax Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
---------------- XTC
|
||||
['isosafrole'] = {['name'] = 'isosafrole', ['label'] = 'isosafrole', ['weight'] = 100, ['type'] = 'item', ['image'] = 'isosafrole.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['mdp2p'] = {['name'] = 'mdp2p', ['label'] = 'mdp2p', ['weight'] = 100, ['type'] = 'item', ['image'] = 'mdp2p.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
["raw_xtc"] = {["name"] = "raw_xtc", ["label"] = "Raw XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "raw_xtc.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["singlepress"] = {["name"] = "singlepress", ["label"] = "Single Pill Press", ['weight'] = 100, ["type"] = "item", ["image"] = "pillpress.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_xtc"] = {["name"] = "white_xtc", ["label"] = "Single Stack White XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedwhite.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_xtc2"] = {["name"] = "white_xtc2", ["label"] = "Dual Stack White XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedwhite.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_xtc3"] = {["name"] = "white_xtc3", ["label"] = "Triple Stack White XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedwhite.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_xtc4"] = {["name"] = "white_xtc4", ["label"] = "Quad Stack White XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedwhite.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_xtc"] = {["name"] = "red_xtc", ["label"] = "Single Stack Red XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedred.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_xtc2"] = {["name"] = "red_xtc2", ["label"] = "Dual Stack Red XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedred.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_xtc3"] = {["name"] = "red_xtc3", ["label"] = "Triple Stack Red XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedred.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_xtc4"] = {["name"] = "red_xtc4", ["label"] = "Quad Stack Red XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedred.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_xtc"] = {["name"] = "orange_xtc", ["label"] = "Single Stack Orange XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedorange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_xtc2"] = {["name"] = "orange_xtc2", ["label"] = "Dual Stack Orange XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedorange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_xtc3"] = {["name"] = "orange_xtc3", ["label"] = "Triple Stack Orange XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedorange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_xtc4"] = {["name"] = "orange_xtc4", ["label"] = "Quad Stack Orange XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedorange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_xtc"] = {["name"] = "blue_xtc", ["label"] = "Single Stack Blue XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedblue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_xtc2"] = {["name"] = "blue_xtc2", ["label"] = "Dual Stack Blue XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedblue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_xtc3"] = {["name"] = "blue_xtc3", ["label"] = "Triple Stack Blue XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedblue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_xtc4"] = {["name"] = "blue_xtc4", ["label"] = "Quad Stack Blue XTC", ['weight'] = 100, ["type"] = "item", ["image"] = "unstampedblue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_playboys"] = {["name"] = "white_playboys", ["label"] = "Single Stack White Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_playboys2"] = {["name"] = "white_playboys2", ["label"] = "Dual Stack White Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_playboys3"] = {["name"] = "white_playboys3", ["label"] = "Triple Stack White Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_playboys4"] = {["name"] = "white_playboys4", ["label"] = "Quad Stack White Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_playboys"] = {["name"] = "blue_playboys", ["label"] = "Single Stack blue Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_playboys2"] = {["name"] = "blue_playboys2", ["label"] = "Dual Stack blue Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_playboys3"] = {["name"] = "blue_playboys3", ["label"] = "Triple Stack blue Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_playboys4"] = {["name"] = "blue_playboys4", ["label"] = "Quad Stack blue Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_playboys"] = {["name"] = "red_playboys", ["label"] = "Single Stack red Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_playboys2"] = {["name"] = "red_playboys2", ["label"] = "Dual Stack red Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_playboys3"] = {["name"] = "red_playboys3", ["label"] = "Triple Stack red Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_playboys4"] = {["name"] = "red_playboys4", ["label"] = "Quad Stack red Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_playboys"] = {["name"] = "orange_playboys", ["label"] = "Single Stack orange Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_playboys2"] = {["name"] = "orange_playboys2", ["label"] = "Dual Stack orange Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_playboys3"] = {["name"] = "orange_playboys3", ["label"] = "Triple Stack orange Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_playboys4"] = {["name"] = "orange_playboys4", ["label"] = "Quad Stack orange Playboys", ['weight'] = 100, ["type"] = "item", ["image"] = "playboy_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_aliens"] = {["name"] = "white_aliens", ["label"] = "Single Stack White aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_aliens2"] = {["name"] = "white_aliens2", ["label"] = "Dual Stack White aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_aliens3"] = {["name"] = "white_aliens3", ["label"] = "Triple Stack White aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_aliens4"] = {["name"] = "white_aliens4", ["label"] = "Quad Stack White aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_aliens"] = {["name"] = "blue_aliens", ["label"] = "Single Stack blue aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_aliens2"] = {["name"] = "blue_aliens2", ["label"] = "Dual Stack blue aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_aliens3"] = {["name"] = "blue_aliens3", ["label"] = "Triple Stack blue aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_aliens4"] = {["name"] = "blue_aliens4", ["label"] = "Quad Stack blue aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_aliens"] = {["name"] = "red_aliens", ["label"] = "Single Stack red aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_aliens2"] = {["name"] = "red_aliens2", ["label"] = "Dual Stack red aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_aliens3"] = {["name"] = "red_aliens3", ["label"] = "Triple Stack red aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_aliens4"] = {["name"] = "red_aliens4", ["label"] = "Quad Stack red aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_aliens"] = {["name"] = "orange_aliens", ["label"] = "Single Stack orange aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_aliens2"] = {["name"] = "orange_aliens2", ["label"] = "Dual Stack orange aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_aliens3"] = {["name"] = "orange_aliens3", ["label"] = "Triple Stack orange aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_aliens4"] = {["name"] = "orange_aliens4", ["label"] = "Quad Stack orange aliens", ['weight'] = 100, ["type"] = "item", ["image"] = "alien_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_pl"] = {["name"] = "white_pl", ["label"] = "Single Stack White pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_pl2"] = {["name"] = "white_pl2", ["label"] = "Dual Stack White pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_pl3"] = {["name"] = "white_pl3", ["label"] = "Triple Stack White pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_pl4"] = {["name"] = "white_pl4", ["label"] = "Quad Stack White pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_pl"] = {["name"] = "blue_pl", ["label"] = "Single Stack blue pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_pl2"] = {["name"] = "blue_pl2", ["label"] = "Dual Stack blue pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_pl3"] = {["name"] = "blue_pl3", ["label"] = "Triple Stack blue pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_pl4"] = {["name"] = "blue_pl4", ["label"] = "Quad Stack blue pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_pl"] = {["name"] = "red_pl", ["label"] = "Single Stack red pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_pl2"] = {["name"] = "red_pl2", ["label"] = "Dual Stack red pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_pl3"] = {["name"] = "red_pl3", ["label"] = "Triple Stack red pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_pl4"] = {["name"] = "red_pl4", ["label"] = "Quad Stack red pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_pl"] = {["name"] = "orange_pl", ["label"] = "Single Stack orange pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_pl2"] = {["name"] = "orange_pl2", ["label"] = "Dual Stack orange pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_pl3"] = {["name"] = "orange_pl3", ["label"] = "Triple Stack orange pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_pl4"] = {["name"] = "orange_pl4", ["label"] = "Quad Stack orange pl", ['weight'] = 100, ["type"] = "item", ["image"] = "PL_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_trolls"] = {["name"] = "white_trolls", ["label"] = "Single Stack White trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_trolls2"] = {["name"] = "white_trolls2", ["label"] = "Dual Stack White trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_trolls3"] = {["name"] = "white_trolls3", ["label"] = "Tritrollse Stack White trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_trolls4"] = {["name"] = "white_trolls4", ["label"] = "Quad Stack White trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_trolls"] = {["name"] = "blue_trolls", ["label"] = "Single Stack blue trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_trolls2"] = {["name"] = "blue_trolls2", ["label"] = "Dual Stack blue trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_trolls3"] = {["name"] = "blue_trolls3", ["label"] = "Tritrollse Stack blue trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_trolls4"] = {["name"] = "blue_trolls4", ["label"] = "Quad Stack blue trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_trolls"] = {["name"] = "red_trolls", ["label"] = "Single Stack red trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_trolls2"] = {["name"] = "red_trolls2", ["label"] = "Dual Stack red trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_trolls3"] = {["name"] = "red_trolls3", ["label"] = "Tritrollse Stack red trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_trolls4"] = {["name"] = "red_trolls4", ["label"] = "Quad Stack red trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_trolls"] = {["name"] = "orange_trolls", ["label"] = "Single Stack orange trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_trolls2"] = {["name"] = "orange_trolls2", ["label"] = "Dual Stack orange trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_trolls3"] = {["name"] = "orange_trolls3", ["label"] = "Tritrollse Stack orange trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_trolls4"] = {["name"] = "orange_trolls4", ["label"] = "Quad Stack orange trolls", ['weight'] = 100, ["type"] = "item", ["image"] = "troll_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_cats"] = {["name"] = "white_cats", ["label"] = "Single Stack White cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_cats2"] = {["name"] = "white_cats2", ["label"] = "Dual Stack White cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_cats3"] = {["name"] = "white_cats3", ["label"] = "Tricatse Stack White cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["white_cats4"] = {["name"] = "white_cats4", ["label"] = "Quad Stack White cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_white.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_cats"] = {["name"] = "blue_cats", ["label"] = "Single Stack blue cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_cats2"] = {["name"] = "blue_cats2", ["label"] = "Dual Stack blue cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_cats3"] = {["name"] = "blue_cats3", ["label"] = "Tricatse Stack blue cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blue_cats4"] = {["name"] = "blue_cats4", ["label"] = "Quad Stack blue cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_blue.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_cats"] = {["name"] = "red_cats", ["label"] = "Single Stack red cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_cats2"] = {["name"] = "red_cats2", ["label"] = "Dual Stack red cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_cats3"] = {["name"] = "red_cats3", ["label"] = "Tricatse Stack red cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["red_cats4"] = {["name"] = "red_cats4", ["label"] = "Quad Stack red cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_red.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_cats"] = {["name"] = "orange_cats", ["label"] = "Single Stack orange cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_cats2"] = {["name"] = "orange_cats2", ["label"] = "Dual Stack orange cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_cats3"] = {["name"] = "orange_cats3", ["label"] = "Tricatse Stack orange cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["orange_cats4"] = {["name"] = "orange_cats4", ["label"] = "Quad Stack orange cats", ['weight'] = 100, ["type"] = "item", ["image"] = "kitty_orange.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dualpress"] = {["name"] = "dualpress", ["label"] = "Dual Pill Press", ['weight'] = 100, ["type"] = "item", ["image"] = "pillpress.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["triplepress"] = {["name"] = "triplepress", ["label"] = "Triple Pill Press", ['weight'] = 100, ["type"] = "item", ["image"] = "pillpress.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["quadpress"] = {["name"] = "quadpress", ["label"] = "Quad Pill Press", ['weight'] = 100, ["type"] = "item", ["image"] = "pillpress.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["spores"] = {["name"] = "spores", ["label"] = "spores", ['weight'] = 100, ["type"] = "item", ["image"] = "shrooms.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cokeburner"] = {["name"] = "cokeburner", ["label"] = "Nokia Burner", ['weight'] = 100, ["type"] = "item", ["image"] = "cokeburner.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["crackburner"] = {["name"] = "crackburner", ["label"] = "Juke Burner", ['weight'] = 100, ["type"] = "item", ["image"] = "crackburner.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["heroinburner"] = {["name"] = "heroinburner", ["label"] = "Razr Burner", ['weight'] = 100, ["type"] = "item", ["image"] = "heroinburner.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["lsdburner"] = {["name"] = "lsdburner", ["label"] = "SideKick Burner", ['weight'] = 100, ["type"] = "item", ["image"] = "lsdburner.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cactusbulb"] = {["name"] = "cactusbulb", ["label"] = "Cactus Bulb", ['weight'] = 100, ["type"] = "item", ["image"] = "cactusbulb.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["driedmescaline"] = {["name"] = "driedmescaline", ["label"] = "Mescaline", ['weight'] = 100, ["type"] = "item", ["image"] = "driedmescaline.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
```
|
||||
STEP 2
|
||||
Add Images from HTML folder to your inventory script images location
|
||||
|
||||
step 3
|
||||
delete cornerselling.lua from qb-drugs in the client and the server file
|
||||
|
||||
Step 4
|
||||
INSIDE OF THE CONFIG change all the locations for everything. All locations have been changed to make a preview video easier and with how big of a script this is, Im not going to config it for every city. Its simple vec3 and vec4s. Make your city unique
|
||||
so its not in the same location as every other city.
|
||||
|
||||
step 5
|
||||
in qb-radial menu search for
|
||||
```
|
||||
event = 'qb-drugs:client:cornerselling',
|
||||
```
|
||||
|
||||
and switch it to this
|
||||
|
||||
```
|
||||
event = 'md-drugs:client:cornerselling',
|
||||
```
|
||||
step 6
|
||||
in qb-adminmenu look for
|
||||
```
|
||||
QBCore.Functions.CreateCallback('test:getdealers', function(_, cb)
|
||||
cb(exports['qb-drugs']:GetDealers())
|
||||
end)
|
||||
```
|
||||
in the server.lua and change it to
|
||||
|
||||
```
|
||||
QBCore.Functions.CreateCallback('test:getdealers', function(_, cb)
|
||||
cb(exports['md-drugs']:GetDealers())
|
||||
end)
|
||||
```
|
||||
|
||||
Step 7
|
||||
in Cornerselling.lua line 30 and line 148 of deliveries.lua on the client side for both place your Police Alert inside that function.
|
||||
for example something like ps-dispatch will look like this
|
||||
```
|
||||
local function PoliceCall()
|
||||
local currentPos = GetEntityCoords(PlayerPedId())
|
||||
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 = "Oxy Runs",
|
||||
job = {"LEO", "police"} -- has to match the recipientList in sv_dispatchcodes.lua
|
||||
})
|
||||
end
|
||||
```
|
||||
@@ -0,0 +1,146 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
GlobalState.CocaPlant = Config.CocaPlant
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(Config.CocaPlant) do
|
||||
v.taken = false
|
||||
end
|
||||
end)
|
||||
|
||||
function CaneCooldown(loc)
|
||||
CreateThread(function()
|
||||
Wait(Config.respawnTime * 1000)
|
||||
Config.CocaPlant[loc].taken = false
|
||||
GlobalState.CocaPlant = Config.CocaPlant
|
||||
Wait(1000)
|
||||
TriggerClientEvent('coke:respawnCane', -1, loc)
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterNetEvent("coke:pickupCane")
|
||||
AddEventHandler("coke:pickupCane", function(loc)
|
||||
if not Config.CocaPlant[loc].taken then
|
||||
Config.CocaPlant[loc].taken = true
|
||||
GlobalState.CocaPlant = Config.CocaPlant
|
||||
TriggerClientEvent("coke:removeCane", -1, loc)
|
||||
CaneCooldown(loc)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
Player.Functions.AddItem(Config.rewardItem, 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[Config.rewardItem], "add")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makepowder', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local randomchance = math.random(1,100)
|
||||
|
||||
if randomchance <= 80 then
|
||||
if Player.Functions.RemoveItem("coca_leaf", 1) then
|
||||
Player.Functions.AddItem("coke", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['coke'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['coca_leaf'], "remove", 1)
|
||||
end
|
||||
elseif randomchance >= 81 and randomchance <= 95 then
|
||||
if Player.Functions.RemoveItem("coca_leaf", 1) then
|
||||
Player.Functions.AddItem("cokestagetwo", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokestagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['coca_leaf'], "remove", 1)
|
||||
end
|
||||
else
|
||||
if Player.Functions.RemoveItem("coca_leaf", 1) then
|
||||
Player.Functions.AddItem("cokestagethree", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokestagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['coca_leaf'], "remove", 1)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:cutcokeone', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('coke', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1 ) then
|
||||
if Player.Functions.AddItem('loosecoke', 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you make some cut coke", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['coke'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got baking soda", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('cokestagetwo', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1 ) then
|
||||
if Player.Functions.AddItem('loosecokestagetwo', 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you make some cut coke", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecokestagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokestagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got baking soda", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('cokestagethree', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1 ) then
|
||||
if Player.Functions.AddItem('loosecokestagethree', 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you make some cut coke", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecokestagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokestagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got baking soda", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:bagcoke', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local chance = math.random(1,3)
|
||||
if Player.Functions.RemoveItem('loosecoke', 1 ) then
|
||||
if Player.Functions.RemoveItem('empty_weed_bag', 1) then
|
||||
if Player.Functions.AddItem('cokebaggy', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokebaggy'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got bags", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('loosecokestagetwo', 1 ) then
|
||||
if Player.Functions.RemoveItem('empty_weed_bag', 1) then
|
||||
if Player.Functions.AddItem('cokebaggystagetwo', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokebaggystagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecokestagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got bags", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('loosecokestagethree', 1 ) then
|
||||
if Player.Functions.RemoveItem('empty_weed_bag', 1) then
|
||||
if Player.Functions.AddItem('cokebaggystagethree', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokebaggystagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecokestagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got bags", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,13 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local drugs = { "cokebaggystagetwo", "cokebaggystagethree", "heroin_ready", "heroin_readystagetwo", "heroin_readystagethree", "baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree", "white_playboys", "white_playboys2", "white_playboys3", "white_playboys4","blue_playboys", "blue_playboys2", "blue_playboys3", "blue_playboys4", "red_playboys", "red_playboys2", "red_playboys3", "red_playboys4", "orange_playboys", "orange_playboy2s", "orange_playboys3", "orange_playboys4", "white_aliens", "white_aliens2", "white_aliens3", "white_aliens4", "blue_aliens", "blue_aliens2", "blue_aliens3", "blue_aliens4", "red_aliens", "red_aliens3", "red_aliens2", "red_aliens4", "orange_aliens", "orange_aliens2", "orange_aliens3", "orange_aliens4", "white_pl", "white_pl2", "white_pl3", "white_pl4","blue_pl", "blue_pl2", "blue_pl3", "blue_pl4", "red_pl", "red_pl2", "red_pl3", "red_pl4", "orange_pl", "orange_pl2", "orange_pl3", "orange_pl4", "white_trolls", "white_trolls2", "white_trolls3", "white_trolls4","blue_trolls", "blue_trolls2", "blue_trolls3", "blue_trolls4", "red_trolls", "red_trolls2", "red_trolls3", "red_trolls4", "orange_trolls", "orange_trolls2", "orange_trolls3", "orange_trolls4", "white_cats2", "white_cats3", "white_cats4", "white_cats","blue_cats", "blue_cats3", "blue_cats2", "blue_cats4", "red_cats", "red_cats2", "red_cats3", "red_cats4", "orange_cats", "orange_cats2", "orange_cats3", "orange_cats4" }
|
||||
|
||||
for k, v in pairs (drugs) do QBCore.Functions.CreateUseableItem(v, function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if TriggerClientEvent("md-drugs:client:consumedrugs", source, item.name) then
|
||||
Player.Functions.RemoveItem(item.name, 1)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local StolenDrugs = {}
|
||||
|
||||
local function getAvailableDrugs(source)
|
||||
local AvailableDrugs = {}
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if not Player then return nil end
|
||||
|
||||
for k in pairs(Config.DrugsPrice) do
|
||||
local item = Player.Functions.GetItemByName(k)
|
||||
|
||||
if item then
|
||||
AvailableDrugs[#AvailableDrugs + 1] = {
|
||||
item = item.name,
|
||||
amount = item.amount,
|
||||
label = QBCore.Shared.Items[item.name]["label"]
|
||||
}
|
||||
end
|
||||
end
|
||||
return table.type(AvailableDrugs) ~= "empty" and AvailableDrugs or nil
|
||||
end
|
||||
|
||||
QBCore.Functions.CreateCallback('md-drugs:server:cornerselling:getAvailableDrugs', function(source, cb)
|
||||
cb(getAvailableDrugs(source))
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:server:giveStealItems', function(drugType, amount)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if not Player or StolenDrugs == {} then return end
|
||||
|
||||
for k,v in pairs(StolenDrugs) do
|
||||
if drugType == v.item and amount == v.amount then
|
||||
Player.Functions.AddItem(drugType, amount)
|
||||
table.remove(StolenDrugs, k)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:server:sellCornerDrugs', function(drugType, amount, price)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local availableDrugs = getAvailableDrugs(src)
|
||||
|
||||
if not availableDrugs or not Player then return end
|
||||
|
||||
local item = availableDrugs[drugType].item
|
||||
|
||||
local hasItem = Player.Functions.GetItemByName(item)
|
||||
if hasItem.amount >= amount then
|
||||
TriggerClientEvent('QBCore:Notify',"sold", 'success')
|
||||
Player.Functions.RemoveItem(item, amount)
|
||||
Player.Functions.AddMoney('cash', price, "sold-cornerdrugs")
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "remove")
|
||||
TriggerClientEvent('md-drugs:client:refreshAvailableDrugs', src, getAvailableDrugs(src))
|
||||
else
|
||||
TriggerClientEvent('md-drugs:client:cornerselling', src)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:server:robCornerDrugs', function(drugType, amount)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local availableDrugs = getAvailableDrugs(src)
|
||||
|
||||
if not availableDrugs or not Player then return end
|
||||
|
||||
local item = availableDrugs[drugType].item
|
||||
|
||||
Player.Functions.RemoveItem(item, amount)
|
||||
table.insert(StolenDrugs, {item = item, amount = amount})
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "remove")
|
||||
TriggerClientEvent('md-drugs:client:refreshAvailableDrugs', src, getAvailableDrugs(src))
|
||||
end)
|
||||
@@ -0,0 +1,106 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makecrackone', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('loosecoke', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1) then
|
||||
if Player.Functions.AddItem('crackrock', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got that soda", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('loosecokestagetwo', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1) then
|
||||
if Player.Functions.AddItem('crackrockstagetwo', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrockstagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecokestagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got that soda", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('loosecokestagethree', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1) then
|
||||
if Player.Functions.AddItem('crackrockstagethree', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrockstagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecokestagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got that soda", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:bagcrack', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(1,100)
|
||||
if Player.Functions.RemoveItem('crackrock', 1 ) then
|
||||
if Player.Functions.RemoveItem('empty_weed_bag', 1) then
|
||||
if luck <= 10 then
|
||||
Player.Functions.AddItem('baggedcracked', 4)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcracked'], "add", 4)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
else
|
||||
Player.Functions.AddItem('baggedcracked', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcracked'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('crackrockstagetwo', 1 ) then
|
||||
if Player.Functions.RemoveItem('empty_weed_bag', 1) then
|
||||
if luck <= 10 then
|
||||
Player.Functions.AddItem('baggedcrackedstagetwo', 4)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcrackedstagetwo'], "add", 4)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrockstagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
else Player.Functions.AddItem('baggedcrackedstagetwo', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcrackedstagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrockstagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('crackrockstagethree', 1 ) then
|
||||
if Player.Functions.RemoveItem('empty_weed_bag', 1) then
|
||||
if luck <= 10 then
|
||||
Player.Functions.AddItem('baggedcrackedstagethree', 4)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcrackedstagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrockstagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
else
|
||||
Player.Functions.AddItem('baggedcrackedstagethree', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcrackedstagethree'], "add", 4)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrockstagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['empty_weed_bag'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "nice crack!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,230 @@
|
||||
QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
-- Functions
|
||||
exports('GetDealers', function()
|
||||
return Config.Dealers
|
||||
end)
|
||||
|
||||
-- Callbacks
|
||||
QBCore.Functions.CreateCallback('md-drugs:server:RequestConfig', function(_, cb)
|
||||
cb(Config.Dealers)
|
||||
end)
|
||||
|
||||
-- Events
|
||||
RegisterNetEvent('md-drugs:server:updateDealerItems', function(itemData, amount, dealer)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if not Player then return end
|
||||
|
||||
if Config.Dealers[dealer]["products"][itemData.slot].amount - 1 >= 0 then
|
||||
Config.Dealers[dealer]["products"][itemData.slot].amount = Config.Dealers[dealer]["products"][itemData.slot].amount - amount
|
||||
TriggerClientEvent('md-drugs:client:setDealerItems', -1, itemData, amount, dealer)
|
||||
else
|
||||
Player.Functions.RemoveItem(itemData.name, amount)
|
||||
Player.Functions.AddMoney('cash', amount * Config.Dealers[dealer]["products"][itemData.slot].price)
|
||||
TriggerClientEvent("QBCore:Notify", src, "none Left", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:server:giveDeliveryItems', function(deliveryData)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local item = Config.DeliveryItems[deliveryData.item].item
|
||||
|
||||
if Player.Functions.AddItem(item, deliveryData.amount) then
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "add")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:server:successDelivery', function(deliveryData, inTime)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local item = Config.DeliveryItems[deliveryData.item].item
|
||||
local itemAmount = deliveryData.amount
|
||||
local payout = deliveryData.itemData.payout * itemAmount
|
||||
local copsOnline = QBCore.Functions.GetDutyCount('police')
|
||||
local curRep = Player.PlayerData.metadata["dealerrep"]
|
||||
local invItem = Player.Functions.GetItemByName(item)
|
||||
|
||||
|
||||
if inTime then
|
||||
if invItem and invItem.amount >= itemAmount then -- on time correct amount
|
||||
Player.Functions.RemoveItem(item, itemAmount)
|
||||
if copsOnline > 0 then
|
||||
local copModifier = copsOnline * Config.PoliceDeliveryModifier
|
||||
if Config.UseMarkedBills then
|
||||
local info = {worth = math.floor(payout * copModifier)}
|
||||
Player.Functions.AddItem('markedbills', 1, false, info)
|
||||
else
|
||||
Player.Functions.AddMoney('cash', math.floor(payout * copModifier), 'drug-delivery')
|
||||
end
|
||||
else
|
||||
if Config.UseMarkedBills then
|
||||
local info = {worth = payout}
|
||||
Player.Functions.AddItem('markedbills', 1, false, info)
|
||||
else
|
||||
Player.Functions.AddMoney('cash', payout, 'drug-delivery')
|
||||
end
|
||||
end
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "remove")
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Got There In Time!", 'success')
|
||||
SetTimeout(math.random(5000, 10000), function()
|
||||
TriggerClientEvent('md-drugs:client:sendDeliveryMail', src, 'perfect', deliveryData)
|
||||
Player.Functions.SetMetaData('dealerrep', (curRep + Config.DeliveryRepGain))
|
||||
end)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Wheres The Rest Of It", 'error')-- on time incorrect amount
|
||||
if invItem then
|
||||
local newItemAmount = invItem.amount
|
||||
local modifiedPayout = deliveryData.itemData.payout * newItemAmount
|
||||
Player.Functions.RemoveItem(item, newItemAmount)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "remove")
|
||||
Player.Functions.AddMoney('cash', math.floor(modifiedPayout / Config.WrongAmountFee))
|
||||
end
|
||||
SetTimeout(math.random(5000, 10000), function()
|
||||
TriggerClientEvent('md-drugs:client:sendDeliveryMail', src, 'bad', deliveryData)
|
||||
if curRep - 1 > 0 then
|
||||
Player.Functions.SetMetaData('dealerrep', (curRep - Config.DeliveryRepLoss))
|
||||
else
|
||||
Player.Functions.SetMetaData('dealerrep', 0)
|
||||
end
|
||||
end)
|
||||
end
|
||||
else
|
||||
if invItem and invItem.amount >= itemAmount then -- late correct amount
|
||||
TriggerClientEvent('QBCore:Notify', src, "Where Were You Slow Ass", 'error')
|
||||
Player.Functions.RemoveItem(item, itemAmount)
|
||||
Player.Functions.AddMoney('cash', math.floor(payout / Config.OverdueDeliveryFee), "delivery-drugs-too-late")
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "remove")
|
||||
SetTimeout(math.random(5000, 10000), function()
|
||||
TriggerClientEvent('md-drugs:client:sendDeliveryMail', src, 'late', deliveryData)
|
||||
if curRep - 1 > 0 then
|
||||
Player.Functions.SetMetaData('dealerrep', (curRep - Config.DeliveryRepLoss))
|
||||
else
|
||||
Player.Functions.SetMetaData('dealerrep', 0)
|
||||
end
|
||||
end)
|
||||
else
|
||||
if invItem then -- late incorrect amount
|
||||
local newItemAmount = invItem.amount
|
||||
local modifiedPayout = deliveryData.itemData.payout * newItemAmount
|
||||
TriggerClientEvent('QBCore:Notify', src, "Late And Missing Product GZ You Suck", 'error')
|
||||
Player.Functions.RemoveItem(item, itemAmount)
|
||||
Player.Functions.AddMoney('cash', math.floor(modifiedPayout / Config.OverdueDeliveryFee), "delivery-drugs-too-late")
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "remove")
|
||||
SetTimeout(math.random(5000, 10000), function()
|
||||
TriggerClientEvent('md-drugs:client:sendDeliveryMail', src, 'late', deliveryData)
|
||||
if curRep - 1 > 0 then
|
||||
Player.Functions.SetMetaData('dealerrep', (curRep - Config.DeliveryRepLoss))
|
||||
else
|
||||
Player.Functions.SetMetaData('dealerrep', 0)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Commands
|
||||
QBCore.Commands.Add("newdealer", "Place a dealer (Admin Only)", {{ name = "name", help = "Dealer name"}, { name = "min", help = "Minimum Time"}, {name = "max", help = "Maximum Time"}}, true, function(source, args)
|
||||
local ped = GetPlayerPed(source)
|
||||
local coords = GetEntityCoords(ped)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
if not Player then return end
|
||||
local dealerName = args[1]
|
||||
local minTime = tonumber(args[2])
|
||||
local maxTime = tonumber(args[3])
|
||||
local time = json.encode({min = minTime, max = maxTime})
|
||||
local pos = json.encode({x = coords.x, y = coords.y, z = coords.z})
|
||||
local result = MySQL.scalar.await('SELECT name FROM dealers WHERE name = ?', {dealerName})
|
||||
if result then return TriggerClientEvent('QBCore:Notify', source, "Already Exists", "error") end
|
||||
MySQL.insert('INSERT INTO dealers (name, coords, time, createdby) VALUES (?, ?, ?, ?)', {dealerName, pos, time, Player.PlayerData.citizenid}, function()
|
||||
Config.Dealers[dealerName] = {
|
||||
["name"] = dealerName,
|
||||
["coords"] = {
|
||||
["x"] = coords.x,
|
||||
["y"] = coords.y,
|
||||
["z"] = coords.z,
|
||||
},
|
||||
["time"] = {
|
||||
["min"] = minTime,
|
||||
["max"] = maxTime
|
||||
},
|
||||
["products"] = Config.Products
|
||||
}
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, Config.Dealers)
|
||||
end)
|
||||
end, "admin")
|
||||
|
||||
QBCore.Commands.Add("deletedealer", "Delete a dealer (Admin Only)", {{
|
||||
name = "name",
|
||||
help = "Dealer Name"
|
||||
}}, true, function(source, args)
|
||||
local dealerName = args[1]
|
||||
local result = MySQL.scalar.await('SELECT * FROM dealers WHERE name = ?', {dealerName})
|
||||
if result then
|
||||
MySQL.query('DELETE FROM dealers WHERE name = ?', {dealerName})
|
||||
Config.Dealers[dealerName] = nil
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, Config.Dealers)
|
||||
TriggerClientEvent('QBCore:Notify', source, "Dealer Deleted" , "success")
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', source, "Who You Tryna Delete", "error")
|
||||
end
|
||||
end, "admin")
|
||||
|
||||
QBCore.Commands.Add("dealers", "View all dealers (Admin Only)", {}, false, function(source, _)
|
||||
local DealersText = ""
|
||||
if Config.Dealers ~= nil and next(Config.Dealers) ~= nil then
|
||||
for _, v in pairs(Config.Dealers) do
|
||||
DealersText = DealersText .. "Name: " .. v["name"] .. "<br>"
|
||||
end
|
||||
TriggerClientEvent('chat:addMessage', source, {
|
||||
template = '<div class="chat-message advert"><div class="chat-message-body"><strong>' .."List Of Dealers " .. '</strong><br><br> ' .. DealersText .. '</div></div>',
|
||||
args = {}
|
||||
})
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', source, "No Dealers", 'error')
|
||||
end
|
||||
end, "admin")
|
||||
|
||||
QBCore.Commands.Add("dealergoto", "Teleport to a dealer (Admin Only)", {{
|
||||
name = "name",
|
||||
help = "Dealer name"
|
||||
}}, true, function(source, args)
|
||||
local DealerName = tostring(args[1])
|
||||
if Config.Dealers[DealerName] then
|
||||
local ped = GetPlayerPed(source)
|
||||
SetEntityCoords(ped, Config.Dealers[DealerName]['coords']['x'], Config.Dealers[DealerName]['coords']['y'], Config.Dealers[DealerName]['coords']['z'])
|
||||
TriggerClientEvent('QBCore:Notify', source, "TelePorted", {dealerName = DealerName}, 'success')
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', source, "Doesnt Exist", 'error')
|
||||
end
|
||||
end, "admin")
|
||||
|
||||
CreateThread(function()
|
||||
Wait(500)
|
||||
local dealers = MySQL.query.await('SELECT * FROM dealers', {})
|
||||
if dealers[1] then
|
||||
for _, v in pairs(dealers) do
|
||||
local coords = json.decode(v.coords)
|
||||
local time = json.decode(v.time)
|
||||
|
||||
Config.Dealers[v.name] = {
|
||||
["name"] = v.name,
|
||||
["coords"] = {
|
||||
["x"] = coords.x,
|
||||
["y"] = coords.y,
|
||||
["z"] = coords.z
|
||||
},
|
||||
["time"] = {
|
||||
["min"] = time.min,
|
||||
["max"] = time.max
|
||||
},
|
||||
["products"] = Config.Products
|
||||
}
|
||||
end
|
||||
end
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, Config.Dealers)
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,264 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.PoppyPlants = Config.PoppyPlants
|
||||
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(Config.PoppyPlants) do
|
||||
v.taken = false
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
function heroinCooldown(loc)
|
||||
CreateThread(function()
|
||||
Wait(Config.respawnTime * 1000)
|
||||
Config.PoppyPlants[loc].taken = false
|
||||
GlobalState.PoppyPlants = Config.PoppyPlants
|
||||
Wait(1000)
|
||||
TriggerClientEvent('heroin:respawnCane', -1, loc)
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('md-drugs:server:removecleaningkitheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem("cleaningkit", 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "Cleaned It Perfectly", "success")
|
||||
TriggerClientEvent("md-drugs:client:deletedirtyheroin", src)
|
||||
TriggerClientEvent("md-drugs:client:resetheroinkit", src)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You cant clean it with spit alone", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent("heroin:pickupCane")
|
||||
AddEventHandler("heroin:pickupCane", function(loc)
|
||||
if not Config.PoppyPlants[loc].taken then
|
||||
Config.PoppyPlants[loc].taken = true
|
||||
GlobalState.PoppyPlants = Config.PoppyPlants
|
||||
TriggerClientEvent("heroin:removeCane", -1, loc)
|
||||
heroinCooldown(loc)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
Player.Functions.AddItem(Config.rewardItemheroin, 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[Config.rewardItemheroin], "add")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:dryplant', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local randomchance = math.random(1,100)
|
||||
|
||||
if randomchance <= 75 then
|
||||
if Player.Functions.RemoveItem("poppyresin", 1) then
|
||||
Player.Functions.AddItem("heroin", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['poppyresin'], "remove", 1)
|
||||
end
|
||||
elseif randomchance >= 76 and randomchance <= 90 then
|
||||
if Player.Functions.RemoveItem("poppyresin", 1) then
|
||||
Player.Functions.AddItem("heroinstagetwo", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokestagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['poppyresin'], "remove", 1)
|
||||
end
|
||||
else
|
||||
if Player.Functions.RemoveItem("poppyresin", 1) then
|
||||
Player.Functions.AddItem("heroinstagethree", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinstagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['poppyresin'], "remove", 1)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:cutheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('heroin', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1 ) then
|
||||
if Player.Functions.AddItem('heroincut',1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you make some cut coke", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincut'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('heroinstagetwo', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1 ) then
|
||||
if Player.Functions.AddItem('heroincutstagetwo', 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you make some cut coke", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincutstagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinstagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('heroinstagethree', 1 ) then
|
||||
if Player.Functions.RemoveItem('bakingsoda', 1 ) then
|
||||
if Player.Functions.AddItem('heroincutstagethree', 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you make some cut coke", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincutstagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinstagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bakingsoda'], "remove", 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getheroinlabkit', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', 10000) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinlabkit'], "add", 1)
|
||||
Player.Functions.AddItem('heroinlabkit', 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getheroinlabkitback', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("heroinlabkit", 1) then
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('heroinlabkit', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent("md-drugs:client:setheroinlabkit", src) then
|
||||
Player.Functions.RemoveItem("heroinlabkit", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:heatliquidheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('heroincut', 1) then
|
||||
if Player.Functions.RemoveItem('emptyvial', 1) then
|
||||
Player.Functions.AddItem('heroinvial', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincut'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['emptyvial'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you made some heroin", "success")
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('heroincutstagetwo', 1) then
|
||||
if Player.Functions.RemoveItem('emptyvial', 1) then
|
||||
Player.Functions.AddItem('heroinvialstagetwo', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincutstagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['emptyvial'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvialstagetwo'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you made some heroin", "success")
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('heroincutstagethree', 1) then
|
||||
if Player.Functions.RemoveItem('emptyvial', 1) then
|
||||
Player.Functions.AddItem('heroinvialstagethree', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincutstagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['emptyvial'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvialstagethree'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you made some heroin", "success")
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:failheatingheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('heroincut', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincut'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you overheated them idiot", "error")
|
||||
elseif Player.Functions.RemoveItem('heroincutstagetwo', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincutstagetwo'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you overheated them idiot", "error")
|
||||
else
|
||||
Player.Functions.RemoveItem('heroincutstagethree', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroincutstagethree'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you overheated them idiot", "error")
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:fillneedle', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('heroinvial', 1 ) then
|
||||
if Player.Functions.RemoveItem('needle', 1) then
|
||||
if Player.Functions.AddItem('heroin_ready', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin_ready'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['needle'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got bags", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you dont have a syringe", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('heroinvialstagetwo', 1 ) then
|
||||
if Player.Functions.RemoveItem('needle', 1) then
|
||||
if Player.Functions.AddItem('heroin_readystagetwo', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin_readystagetwo'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvialstagetwo'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['needle'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got bags", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you dont have a syringe", "error")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('heroinvialstagethree', 1 ) then
|
||||
if Player.Functions.RemoveItem('needle', 1) then
|
||||
if Player.Functions.AddItem('heroin_readystagethree', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin_readystagethree'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvialstagethree'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['needle'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got bags", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you dont have a syringe", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:failheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('heroinvialstagethree', 1 ) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvialstagethree'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem('heroinvialstagetwo', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvialstagetwo'], "remove", 1)
|
||||
else
|
||||
Player.Functions.RemoveItem('heroinvial', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getlysergic', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem('lysergic_acid', 2) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got Lysergic Acid", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lysergic_acid'], "add", 2)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getdiethylamide', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem('diethylamide', 2) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you got diethylamide", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['diethylamide'], "add", 2)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('lsdlabkit', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent("md-drugs:client:setlsdlabkit", src) then
|
||||
Player.Functions.RemoveItem("lsdlabkit", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:removecleaningkit', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem("cleaningkit", 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "Cleaned It Perfectly", "success")
|
||||
TriggerClientEvent("md-drugs:client:resetlsdkit", src)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You cant clean it with spit alone", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getlabkitback', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("lsdlabkit", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsdlabkit'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:heatliquid', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('diethylamide', 1) then
|
||||
if Player.Functions.RemoveItem('lysergic_acid', 1) then
|
||||
Player.Functions.AddItem('lsd_one_vial', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['diethylamide'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lysergic_acid'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_one_vial'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "you made some LSD", "success")
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:failheating', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('diethylamide', Config.diethylamideliquid) then
|
||||
if Player.Functions.RemoveItem('lysergic_acid', Config.lysergicacidliquid) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you overheated them idiot", "error")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['diethylamide'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lysergic_acid'], "remove", 1)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:refinequalityacid', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local randomchance = math.random(1,100)
|
||||
|
||||
if Player.Functions.RemoveItem('lsd_one_vial', 1) then
|
||||
if randomchance <= 60 then
|
||||
Player.Functions.AddItem('lsd_vial_two', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_two'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Made Slightly Better LSD", "Success")
|
||||
elseif randomchance >= 61 and randomchance <= 75 then
|
||||
Player.Functions.AddItem('lsd_vial_three', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_three'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Made Decently Better LSD", "Success")
|
||||
elseif randomchance >= 76 and randomchance <= 85 then
|
||||
Player.Functions.AddItem('lsd_vial_four', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_four'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Made Pretty good LSD", "Success")
|
||||
elseif randomchance >= 86 and randomchance <= 93 then
|
||||
Player.Functions.AddItem('lsd_vial_five', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_five'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Made Damn Good LSD", "Success")
|
||||
else
|
||||
Player.Functions.AddItem('lsd_vial_six', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_six'], "add", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "The Homies Will Be Trippin Balls", "Success")
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:failrefinequality', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local randomchance = math.random(1,100)
|
||||
|
||||
if Player.Functions.RemoveItem('lsd_one_vial', 1) then
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:gettabpaper', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(5000, 20000)
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', amount) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "add", 10)
|
||||
Player.Functions.AddItem('tab_paper', 10)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getlabkit', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = 10000
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', 10000) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsdlabkit'], "add", 1)
|
||||
Player.Functions.AddItem('lsdlabkit', 1)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:maketabpaper', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
|
||||
if Player.Functions.RemoveItem('lsd_one_vial', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_one_vial'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['smileyfacesheet'], "add", 1)
|
||||
Player.Functions.RemoveItem('tab_paper', 1)
|
||||
Player.Functions.AddItem('smileyfacesheet', 1)
|
||||
elseif Player.Functions.RemoveItem('lsd_vial_two', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_two'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['wildcherrysheet'], "add", 1)
|
||||
Player.Functions.RemoveItem('tab_paper', 1)
|
||||
Player.Functions.AddItem('wildcherrysheet', 1)
|
||||
elseif Player.Functions.RemoveItem('lsd_vial_three', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_three'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['yinyangsheet'], "add", 1)
|
||||
Player.Functions.RemoveItem('tab_paper', 1)
|
||||
Player.Functions.AddItem('yinyangsheet', 1)
|
||||
elseif Player.Functions.RemoveItem('lsd_vial_four', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_four'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['pineapplesheet'], "add", 1)
|
||||
Player.Functions.RemoveItem('tab_paper', 1)
|
||||
Player.Functions.AddItem('pineapplesheet', 1)
|
||||
elseif Player.Functions.RemoveItem('lsd_vial_five', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_five'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bartsheet'], "add", 1)
|
||||
Player.Functions.RemoveItem('tab_paper', 1)
|
||||
Player.Functions.AddItem('bartsheet', 1)
|
||||
elseif Player.Functions.RemoveItem('lsd_vial_six', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_vial_six'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['gratefuldeadsheet'], "add", 1)
|
||||
Player.Functions.RemoveItem('tab_paper', 1)
|
||||
Player.Functions.AddItem('gratefuldeadsheet', 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Got The Right Stuff", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('smileyfacesheet', function(source)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,10)
|
||||
|
||||
if Player.Functions.RemoveItem("smileyfacesheet", 1) then
|
||||
Player.Functions.AddItem("Smiley_tabs", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['smileyfacesheet'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['Smiley_tabs'], "add", amount)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('wildcherrysheet', function(source)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,10)
|
||||
|
||||
if Player.Functions.RemoveItem("wildcherrysheet", 1) then
|
||||
Player.Functions.AddItem("wildcherry_tabs", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['wildcherrysheet'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['wildcherry_tabs'], "add", amount)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('yinyangsheet', function(source)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,10)
|
||||
|
||||
if Player.Functions.RemoveItem("yinyangsheet", 1) then
|
||||
Player.Functions.AddItem("yinyang_tabs", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['yinyangsheet'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['yinyang_tabs'], "add", amount)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('pineapplesheet', function(source)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,10)
|
||||
|
||||
if Player.Functions.RemoveItem("pineapplesheet", 1) then
|
||||
Player.Functions.AddItem("pineapple_tabs", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['pineapplesheet'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['pineapple_tabs'], "add", amount)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('bartsheet', function(source)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,10)
|
||||
|
||||
if Player.Functions.RemoveItem("bartsheet", 1) then
|
||||
Player.Functions.AddItem("bart_tabs", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bartsheet'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bart_tabs'], "add", amount)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('gratefuldeadsheet', function(source)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,10)
|
||||
|
||||
if Player.Functions.RemoveItem("gratefuldeadsheet", 1) then
|
||||
Player.Functions.AddItem("gratefuldead_tabs", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['gratefuldeadsheet'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['gratefuldead_tabs'], "add", amount)
|
||||
end
|
||||
end)
|
||||
|
||||
local lsd = { "smiley_tabs", "wildcherry_tabs", "yinyang_tabs", "pineapple_tabs", "bart_tabs", "gratefuldead_tabs"}
|
||||
|
||||
for k, v in pairs (lsd) do QBCore.Functions.CreateUseableItem(v, function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent('md-drugs:client:taketabs', src, item.name) then
|
||||
Player.Functions.RemoveItem(item.name, 1)
|
||||
end
|
||||
end)
|
||||
end
|
||||
@@ -0,0 +1,57 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.Mescaline = Config.Mescaline
|
||||
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(Config.Mescaline) do
|
||||
v.taken = false
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
function MescalineCooldown(loc)
|
||||
CreateThread(function()
|
||||
Wait(Config.respawnTime * 1000)
|
||||
Config.Mescaline[loc].taken = false
|
||||
GlobalState.Mescaline = Config.Mescaline
|
||||
Wait(1000)
|
||||
TriggerClientEvent('Mescaline:respawnCane', -1, loc)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("Mescaline:pickupCane")
|
||||
AddEventHandler("Mescaline:pickupCane", function(loc)
|
||||
if not Config.Mescaline[loc].taken then
|
||||
Config.Mescaline[loc].taken = true
|
||||
GlobalState.Mescaline = Config.Mescaline
|
||||
TriggerClientEvent("Mescaline:removeCane", -1, loc)
|
||||
MescalineCooldown(loc)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
Player.Functions.AddItem(Config.rewardMescaline, 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[Config.rewardItemheroin], "add")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:server:drymescaline")
|
||||
AddEventHandler("md-drugs:server:drymescaline", function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem("cactusbulb", 1) then
|
||||
Player.Functions.AddItem("driedmescaline", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[driedmescaline], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem("driedmescaline", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem("driedmescaline", 1) then
|
||||
TriggerClientEvent("md-drugs:client:takemescaline", src)
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,44 @@
|
||||
QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterServerEvent('md-drugs:server:payfortruck', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', 500 ) or Player.Functions.RemoveMoney('bank', 500 ) then
|
||||
TriggerClientEvent("md-drugs:Client:getoxylocation", src)
|
||||
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:giveoxybox', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local chance = math.random(1,10)
|
||||
local cash = math.random(50,1000)
|
||||
local itemchance = math.random(1,10)
|
||||
local item = Config.OxyRandItems[math.random(1, #Config.OxyRandItems)]
|
||||
local amount = math.random(1,3)
|
||||
if chance <= 2 then
|
||||
TriggerClientEvent('QBCore:Notify', src, "The Car Is Hot Now! Dump it", "error")
|
||||
Player.Functions.AddMoney("cash", cash * 0.5)
|
||||
if itemchance <= 9 then
|
||||
Player.Functions.AddItem(item, amount)
|
||||
Player.Functions.AddItem("oxy", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[item], "add", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items["oxy"], "add", amount)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Get To The Next Location", "success")
|
||||
TriggerClientEvent("md-drugs:client:getoxylocationroute", src)
|
||||
Player.Functions.AddMoney("cash", cash*2)
|
||||
if itemchance <= 9 then
|
||||
Player.Functions.AddItem(item, amount)
|
||||
Player.Functions.AddItem("oxy", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[item], "add", amount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items["oxy"], "add", amount)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:givevicodinprescription', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem('vicodin_prescription', 1 ) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "Dont Forget to give it to them!", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:giveadderalprescription', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem('adderal_prescription', 1 ) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "Dont Forget to give it to them!", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:givemorphineprescription', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem('morphine_prescription', 1 ) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "Dont Forget to give it to them!", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:givexanaxprescription', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem('xanax_prescription', 1 ) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "Dont Forget to give it to them!", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:fillprescription', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem('vicodin_prescription', 1 ) then
|
||||
if Player.Functions.AddItem('vicodinbottle', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['vicodinbottle'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['vicodin_prescription'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "got some pills!", "success")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('adderal_prescription', 1 ) then
|
||||
if Player.Functions.AddItem('adderalbottle', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['adderalbottle'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['adderal_prescription'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "got some pills!", "success")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('morphine_prescription', 1 ) then
|
||||
if Player.Functions.AddItem('morphinebottle', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['vicodinbottle'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['morphine_prescription'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "got some pills!", "success")
|
||||
end
|
||||
elseif Player.Functions.RemoveItem('xanax_prescription', 1 ) then
|
||||
if Player.Functions.AddItem('xanaxbottle', 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['xanaxbottle'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['vicodin_prescription'], "remove", 1)
|
||||
TriggerClientEvent('QBCore:Notify', src, "got some pills!", "success")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem('vicodinbottle', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(10,30)
|
||||
|
||||
if Player.Functions.RemoveItem('vicodinbottle', 1) then
|
||||
Player.Functions.AddItem('vicodin', luck)
|
||||
TriggerClientEvent('QBCore:Notify', src,"You got ".. luck .. "Vicodin!", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['vicodin'], "add", luck)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('adderalbottle', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(10,30)
|
||||
|
||||
if Player.Functions.RemoveItem('adderalbottle', 1) then
|
||||
Player.Functions.AddItem('adderal', luck)
|
||||
TriggerClientEvent('QBCore:Notify', src,"You got ".. luck .. "Adderal!", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['adderal'], "add", luck)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('morphinebottle', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(10,30)
|
||||
|
||||
if Player.Functions.RemoveItem('morphinebottle', 1) then
|
||||
Player.Functions.AddItem('morphine', luck)
|
||||
TriggerClientEvent('QBCore:Notify', src,"You got ".. luck .. "Morphine!", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['morphine'], "add", luck)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('xanaxbottle', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(10,30)
|
||||
|
||||
if Player.Functions.RemoveItem('xanaxbottle', 1) then
|
||||
Player.Functions.AddItem('xanax', luck)
|
||||
TriggerClientEvent('QBCore:Notify', src,"You got ".. luck .. "Xanax!", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['xanax'], "add", luck)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
local pharmadrugs = { "adderal", "vicodin", "xanax", "morphine"}
|
||||
for k, v in pairs (pharmadrugs) do QBCore.Functions.CreateUseableItem(v, function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent('md-drugs:client:takepharma', src, item.name) then
|
||||
Player.Functions.RemoveItem(item.name, 1)
|
||||
|
||||
end
|
||||
end)
|
||||
end
|
||||
@@ -0,0 +1,51 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.shrooms = Config.shrooms
|
||||
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(Config.shrooms) do
|
||||
v.taken = false
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
function shroomsCooldown(loc)
|
||||
CreateThread(function()
|
||||
Wait(Config.respawnTime * 1000)
|
||||
Config.shrooms[loc].taken = false
|
||||
GlobalState.shrooms = Config.shrooms
|
||||
Wait(1000)
|
||||
TriggerClientEvent('shrooms:respawnCane', -1, loc)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
RegisterNetEvent("shrooms:pickupCane")
|
||||
AddEventHandler("shrooms:pickupCane", function(loc)
|
||||
local chance = math.random(1,10)
|
||||
if not Config.shrooms[loc].taken then
|
||||
Config.shrooms[loc].taken = true
|
||||
GlobalState.shrooms = Config.shrooms
|
||||
TriggerClientEvent("shrooms:removeCane", -1, loc)
|
||||
shroomsCooldown(loc)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
Player.Functions.AddItem(Config.rewardshrooms, 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[Config.rewardshrooms], "add")
|
||||
if chance <= 2 then
|
||||
Player.Functions.AddItem("lockpick",1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items["lockpick"], "add")
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('shrooms', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
|
||||
if TriggerClientEvent('md-drugs:client:takeshrooms', src, item.name) then
|
||||
Player.Functions.RemoveItem('shrooms', 1)
|
||||
TriggerClientEvent('QBCore:Notify', src,"You have a good trip!", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem("cokeburner", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if Player.Functions.RemoveItem("cokeburner", 1) then
|
||||
TriggerClientEvent("md-drugs:client:getloccoke", src)
|
||||
TriggerClientEvent('QBCore:Notify', src, "Bring Me 100 Of One Type Of Coke", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesalecoke', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local income = math.random(1000,2000)
|
||||
local income2 = math.random(1200,2200)
|
||||
local income3 = math.random(1400,1600)
|
||||
|
||||
if Player.Functions.RemoveItem("cokebaggy", 100) then
|
||||
if Player.Functions.AddMoney("cash", income) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokebaggy'], "remove", 100)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("cokebaggystagetwo", 100) then
|
||||
if Player.Functions.AddMoney("cash", income2) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokebaggystagetwo'], "remove", 100)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("cokebaggystagethree", 100) then
|
||||
if Player.Functions.AddMoney("cash", income3) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cokebaggystagethree'], "remove", 100)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
--------------------- crack
|
||||
|
||||
|
||||
QBCore.Functions.CreateUseableItem("crackburner", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if Player.Functions.RemoveItem("crackburner", 1) then
|
||||
TriggerClientEvent("md-drugs:client:getloccrack", src)
|
||||
TriggerClientEvent('QBCore:Notify', src, "Bring Me 100 Of One Type Of Crack", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesalecrack', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local income = math.random(1000,2000)
|
||||
local income2 = math.random(1200,2200)
|
||||
local income3 = math.random(1400,2400)
|
||||
|
||||
if Player.Functions.RemoveItem("baggedcracked", 100) then
|
||||
if Player.Functions.AddMoney("cash", income) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcracked'], "remove", 100)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("baggedcrackedstagetwo", 100) then
|
||||
if Player.Functions.AddMoney("cash", income2) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcrackedstagetwo'], "remove", 100)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("baggedcrackedstagethree", 100) then
|
||||
if Player.Functions.AddMoney("cash", income3) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['baggedcrackedstagethree'], "remove", 100)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got bags", "error")
|
||||
end
|
||||
end)
|
||||
----------------- lsd
|
||||
|
||||
QBCore.Functions.CreateUseableItem("lsdburner", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if Player.Functions.RemoveItem("lsdburner", 1) then
|
||||
TriggerClientEvent("md-drugs:client:getloclsd", src)
|
||||
TriggerClientEvent('QBCore:Notify', src, "Bring Me 500 Of One Type Of Tabs", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesalelsd', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local income = math.random(1000,2000)
|
||||
local income2 = math.random(1200,2200)
|
||||
local income3 = math.random(1400,2400)
|
||||
local income4 = math.random(1600,2600)
|
||||
local income5 = math.random(1800, 2800)
|
||||
local income6 = math.random(2000,3000)
|
||||
|
||||
if Player.Functions.RemoveItem("smiley_tabs", 500) then
|
||||
if Player.Functions.AddMoney("cash", income) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['smiley_tabs'], "remove", 500)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("wildcherry_tabs", 500) then
|
||||
if Player.Functions.AddMoney("cash", income2) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['wildcherry_tabs'], "remove", 500)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("yinyang_tabs", 500) then
|
||||
if Player.Functions.AddMoney("cash", income3) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['yinyang_tabs'], "remove", 500)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("pineapple_tabs", 500) then
|
||||
if Player.Functions.AddMoney("cash", income4) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['pineapple_tabs'], "remove", 500)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("bart_tabs", 500) then
|
||||
if Player.Functions.AddMoney("cash", income5) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['bart_tabs'], "remove", 500)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("gratefuldead_tabs", 500) then
|
||||
if Player.Functions.AddMoney("cash", income6) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['gratefuldead_tabs'], "remove", 500)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got enough tabs", "error")
|
||||
end
|
||||
end)
|
||||
----------------- heroin
|
||||
|
||||
QBCore.Functions.CreateUseableItem("heroinburner", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if Player.Functions.RemoveItem("heroinburner", 1) then
|
||||
TriggerClientEvent("md-drugs:client:getlocheroin", src)
|
||||
TriggerClientEvent('QBCore:Notify', src, "Bring Me 100 Of One Type Of Heroin", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesaleheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local income = math.random(1000,2000)
|
||||
local income2 = math.random(1200,2200)
|
||||
local income3 = math.random(1400,2400)
|
||||
|
||||
if Player.Functions.RemoveItem("heroin_ready", 100) then
|
||||
if Player.Functions.AddMoney("cash", income) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin_ready'], "remove", 100)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("heroin_readystagetwo", 100) then
|
||||
if Player.Functions.AddMoney("cash", income2) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin_readystagetwo'], "remove", 100)
|
||||
end
|
||||
elseif Player.Functions.RemoveItem("heroin_readystagethree", 100) then
|
||||
if Player.Functions.AddMoney("cash", income3) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroin_readystagethree'], "remove", 100)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got needles", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,863 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
-------------------- stealing ingridients
|
||||
RegisterServerEvent('md-drugs:server:stealisosafrole', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("isosafrole", 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you stole isosafrole", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['isosafrole'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:stealmdp2p', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("mdp2p", 1) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "you stole mdp2p", "success")
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['mdp2p'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('singlepress', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent("md-drugs:client:setpresssingle", src) then
|
||||
Player.Functions.RemoveItem("singlepress", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getsinglepressback', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("singlepress", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['singlepress'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('dualpress', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent("md-drugs:client:setpressdual", src) then
|
||||
Player.Functions.RemoveItem("dualpress", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getdualpressback', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("dualpress", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['dualpress'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('triplepress', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent("md-drugs:client:setpresstriple", src) then
|
||||
Player.Functions.RemoveItem("triplepress", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:gettriplepressback', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("triplepress", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['triplepress'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem('quadpress', function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent("md-drugs:client:setpressquad", src) then
|
||||
Player.Functions.RemoveItem("quadpress", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getquadpressback', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.AddItem("quadpress", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['quadpress'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:buypress', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveMoney("cash", 20000) then
|
||||
Player.Functions.AddItem("singlepress", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['singlepress'], "add", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "give me 20k for a single press", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:upgradepress', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local dualpress = {"white_xtc", "blue_xtc", "red_xtc", "orange_xtc"}
|
||||
local triplepress = {"white_xtc2", "blue_xtc2", "red_xtc2", "orange_xtc2"}
|
||||
local quadpress = {"white_xtc3", "blue_xtc3", "red_xtc3", "orange_xtc3"}
|
||||
|
||||
if Player.Functions.GetItemByName("singlepress", 1) then
|
||||
for k, v in pairs (dualpress) do Player.Functions.GetItemByName(v, 20)
|
||||
if Player.Functions.RemoveItem(v, 20) then
|
||||
if Player.Functions.RemoveItem("singlepress", 1) then
|
||||
Player.Functions.AddItem("dualpress", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items["dualpress"], "add", 1)
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
elseif Player.Functions.GetItemByName("dualpress", 1) then
|
||||
for k, v in pairs (triplepress) do Player.Functions.GetItemByName(v, 50)
|
||||
if Player.Functions.RemoveItem(v, 50) then
|
||||
if Player.Functions.RemoveItem("dualpress", 1) then
|
||||
Player.Functions.AddItem("triplepress", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['triplepress'], "add", 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
elseif Player.Functions.GetItemByName("triplepress", 1) then
|
||||
for k, v in pairs (quadpress) do Player.Functions.GetItemByName(v, 150)
|
||||
if Player.Functions.RemoveItem(v, 150) then
|
||||
if Player.Functions.RemoveItem("triplepress", 1) then
|
||||
Player.Functions.AddItem("quadpress", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items["quadpress"], "add", 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
------------- making powder
|
||||
RegisterServerEvent('md-drugs:server:makingrawxtc', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem("mdp2p", 1) then
|
||||
if Player.Functions.RemoveItem("isosafrole", 1) then
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['isosafrole'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['mdp2p'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
end)
|
||||
----------------------------------- White unstamped
|
||||
RegisterServerEvent('md-drugs:server:makextcsingle', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
Player.Functions.AddItem("white_xtc", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makextcdual', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
Player.Functions.AddItem("white_xtc2", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makextctriple', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
Player.Functions.AddItem("white_xtc3", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makextcquad', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
Player.Functions.AddItem("white_xtc4", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
------------------------------------ red unstamped
|
||||
RegisterServerEvent('md-drugs:server:makeredxtcsingle', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("loosecoke", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
Player.Functions.AddItem("red_xtc", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeredxtcdual', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("loosecoke", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
Player.Functions.AddItem("red_xtc2", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeredxtctriple', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("loosecoke", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
Player.Functions.AddItem("red_xtc3", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeredxtcquad', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("loosecoke", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
Player.Functions.AddItem("red_xtc4", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
------------------------------- Orange unstamped
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeorangextcsingle', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("heroinvial", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
Player.Functions.AddItem("orange_xtc", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeorangextcdual', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("heroinvial", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
Player.Functions.AddItem("orange_xtc2", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeorangextctriple', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("heroinvial", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
Player.Functions.AddItem("orange_xtc3", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeorangextcquad', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("heroinvial", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
Player.Functions.AddItem("orange_xtc4", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
--------------------------------- blue unstamped
|
||||
RegisterServerEvent('md-drugs:server:makebluextcsingle', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("crackrock", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "remove", 1)
|
||||
Player.Functions.AddItem("blue_xtc", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makebluextcdual', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("crackrock", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "remove", 1)
|
||||
Player.Functions.AddItem("blue_xtc2", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makebluextctriple', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("crackrock", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "remove", 1)
|
||||
Player.Functions.AddItem("blue_xtc3", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makebluextcquad', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("raw_xtc", 1) then
|
||||
if Player.Functions.RemoveItem("crackrock", 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['raw_xtc'], "remove", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['crackrock'], "remove", 1)
|
||||
Player.Functions.AddItem("blue_xtc4", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "How you gonna make xtc pills without xtc", "error")
|
||||
end
|
||||
end)
|
||||
---------------------------
|
||||
|
||||
RegisterServerEvent('md-drugs:server:stampwhite', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(1,100)
|
||||
|
||||
if luck <= 5 then
|
||||
if Player.Functions.RemoveItem("white_xtc", 1) then
|
||||
Player.Functions.AddItem("white_playboys", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_playboys'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc2", 1) then
|
||||
Player.Functions.AddItem("white_playboys2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_playboys2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc3", 1) then
|
||||
Player.Functions.AddItem("white_playboys3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_playboys3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc4", 1) then
|
||||
Player.Functions.AddItem("white_playboys4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_playboys4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 6 and luck <= 22 then
|
||||
if Player.Functions.RemoveItem("white_xtc", 1) then
|
||||
Player.Functions.AddItem("white_aliens", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_aliens'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc2", 1) then
|
||||
Player.Functions.AddItem("white_aliens2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_aliens2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc3", 1) then
|
||||
Player.Functions.AddItem("white_aliens3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_aliens3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc4", 1) then
|
||||
Player.Functions.AddItem("white_aliens4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_aliens4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 23 and luck <= 43 then
|
||||
if Player.Functions.RemoveItem("white_xtc", 1) then
|
||||
Player.Functions.AddItem("white_pl", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_pl'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc2", 1) then
|
||||
Player.Functions.AddItem("white_pl2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_pl2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc3", 1) then
|
||||
Player.Functions.AddItem("white_pl3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_pl3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc4", 1) then
|
||||
Player.Functions.AddItem("white_pl4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_pl4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 44 and luck <= 70 then
|
||||
if Player.Functions.RemoveItem("white_xtc", 1) then
|
||||
Player.Functions.AddItem("white_trolls", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_trolls'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc2", 1) then
|
||||
Player.Functions.AddItem("white_trolls2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_trolls2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc3", 1) then
|
||||
Player.Functions.AddItem("white_trolls3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_trolls3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc4", 1) then
|
||||
Player.Functions.AddItem("white_trolls4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_trolls4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 71 and luck <= 100 then
|
||||
if Player.Functions.RemoveItem("white_xtc", 1) then
|
||||
Player.Functions.AddItem("white_cats", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_cats'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc2", 1) then
|
||||
Player.Functions.AddItem("white_cats2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_cats2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc3", 1) then
|
||||
Player.Functions.AddItem("white_cats3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_cats3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("white_xtc4", 1) then
|
||||
Player.Functions.AddItem("white_cats4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_cats4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['white_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:stampred', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(1,100)
|
||||
|
||||
if luck <= 5 then
|
||||
if Player.Functions.RemoveItem("red_xtc", 1) then
|
||||
Player.Functions.AddItem("red_playboys", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_playboys'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc2", 1) then
|
||||
Player.Functions.AddItem("red_playboys2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_playboys2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc3", 1) then
|
||||
Player.Functions.AddItem("red_playboys3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_playboys3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc4", 1) then
|
||||
Player.Functions.AddItem("red_playboys4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_playboys4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 6 and luck <= 22 then
|
||||
if Player.Functions.RemoveItem("red_xtc", 1) then
|
||||
Player.Functions.AddItem("red_aliens", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_aliens'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc2", 1) then
|
||||
Player.Functions.AddItem("red_aliens2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_aliens2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc3", 1) then
|
||||
Player.Functions.AddItem("red_aliens3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_aliens3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc4", 1) then
|
||||
Player.Functions.AddItem("red_aliens4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_aliens4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 23 and luck <= 43 then
|
||||
if Player.Functions.RemoveItem("red_xtc", 1) then
|
||||
Player.Functions.AddItem("red_pl", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_pl'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc2", 1) then
|
||||
Player.Functions.AddItem("red_pl2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_pl2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc3", 1) then
|
||||
Player.Functions.AddItem("red_pl3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_pl3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc4", 1) then
|
||||
Player.Functions.AddItem("red_pl4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_pl4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 44 and luck <= 70 then
|
||||
if Player.Functions.RemoveItem("red_xtc", 1) then
|
||||
Player.Functions.AddItem("red_trolls", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_trolls'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc2", 1) then
|
||||
Player.Functions.AddItem("red_trolls2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_trolls2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc3", 1) then
|
||||
Player.Functions.AddItem("red_trolls3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_trolls3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc4", 1) then
|
||||
Player.Functions.AddItem("red_trolls4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_trolls4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 71 and luck <= 100 then
|
||||
if Player.Functions.RemoveItem("red_xtc", 1) then
|
||||
Player.Functions.AddItem("red_cats", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_cats'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc2", 1) then
|
||||
Player.Functions.AddItem("red_cats2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_cats2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc3", 1) then
|
||||
Player.Functions.AddItem("red_cats3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_cats3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("red_xtc4", 1) then
|
||||
Player.Functions.AddItem("red_cats4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_cats4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['red_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:stamporange', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(1,100)
|
||||
|
||||
if luck <= 5 then
|
||||
if Player.Functions.RemoveItem("orange_xtc", 1) then
|
||||
Player.Functions.AddItem("orange_playboys", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_playboys'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc2", 1) then
|
||||
Player.Functions.AddItem("orange_playboys2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_playboys2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc3", 1) then
|
||||
Player.Functions.AddItem("orange_playboys3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_playboys3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc4", 1) then
|
||||
Player.Functions.AddItem("orange_playboys4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_playboys4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 6 and luck <= 22 then
|
||||
if Player.Functions.RemoveItem("orange_xtc", 1) then
|
||||
Player.Functions.AddItem("orange_aliens", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_aliens'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc2", 1) then
|
||||
Player.Functions.AddItem("orange_aliens2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_aliens2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc3", 1) then
|
||||
Player.Functions.AddItem("orange_aliens3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_aliens3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc4", 1) then
|
||||
Player.Functions.AddItem("orange_aliens4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_aliens4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 23 and luck <= 43 then
|
||||
if Player.Functions.RemoveItem("orange_xtc", 1) then
|
||||
Player.Functions.AddItem("orange_pl", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_pl'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc2", 1) then
|
||||
Player.Functions.AddItem("orange_pl2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_pl2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc3", 1) then
|
||||
Player.Functions.AddItem("orange_pl3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_pl3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc4", 1) then
|
||||
Player.Functions.AddItem("orange_pl4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_pl4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 44 and luck <= 70 then
|
||||
if Player.Functions.RemoveItem("orange_xtc", 1) then
|
||||
Player.Functions.AddItem("orange_trolls", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_trolls'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc2", 1) then
|
||||
Player.Functions.AddItem("orange_trolls2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_trolls2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc3", 1) then
|
||||
Player.Functions.AddItem("orange_trolls3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_trolls3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc4", 1) then
|
||||
Player.Functions.AddItem("orange_trolls4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_trolls4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 71 and luck <= 100 then
|
||||
if Player.Functions.RemoveItem("orange_xtc", 1) then
|
||||
Player.Functions.AddItem("orange_cats", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_cats'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc2", 1) then
|
||||
Player.Functions.AddItem("orange_cats2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_cats2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc3", 1) then
|
||||
Player.Functions.AddItem("orange_cats3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_cats3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("orange_xtc4", 1) then
|
||||
Player.Functions.AddItem("orange_cats4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_cats4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['orange_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:stampblue', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(1,100)
|
||||
|
||||
if luck <= 5 then
|
||||
if Player.Functions.RemoveItem("blue_xtc", 1) then
|
||||
Player.Functions.AddItem("blue_playboys", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_playboys'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc2", 1) then
|
||||
Player.Functions.AddItem("blue_playboys2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_playboys2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc3", 1) then
|
||||
Player.Functions.AddItem("blue_playboys3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_playboys3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc4", 1) then
|
||||
Player.Functions.AddItem("blue_playboys4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_playboys4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 6 and luck <= 22 then
|
||||
if Player.Functions.RemoveItem("blue_xtc", 1) then
|
||||
Player.Functions.AddItem("blue_aliens", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_aliens'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc2", 1) then
|
||||
Player.Functions.AddItem("blue_aliens2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_aliens2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc3", 1) then
|
||||
Player.Functions.AddItem("blue_aliens3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_aliens3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc4", 1) then
|
||||
Player.Functions.AddItem("blue_aliens4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_aliens4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 23 and luck <= 43 then
|
||||
if Player.Functions.RemoveItem("blue_xtc", 1) then
|
||||
Player.Functions.AddItem("blue_pl", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_pl'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc2", 1) then
|
||||
Player.Functions.AddItem("blue_pl2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_pl2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc3", 1) then
|
||||
Player.Functions.AddItem("blue_pl3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_pl3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc4", 1) then
|
||||
Player.Functions.AddItem("blue_pl4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_pl4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 44 and luck <= 70 then
|
||||
if Player.Functions.RemoveItem("blue_xtc", 1) then
|
||||
Player.Functions.AddItem("blue_trolls", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_trolls'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc2", 1) then
|
||||
Player.Functions.AddItem("blue_trolls2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_trolls2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc3", 1) then
|
||||
Player.Functions.AddItem("blue_trolls3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_trolls3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc4", 1) then
|
||||
Player.Functions.AddItem("blue_trolls4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_trolls4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
elseif luck >= 71 and luck <= 100 then
|
||||
if Player.Functions.RemoveItem("blue_xtc", 1) then
|
||||
Player.Functions.AddItem("blue_cats", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_cats'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc2", 1) then
|
||||
Player.Functions.AddItem("blue_cats2", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_cats2'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc3", 1) then
|
||||
Player.Functions.AddItem("blue_cats3", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_cats3'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
elseif Player.Functions.RemoveItem("blue_xtc4", 1) then
|
||||
Player.Functions.AddItem("blue_cats4", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_cats4'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['blue_xtc'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Dont Have the stuff", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||