Add files via upload
This commit is contained in:
1 parent
e29ded10a1
commit
2c3f9ea216
43 files changed
+10426
No files matched your search
@@ -0,0 +1,681 @@
|
||||
---@diagnostic disable: param-type-mismatch
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local started = nil
|
||||
|
||||
local function loadParticle(dict)
|
||||
if not HasNamedPtfxAssetLoaded(dict) then
|
||||
RequestNamedPtfxAsset(dict)
|
||||
end
|
||||
while not HasNamedPtfxAssetLoaded(dict) do
|
||||
Wait(0)
|
||||
end
|
||||
SetPtfxAssetNextCall(dict)
|
||||
end
|
||||
|
||||
function MethCooking()
|
||||
local animDict, animName = "anim@amb@business@meth@meth_monitoring_cooking@cooking@", "chemical_pour_short_cooker"
|
||||
lib.requestAnimDict(animDict, 500)
|
||||
dict = "scr_fbi5a"
|
||||
local ped = PlayerPedId()
|
||||
SetEntityCoords(ped, vector3(1005.773, -3200.402, -38.524))
|
||||
Wait(1)
|
||||
|
||||
local targetPosition = GetEntityCoords(ped)
|
||||
local animDuration = GetAnimDuration(animDict, animName) * 800
|
||||
FreezeEntityPosition(ped, true)
|
||||
local scenePos, sceneRot = vector3(1010.656, -3198.445, -38.925), vector3(0.0, 0.0, 0.0)
|
||||
local netScene = NetworkCreateSynchronisedScene(scenePos, sceneRot, 2, false, false, 1065353216, 0, 1.3)
|
||||
NetworkAddPedToSynchronisedScene(ped, netScene, animDict, animName, 1.5, -4.0, 1, 16, 1148846080, 0)
|
||||
local sacid = CreateObjectNoOffset(`bkr_prop_meth_sacid`, targetPosition, 1, 1, 0)
|
||||
NetworkAddEntityToSynchronisedScene(sacid, netScene, animDict, "chemical_pour_short_sacid", 4.0, -8.0, 1)
|
||||
local ammonia = CreateObjectNoOffset(`bkr_prop_meth_ammonia`, targetPosition, 1, 1, 0)
|
||||
NetworkAddEntityToSynchronisedScene(ammonia, netScene, animDict, "chemical_pour_short_ammonia", 4.0, -8.0, 1)
|
||||
NetworkStartSynchronisedScene(netScene)
|
||||
Wait(animDuration)
|
||||
NetworkStopSynchronisedScene(netScene)
|
||||
DeleteObject(sacid)
|
||||
DeleteObject(ammonia)
|
||||
FreezeEntityPosition(ped, false)
|
||||
loadParticle(dict)
|
||||
methflare = StartParticleFxLoopedAtCoord('scr_fbi5a_flare',vector3(1005.95, -3202.09, -37.58), 0, 0, 0, 2.0, 0, 0,0)
|
||||
SetParticleFxLoopedAlpha(methflare, 1.0)
|
||||
Wait(20000)
|
||||
StopParticleFxLooped(methflare,true)
|
||||
end
|
||||
|
||||
|
||||
function SmashMeth()
|
||||
local ver = ""
|
||||
local animDict, animName = "anim@amb@business@meth@meth_smash_weight_check@", "break_weigh_"..ver.."char02"
|
||||
lib.requestAnimDict(animDict, 500)
|
||||
local ped = PlayerPedId()
|
||||
local targetPosition = vector3(1012.628, -3194.619, -39.589)
|
||||
SetEntityCoords(ped, targetPosition)
|
||||
Wait(1)
|
||||
local animDuration = GetAnimDuration(animDict, animName) * 800
|
||||
FreezeEntityPosition(ped, true)
|
||||
local scenePos, sceneRot = vector3(1008.734, -3196.646, -39.99), vector3(0.0, 0.0, 1.08)
|
||||
local netScene = NetworkCreateSynchronisedScene(scenePos, sceneRot, 2, false, false, 1065353216, 0, 1.3)
|
||||
NetworkAddPedToSynchronisedScene(ped, netScene, animDict, animName, 1.5, -4.0, 1, 16, 1148846080, 0)
|
||||
local objects, sceneObjects = {}, {
|
||||
{
|
||||
hash = `w_me_hammer`,
|
||||
animName = "break_weigh_"..ver.."hammer"
|
||||
},
|
||||
{
|
||||
hash = `bkr_Prop_Meth_SmashedTray_01_frag_`,
|
||||
animName = "break_weigh_"..ver.."tray01"
|
||||
},
|
||||
{
|
||||
hash = `bkr_Prop_Meth_Tray_02a`,
|
||||
animName = "break_weigh_"..ver.."tray01^1"
|
||||
},
|
||||
{
|
||||
hash = `bkr_Prop_Meth_Tray_02a`,
|
||||
animName = "break_weigh_"..ver.."tray01^2"
|
||||
},
|
||||
{
|
||||
hash = `bkr_Prop_Meth_SmashedTray_01_frag_`,
|
||||
animName = "break_weigh_"..ver.."tray01^3"
|
||||
},
|
||||
}
|
||||
for i=1, #sceneObjects, 1 do
|
||||
local obj = CreateObjectNoOffset(sceneObjects[i].hash, targetPosition, true, true, true)
|
||||
NetworkAddEntityToSynchronisedScene(obj, netScene, animDict, sceneObjects[i].animName, 4.0, -8.0, 1)
|
||||
objects[#objects+1] = obj
|
||||
end
|
||||
NetworkStartSynchronisedScene(netScene)
|
||||
Wait(animDuration)
|
||||
NetworkStopSynchronisedScene(netScene)
|
||||
for i=1, #objects, 1 do
|
||||
DeleteObject(objects[i])
|
||||
end
|
||||
RemoveAnimDict(animDict)
|
||||
FreezeEntityPosition(ped, false)
|
||||
end
|
||||
|
||||
function BagMeth()
|
||||
local ver = ""
|
||||
local animDict, animName = "anim@amb@business@meth@meth_smash_weight_check@", "break_weigh_"..ver.."char01"
|
||||
lib.requestAnimDict(animDict, 500)
|
||||
local animDuration = GetAnimDuration(animDict, animName) * 1000
|
||||
local ped = PlayerPedId()
|
||||
local coords = GetEntityCoords(ped)
|
||||
local scenePos, sceneRot = vector3(1008.734, -3196.646, -39.99), vector3(0.0, 0.0, 1.08)
|
||||
local scenes = {
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_meth_bigbag_04a`,
|
||||
animName = "break_weigh_"..ver.."box01"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_meth_bigbag_03a`,
|
||||
animName = "break_weigh_"..ver.."box01^1"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01^1"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01^2"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01^3"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01^4"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01^5"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_meth_openbag_02`,
|
||||
animName = "break_weigh_"..ver.."methbag01^6"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_meth_scoop_01a`,
|
||||
animName = "break_weigh_"..ver.."scoop"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_coke_scale_01`,
|
||||
animName = "break_weigh_"..ver.."scale"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_fakeid_penclipboard`,
|
||||
animName = "break_weigh_"..ver.."pen"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_fakeid_clipboard_01a`,
|
||||
animName = "break_weigh_"..ver.."clipboard"
|
||||
},
|
||||
{
|
||||
hash = `bkr_Prop_Meth_Tray_02a`,
|
||||
animName = "break_weigh_"..ver.."tray01^5"
|
||||
}
|
||||
}
|
||||
}
|
||||
local scenesList, entitiesList = {}, {}
|
||||
for i=1, #scenes, 1 do
|
||||
local scene = NetworkCreateSynchronisedScene(scenePos, sceneRot, 2, false, false, 1065353216, 0, 1.3)
|
||||
NetworkAddPedToSynchronisedScene(ped, scene, animDict, animName, 1.5, -4.0, 1, 16, 1148846080, 0)
|
||||
for j=1, #scenes[i], 1 do
|
||||
local s = scenes[i][j]
|
||||
RequestModel(s.hash)
|
||||
while not HasModelLoaded(s.hash) do
|
||||
Wait(0)
|
||||
end
|
||||
local obj = CreateObjectNoOffset(s.hash, coords, true, true, true)
|
||||
SetModelAsNoLongerNeeded(s.hash)
|
||||
entitiesList[#entitiesList+1] = obj
|
||||
NetworkAddEntityToSynchronisedScene(obj, scene, animDict, s.animName, 4.0, -8.0, 1)
|
||||
end
|
||||
scenesList[#scenesList+1] = scene
|
||||
end
|
||||
DisableCamCollisionForEntity(ped)
|
||||
FreezeEntityPosition(ped, true)
|
||||
for i=1, #scenesList, 1 do
|
||||
NetworkStartSynchronisedScene(scenesList[i])
|
||||
end
|
||||
|
||||
Wait(animDuration-11000)
|
||||
-- Citizen.Wait(45000)
|
||||
for i=1, #scenesList, 1 do
|
||||
NetworkStopSynchronisedScene(scenesList[i])
|
||||
end
|
||||
for i=1, #entitiesList, 1 do
|
||||
DeleteEntity(entitiesList[i])
|
||||
end
|
||||
RemoveAnimDict(animDict)
|
||||
FreezeEntityPosition(ped, false)
|
||||
end
|
||||
|
||||
function Tray()
|
||||
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("bkr_prop_meth_tray_02a")
|
||||
while not HasModelLoaded("bkr_prop_meth_tray_02a") do
|
||||
Wait(0)
|
||||
end
|
||||
local trays = CreateObject("bkr_prop_meth_tray_02a", pos.x, pos.y, pos.z, true, true, true)
|
||||
AttachEntityToEntity(trays, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 28422), 0.01,-0.2, -0.2, 20.0, 0.0, 0.0, true, true, false, true, 1, true)
|
||||
end
|
||||
|
||||
|
||||
|
||||
function CutCoke()
|
||||
local animDict, animName = "anim@amb@business@coc@coc_unpack_cut_left@", "coke_cut_v5_coccutter"
|
||||
lib.requestAnimDict(animDict, 500)
|
||||
local animDuration = GetAnimDuration(animDict, animName) * 1000
|
||||
local ped = PlayerPedId()
|
||||
local coords = GetEntityCoords(ped)
|
||||
local scenePos, sceneRot = vector3(1090.37+.9, -3193.61-1.68, -39.60), vector3(0.0, 0.0, 0.00)
|
||||
local scenes = {
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_coke_bakingsoda_o`,
|
||||
animName = "coke_cut_v5_bakingsoda"
|
||||
},
|
||||
{
|
||||
hash = `prop_cs_credit_card`,
|
||||
animName = "coke_cut_v5_creditcard"
|
||||
},
|
||||
{
|
||||
hash = `prop_cs_credit_card`,
|
||||
animName = "coke_cut_v5_creditcard^1"
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
local scenesList, entitiesList = {}, {}
|
||||
for i=1, #scenes, 1 do
|
||||
local scene = NetworkCreateSynchronisedScene(scenePos, sceneRot, 2, false, false, 1065353216, 0, 1.3)
|
||||
NetworkAddPedToSynchronisedScene(ped, scene, animDict, animName, 1.5, -4.0, 1, 16, 1148846080, 0)
|
||||
for j=1, #scenes[i], 1 do
|
||||
local s = scenes[i][j]
|
||||
RequestModel(s.hash)
|
||||
while not HasModelLoaded(s.hash) do
|
||||
Wait(0)
|
||||
end
|
||||
local obj = CreateObjectNoOffset(s.hash, coords, true, true, true)
|
||||
SetModelAsNoLongerNeeded(s.hash)
|
||||
entitiesList[#entitiesList+1] = obj
|
||||
NetworkAddEntityToSynchronisedScene(obj, scene, animDict, s.animName, 4.0, -8.0, 1)
|
||||
end
|
||||
scenesList[#scenesList+1] = scene
|
||||
end
|
||||
DisableCamCollisionForEntity(ped)
|
||||
FreezeEntityPosition(ped, true)
|
||||
for i=1, #scenesList, 1 do
|
||||
NetworkStartSynchronisedScene(scenesList[i])
|
||||
end
|
||||
|
||||
Wait(animDuration-11000)
|
||||
for i=1, #scenesList, 1 do
|
||||
NetworkStopSynchronisedScene(scenesList[i])
|
||||
end
|
||||
for i=1, #entitiesList, 1 do
|
||||
DeleteEntity(entitiesList[i])
|
||||
end
|
||||
RemoveAnimDict(animDict)
|
||||
FreezeEntityPosition(ped, false)
|
||||
end
|
||||
|
||||
CreateThread(function()
|
||||
|
||||
BikerCocaine = exports['bob74_ipl']:GetBikerCocaineObject()
|
||||
BikerCocaine.Style.Set(BikerCocaine.Style.upgrade)
|
||||
BikerCocaine.Security.Set(BikerCocaine.Security.upgrade)
|
||||
BikerCocaine.Details.Enable({BikerCocaine.Details.cokeBasic1, BikerCocaine.Details.cokeBasic2, BikerCocaine.Details.cokeBasic3}, true)
|
||||
|
||||
end)
|
||||
|
||||
function BagCoke()
|
||||
local ver = ""
|
||||
local animDict, animName = "anim@amb@business@meth@meth_smash_weight_check@", "break_weigh_"..ver.."char01"
|
||||
lib.requestAnimDict(animDict, 500)
|
||||
local animDuration = GetAnimDuration(animDict, animName) * 1000
|
||||
local ped = PlayerPedId()
|
||||
local coords = GetEntityCoords(ped)
|
||||
local scenePos, sceneRot = vector3(1090.62+4.3, -3196.2+3, -38.99-1), vector3(360.0, 360.0, 180.08)
|
||||
local scenes = {
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_coke_cutblock_01`,
|
||||
animName = "break_weigh_"..ver.."box01"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_coke_fullmetalbowl_02`,
|
||||
animName = "break_weigh_"..ver.."box01^1"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_coke_cutblock_01`,
|
||||
animName = "break_weigh_"..ver.."methbag01"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `xm3_prop_xm3_bag_coke_01a`,
|
||||
animName = "break_weigh_"..ver.."methbag01^1"
|
||||
},
|
||||
{
|
||||
hash = `xm3_prop_xm3_bag_coke_01a`,
|
||||
animName = "break_weigh_"..ver.."methbag01^2"
|
||||
},
|
||||
{
|
||||
hash = `xm3_prop_xm3_bag_coke_01a`,
|
||||
animName = "break_weigh_"..ver.."methbag01^3"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_coke_fullscoop_01a`,
|
||||
animName = "break_weigh_"..ver.."scoop"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_coke_scale_01`,
|
||||
animName = "break_weigh_"..ver.."scale"
|
||||
},
|
||||
{
|
||||
hash = `bkr_prop_fakeid_penclipboard`,
|
||||
animName = "break_weigh_"..ver.."pen"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
hash = `bkr_prop_fakeid_clipboard_01a`,
|
||||
animName = "break_weigh_"..ver.."clipboard"
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
local scenesList, entitiesList = {}, {}
|
||||
for i=1, #scenes, 1 do
|
||||
local scene = NetworkCreateSynchronisedScene(scenePos, sceneRot, 2, false, false, 1065353216, 0, 1.3)
|
||||
NetworkAddPedToSynchronisedScene(ped, scene, animDict, animName, 1.5, -4.0, 1, 16, 1148846080, 0)
|
||||
for j=1, #scenes[i], 1 do
|
||||
local s = scenes[i][j]
|
||||
RequestModel(s.hash)
|
||||
while not HasModelLoaded(s.hash) do
|
||||
Wait(0)
|
||||
end
|
||||
local obj = CreateObjectNoOffset(s.hash, coords, true, true, true)
|
||||
SetModelAsNoLongerNeeded(s.hash)
|
||||
entitiesList[#entitiesList+1] = obj
|
||||
NetworkAddEntityToSynchronisedScene(obj, scene, animDict, s.animName, 4.0, -8.0, 1)
|
||||
end
|
||||
scenesList[#scenesList+1] = scene
|
||||
end
|
||||
DisableCamCollisionForEntity(ped)
|
||||
FreezeEntityPosition(ped, true)
|
||||
for i=1, #scenesList, 1 do
|
||||
NetworkStartSynchronisedScene(scenesList[i])
|
||||
end
|
||||
|
||||
Wait(animDuration-11000)
|
||||
-- Citizen.Wait(45000)
|
||||
for i=1, #scenesList, 1 do
|
||||
NetworkStopSynchronisedScene(scenesList[i])
|
||||
end
|
||||
for i=1, #entitiesList, 1 do
|
||||
DeleteEntity(entitiesList[i])
|
||||
end
|
||||
RemoveAnimDict(animDict)
|
||||
FreezeEntityPosition(ped, false)
|
||||
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 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 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
|
||||
|
||||
function SpawnCarPedChase()
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
local stoploc = vector3(-1157.63, -3056.71, 13.94)
|
||||
local start = Config.StartLoc[math.random(1,#Config.StartLoc)]
|
||||
local search = false
|
||||
local spawnedCar = {}
|
||||
if started then
|
||||
else
|
||||
started = true
|
||||
lib.requestModel(`pounder`, 500)
|
||||
lib.requestModel("ig_priest", 500)
|
||||
lib.requestModel(`cargobob3`, 500)
|
||||
leancar = CreateVehicle(`pounder`, start.x+3, start.y-2, start.z-1, 52.0, true, true)
|
||||
driver = CreatePed(26, "ig_priest", start.x, start.y, start.z, 268.9422, true, false)
|
||||
pilot2 = CreatePed(26, "ig_priest", stoploc.x-3, stoploc.y-3, stoploc.z-1, 268.9422, true, false)
|
||||
FreezeEntityPosition(pilot2, true)
|
||||
SetEntityInvincible(pilot2, true)
|
||||
SetEntityAsMissionEntity(leancar)
|
||||
AddBlipForEntity(leancar)
|
||||
SetPedIntoVehicle(driver, leancar, -1)
|
||||
SetPedFleeAttributes(driver,false)
|
||||
TaskVehicleDriveToCoordLongrange(driver, leancar, stoploc.x, stoploc.y, stoploc.z-1, 50.0, 524288, 25.0)
|
||||
SetPedKeepTask(driver, true)
|
||||
exports['qb-target']:AddTargetEntity(leancar, {
|
||||
options = {
|
||||
{
|
||||
name = 'leancar',
|
||||
icon = 'fa-solid fa-car',
|
||||
label = 'Steal From Car',
|
||||
action = function()
|
||||
local chance = math.random(1,100)
|
||||
exports['ps-ui']:Circle(function(success)
|
||||
if success then
|
||||
TriggerServerEvent('md-drugs:server:givelean')
|
||||
started = nil
|
||||
else
|
||||
started = nil
|
||||
end
|
||||
end, 5, 8)
|
||||
if chance <= 30 then
|
||||
DeleteVehicle(leancar)
|
||||
DeleteEntity(driver)
|
||||
DeleteEntity(pilot2)
|
||||
end
|
||||
end,
|
||||
canInteract = function()
|
||||
if IsEntityDead(driver) then
|
||||
return true end
|
||||
end,
|
||||
}
|
||||
}
|
||||
})
|
||||
Wait(1000)
|
||||
search = true
|
||||
CreateThread(function()
|
||||
|
||||
while search do
|
||||
Wait(5000)
|
||||
if IsEntityDead(driver) == false then
|
||||
loc = #(GetEntityCoords(driver) - GetEntityCoords(pilot2))
|
||||
if loc < 25.0 then
|
||||
Wait( 3 * 1000)
|
||||
search = false
|
||||
started = nil
|
||||
heli = CreateVehicle(`cargobob3`, stoploc.x-20, stoploc.y-20, stoploc.z-1, 80, true,true)
|
||||
Wait(1000)
|
||||
if DoesEntityExist(heli) then
|
||||
SetEntityInvincible(pilot2, false)
|
||||
DeleteVehicle(leancar)
|
||||
DeleteEntity(driver)
|
||||
SetEntityAsMissionEntity(heli)
|
||||
SetPedIntoVehicle(pilot2, heli, -1)
|
||||
TaskHeliMission(pilot2, heli, 0, 0, -3362.05, 589.45, -13.04, 4, 150.0, 20.0, -1.0, 10, 10, 5.0, 0)
|
||||
else
|
||||
heli = CreateVehicle(`cargobob3`, stoploc.x-20, stoploc.y-20, stoploc.z-1, 80, true,true)
|
||||
end
|
||||
end
|
||||
else
|
||||
started = nil
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
function SpawnMethCarPedChase()
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
local stoploc = vector3(-1157.63, -3056.71, 13.94)
|
||||
local start = Config.StartLoc[math.random(1,#Config.StartLoc)]
|
||||
local searchmeth = false
|
||||
|
||||
if startedmeth then
|
||||
else
|
||||
startedmeth = true
|
||||
lib.requestModel(`journey`, 500)
|
||||
lib.requestModel("a_m_m_hillbilly_02", 500)
|
||||
lib.requestModel(`cargobob3`, 500)
|
||||
methcar = CreateVehicle(`journey`, start.x+3, start.y-2, start.z-1, 52.0, true, true)
|
||||
methdriver = CreatePed(26, "a_m_m_hillbilly_02", start.x, start.y, start.z, 268.9422, true, false)
|
||||
methpilot = CreatePed(26, "a_m_m_hillbilly_02", stoploc.x-3, stoploc.y-3, stoploc.z-1, 268.9422, true, false)
|
||||
FreezeEntityPosition(methpilot, true)
|
||||
SetEntityInvincible(methpilot, true)
|
||||
SetEntityAsMissionEntity(methcar)
|
||||
AddBlipForEntity(methcar)
|
||||
SetPedIntoVehicle(methdriver, methcar, -1)
|
||||
SetPedFleeAttributes(methdriver,false)
|
||||
TaskVehicleDriveToCoordLongrange(methdriver, methcar, stoploc.x, stoploc.y, stoploc.z-1, 50.0, 524288, 25.0)
|
||||
SetPedKeepTask(methdriver, true)
|
||||
exports['qb-target']:AddTargetEntity(methcar, {
|
||||
options = {
|
||||
{
|
||||
name = 'methcar',
|
||||
icon = 'fa-solid fa-car',
|
||||
label = 'Steal From Car',
|
||||
action = function()
|
||||
local chance = math.random(1,100)
|
||||
exports['ps-ui']:Circle(function(success)
|
||||
if success then
|
||||
TriggerServerEvent('md-drugs:server:givemethingridients')
|
||||
startedmeth = nil
|
||||
else
|
||||
startedmeth = nil
|
||||
end
|
||||
end, 5, 8)
|
||||
print(chance)
|
||||
if chance <= 30 then
|
||||
DeleteVehicle(methcar)
|
||||
DeleteEntity(methdriver)
|
||||
DeleteEntity(methpilot)
|
||||
end
|
||||
end,
|
||||
canInteract = function()
|
||||
if IsEntityDead(methdriver) then
|
||||
return true end
|
||||
end,
|
||||
}
|
||||
}
|
||||
})
|
||||
Wait(1000)
|
||||
searchmeth = true
|
||||
CreateThread(function()
|
||||
|
||||
while searchmeth do
|
||||
Wait(1000)
|
||||
local pickuploc = GetEntityCoords(methcar)
|
||||
if IsEntityDead(methdriver) == false then
|
||||
loc = #(GetEntityCoords(methdriver) - GetEntityCoords(methpilot))
|
||||
if loc < 25.0 then
|
||||
Wait( 3 * 1000)
|
||||
startedmeth = nil
|
||||
methheli = CreateVehicle(`cargobob3`, pickuploc.x, pickuploc.y, pickuploc.z+4, 80, true,true)
|
||||
Wait(10)
|
||||
if DoesEntityExist(methheli) then
|
||||
SetEntityInvincible(methpilot, false)
|
||||
CreatePickUpRopeForCargobob(methheli, 1)
|
||||
AttachVehicleToCargobob(methheli, methcar, GetEntityBoneIndexByName(methcar, 'bodyshell'), 0.0, 0.0, 0.0)
|
||||
DeleteEntity(methdriver)
|
||||
SetEntityAsMissionEntity(methheli)
|
||||
SetPedIntoVehicle(methpilot, methheli, -1)
|
||||
TaskHeliMission(methpilot, methheli, 0, 0, -3362.05, 589.45, -13.04, 4, 150.0, 20.0, -1.0, 10, 10, 5.0, 0)
|
||||
searchmeth = false
|
||||
else
|
||||
methheli = CreateVehicle(`cargobob3`, stoploc.x-20, stoploc.y-20, stoploc.z-1, 80, true,true)
|
||||
end
|
||||
end
|
||||
else
|
||||
startedmeth = nil
|
||||
end
|
||||
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
function SetUpPeds()
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
local CokePed = CreatePed(0, "g_m_y_famdnf_01", ped.x+3, ped.y-5, ped.z-1, 90.0, true, true)
|
||||
local CokePed2 = CreatePed(0,"g_m_y_famdnf_01", ped.x+6, ped.y-10, ped.z-1, 90.0, true, true)
|
||||
local CokePed3 = CreatePed(0,"g_m_y_famdnf_01", ped.x+-2, ped.y+5, ped.z-1, 90.0, true, true)
|
||||
local CokePed4 = CreatePed(0,"g_m_y_famdnf_01", ped.x+8, ped.y-12, ped.z-1, 90.0, true, true)
|
||||
local CokePed5 = CreatePed(0,"g_m_y_famdnf_01", ped.x+5, ped.y-2, ped.z-1, 90.0, true, true)
|
||||
local CokePed6 = CreatePed(0,"g_m_y_famdnf_01", ped.x+2, ped.y-20, ped.z-1, 90.0, true, true)
|
||||
local CokePed7 = CreatePed(0,"g_m_y_famdnf_01", ped.x+1, ped.y-10, ped.z-1, 90.0, true, true)
|
||||
SetPedArmour(CokePed, 200)
|
||||
SetPedCanSwitchWeapon(CokePed, true)
|
||||
GiveWeaponToPed(CokePed, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed, PlayerPedId(), 0, 16)
|
||||
GiveWeaponToPed(CokePed2, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed2, PlayerPedId(), 0, 16)
|
||||
GiveWeaponToPed(CokePed3, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed3, PlayerPedId(), 0, 16)
|
||||
GiveWeaponToPed(CokePed4, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed4, PlayerPedId(), 0, 16)
|
||||
GiveWeaponToPed(CokePed5, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed5, PlayerPedId(), 0, 16)
|
||||
GiveWeaponToPed(CokePed6, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed6, PlayerPedId(), 0, 16)
|
||||
GiveWeaponToPed(CokePed7, "weapon_pistol", 1, false, true)
|
||||
TaskCombatPed(CokePed7, PlayerPedId(), 0, 16)
|
||||
SetPedCombatAttributes(CokePed, 46, true)
|
||||
SetPedCombatAttributes(CokePed2, 46, true)
|
||||
SetPedCombatAttributes(CokePed3, 46, true)
|
||||
SetPedCombatAttributes(CokePed4, 46, true)
|
||||
SetPedCombatAttributes(CokePed5, 46, true)
|
||||
SetPedCombatAttributes(CokePed6, 46, true)
|
||||
SetPedCombatAttributes(CokePed7, 46, true)
|
||||
end
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local CocaPlant = {}
|
||||
local cuttingcoke = nil
|
||||
local baggingcoke = nil
|
||||
function LoadModel(hash)
|
||||
hash = GetHashKey(hash)
|
||||
lib.requestModel(hash, 500)
|
||||
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()
|
||||
cuttingcoke = true
|
||||
CutCoke()
|
||||
TriggerServerEvent("md-drugs:server:cutcokeone")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
cuttingcoke = nil
|
||||
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:bagcoke")
|
||||
AddEventHandler("md-drugs:client:bagcoke", function()
|
||||
baggingcoke = true
|
||||
BagCoke()
|
||||
TriggerServerEvent("md-drugs:server:bagcoke")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
baggingcoke = nil
|
||||
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
exports['qb-target']:AddBoxZone("cutcokepowder",vector3(1093.01, -3194.8, -38.99),1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "cutcokepowder",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -40,
|
||||
maxZ = -36,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cutcokeone",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "cut up",
|
||||
canInteract = function()
|
||||
if cuttingcoke == nil then return true end
|
||||
end
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("bagcokepowder",vector3(1090.19, -3194.8, -38.98),1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "bagcokepowder",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -40,
|
||||
maxZ = -36,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:bagcoke",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "bagging",
|
||||
canInteract = function()
|
||||
if baggingcoke == nil then return true end
|
||||
end
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
end)
|
||||
@@ -0,0 +1,25 @@
|
||||
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,305 @@
|
||||
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 PoliceCallCornerselling()
|
||||
print"tell your devs to read the readme. it isnt hard for most people but they are dumb"
|
||||
end
|
||||
|
||||
local function RobberyPed()
|
||||
if Config.UseTarget then
|
||||
exports['qb-target']:AddTargetEntity(stealingPed, {
|
||||
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 = {}
|
||||
ClearPedTasks(PlayerPedId())
|
||||
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 <= QBConfig.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 = QBConfig.DrugsPrice[currentOfferDrug.item]
|
||||
local randomPrice = math.random(ddata.min, ddata.max) * bagAmount
|
||||
if scamChance <= QBConfig.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 <= QBConfig.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 <= QBConfig.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 <= QBConfig.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']:AddTargetEntity(ped, {
|
||||
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
|
||||
|
||||
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')
|
||||
PoliceCallCornerselling()
|
||||
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 >= QBConfig.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,368 @@
|
||||
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)
|
||||
QBConfig.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(QBConfig.Dealers) do
|
||||
local dealerCoords = vector3(v.coords.x, v.coords.y, v.coords.z)
|
||||
if #(pCoords - dealerCoords) < 2.0 then
|
||||
currentDealer = k
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
CreateThread(function()
|
||||
local dealermenu = {}
|
||||
if Config.StupidassNewQbItemName then
|
||||
for k, v in pairs (QBConfig.ProductsStupidNameRewrite) do
|
||||
dealermenu[#dealermenu + 1] = {
|
||||
icon = "nui://"..Config.imagelink..QBCore.Shared.Items[v.name].image,
|
||||
title = v.label,
|
||||
event = "md-drugs:client:travellingmerchantox",
|
||||
args = {
|
||||
item = v.name,
|
||||
cost = v.price,
|
||||
info = v.info,
|
||||
amount = v.amount,
|
||||
}
|
||||
}
|
||||
|
||||
lib.registerContext({id = 'dealermenu',title = "Dealer Menu", options = dealermenu})
|
||||
end
|
||||
else
|
||||
for k, v in pairs (QBConfig.Products) do
|
||||
dealermenu[#dealermenu + 1] = {
|
||||
icon = "nui://"..Config.imagelink..QBCore.Shared.Items[v.name].image,
|
||||
title = v.label,
|
||||
event = "md-drugs:client:travellingmerchantox",
|
||||
args = {
|
||||
item = v.name,
|
||||
cost = v.price,
|
||||
info = v.info,
|
||||
amount = v.amount,
|
||||
}
|
||||
}
|
||||
|
||||
lib.registerContext({id = 'dealermenu',title = "Dealer Menu", options = dealermenu})
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
local function RandomDeliveryItemOnRep()
|
||||
local myRep = QBCore.Functions.GetPlayerData().metadata["dealerrep"]
|
||||
local availableItems = {}
|
||||
for k, _ in pairs(QBConfig.DeliveryItems) do
|
||||
if QBConfig.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, #QBConfig.DeliveryLocations)
|
||||
|
||||
waitingDelivery = {
|
||||
["coords"] = QBConfig.DeliveryLocations[location]["coords"],
|
||||
["locationLabel"] = QBConfig.DeliveryLocations[location]["label"],
|
||||
["amount"] = amount,
|
||||
["dealer"] = currentDealer,
|
||||
["itemData"] = QBConfig.DeliveryItems[item],
|
||||
["item"] = item
|
||||
}
|
||||
if QBConfig.Debug == true then
|
||||
print(QBConfig.DeliveryLocations[location]["coords"])
|
||||
print(QBConfig.DeliveryLocations[location]["label"])
|
||||
end
|
||||
end
|
||||
|
||||
TriggerServerEvent('md-drugs:server:giveDeliveryItems', waitingDelivery)
|
||||
SetTimeout(2000, function()
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = QBConfig.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 PoliceCallDeliveries()
|
||||
print " Tell your devs they didnt do something and to read the readme it isnt hard"
|
||||
end
|
||||
|
||||
local function DeliverStuff()
|
||||
if deliveryTimeout > 0 then
|
||||
Wait(500)
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
PoliceCallDeliveries()
|
||||
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(QBConfig.Dealers) == nil then return end
|
||||
|
||||
for k,v in pairs(QBConfig.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 = QBConfig.Dealers[currentDealer]["time"]["min"]
|
||||
local max = QBConfig.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()
|
||||
lib.showContext('dealermenu')
|
||||
end,
|
||||
canInteract = function()
|
||||
GetClosestDealer()
|
||||
local hours = GetClockHours()
|
||||
local min = QBConfig.Dealers[currentDealer]["time"]["min"]
|
||||
local max = QBConfig.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
|
||||
QBConfig.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)
|
||||
QBConfig.Dealers[dealer]["products"][itemData.slot].amount = QBConfig.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 = QBConfig.Dealers[deliveryData["dealer"]]["name"],
|
||||
subject = "Delivery",
|
||||
message = "You did it"
|
||||
})
|
||||
elseif type == 'bad' then
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = QBConfig.Dealers[deliveryData["dealer"]]["name"],
|
||||
subject = "Delivery",
|
||||
message = "You Fucked Me Over"
|
||||
})
|
||||
elseif type == 'late' then
|
||||
TriggerServerEvent('qb-phone:server:sendNewMail', {
|
||||
sender = QBConfig.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,300 @@
|
||||
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"
|
||||
lib.requestModel("g_m_y_famdnf_01", 500)
|
||||
labkitlocation = Config.buyheroinlabkit
|
||||
heroinkitdealer = CreatePed(0, Ped,labkitlocation.x, labkitlocation.y, labkitlocation.z-1, 180.0, false, false)
|
||||
FreezeEntityPosition(heroinkitdealer, true)
|
||||
SetEntityInvincible(heroinkitdealer, true)
|
||||
exports['qb-target']:AddTargetEntity(heroinkitdealer, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Buy Heroin Lab Kit",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:buyheroinlabkit"
|
||||
},
|
||||
}
|
||||
|
||||
})
|
||||
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 = {
|
||||
{
|
||||
|
||||
event = "md-drugs:client:heatliquidheroin",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Cook Heroin",
|
||||
},
|
||||
{
|
||||
|
||||
event = "md-drugs:client:getheroinkitback",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Pick Up",
|
||||
},
|
||||
}
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:heatliquidheroin")
|
||||
AddEventHandler("md-drugs:client:heatliquidheroin", function()
|
||||
local PedCoords = GetEntityCoords(PlayerPedId())
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
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())
|
||||
SetPedToRagdoll(PlayerPedId(), 1300, 1300, 0, 0, 0, 0)
|
||||
|
||||
exports['qb-target']:AddTargetEntity(dirtylabkitheroin, {
|
||||
options = {
|
||||
{
|
||||
|
||||
event = "md-drugs:client:cleanheroinlabkit",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Clean It",
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
end, 1, 8) -- NumberOfCircles, MS
|
||||
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)
|
||||
Wait(1000)
|
||||
TriggerEvent("md-drugs:client:setheroinlabkit")
|
||||
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: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,43 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
CreateThread(function()
|
||||
local current = "s_m_m_doctor_01"
|
||||
lib.requestModel(current, 500)
|
||||
SyrupLocation = CreatePed(0, current,Config.SyrupVendor.x,Config.SyrupVendor.y,Config.SyrupVendor.z-1, false, false)
|
||||
FreezeEntityPosition(SyrupLocation, true)
|
||||
SetEntityInvincible(SyrupLocation, true)
|
||||
exports['qb-target']:AddTargetEntity(SyrupLocation, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Get Task",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:getsyruplocationtobuy"
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getsyruplocationtobuy")
|
||||
AddEventHandler("md-drugs:client:getsyruplocationtobuy", function()
|
||||
SpawnCarPedChase()
|
||||
QBCore.Functions.Notify("Car Has Been Marked On Your Map", "success")
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:consumelean', function(itemName)
|
||||
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
}, {}, {}, {}, function()
|
||||
ClearPedTasks(PlayerPedId())
|
||||
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
|
||||
AlienEffect()
|
||||
Wait(math.random(1000,5000))
|
||||
SetPedToRagdoll(PlayerPedId(), 1000,2000, 2)
|
||||
|
||||
|
||||
end)
|
||||
end)
|
||||
+313
@@ -0,0 +1,313 @@
|
||||
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"
|
||||
lib.requestModel(Ped, 500)
|
||||
tabdealer = CreatePed(0, Ped,Config.buylsdlabkit.x,Config.buylsdlabkit.y,Config.buylsdlabkit.z-1, 180.0, false, false)
|
||||
FreezeEntityPosition(tabdealer, true)
|
||||
SetEntityInvincible(tabdealer, true)
|
||||
exports['qb-target']:AddTargetEntity(tabdealer, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Buy LSD Lab Kit",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:buylabkit"
|
||||
}
|
||||
}
|
||||
})
|
||||
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
|
||||
ClearPedTasks(PlayerPedId())
|
||||
exports['ps-ui']:Circle(function(success)
|
||||
if success then
|
||||
TriggerServerEvent("md-drugs:server:getlysergic")
|
||||
else
|
||||
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)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
if success then
|
||||
TriggerServerEvent("md-drugs:server:getdiethylamide")
|
||||
else
|
||||
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)
|
||||
PlaceObjectOnGroundProperly(labkit)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
exports['qb-target']:AddTargetEntity(labkit, {
|
||||
options = {
|
||||
{
|
||||
|
||||
event = "md-drugs:client:heatliquid",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Heat Liquid",
|
||||
},
|
||||
{
|
||||
|
||||
event = "md-drugs:client:refinequalityacid",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Refine",
|
||||
},
|
||||
{
|
||||
|
||||
event = "md-drugs:client:maketabpaper",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Dab Sheets",
|
||||
},
|
||||
{
|
||||
|
||||
event = "md-drugs:client:getlabkitback",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Pick Up",
|
||||
},
|
||||
}
|
||||
})
|
||||
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
|
||||
ClearPedTasks(PlayerPedId())
|
||||
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)
|
||||
PlaceObjectOnGroundProperly(dirtylabkit)
|
||||
SetParticleFxLoopedAlpha(exitPtfx, 3.0)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
exports['qb-target']:AddTargetEntity(dirtylabkit, {
|
||||
options = {
|
||||
{
|
||||
|
||||
event = "md-drugs:client:cleanlabkit",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Clean It",
|
||||
},
|
||||
}
|
||||
})
|
||||
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
|
||||
ClearPedTasks(PlayerPedId())
|
||||
exports['ps-ui']:Circle(function(success)
|
||||
if success then
|
||||
TriggerServerEvent("md-drugs:server:refinequalityacid")
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failrefinequality")
|
||||
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
|
||||
ClearPedTasks(PlayerPedId())
|
||||
exports['ps-ui']:Circle(function(success)
|
||||
if success then
|
||||
TriggerServerEvent("md-drugs:server:maketabpaper")
|
||||
else
|
||||
TriggerServerEvent("md-drugs:server:failtabs")
|
||||
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)
|
||||
|
||||
|
||||
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,175 @@
|
||||
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)
|
||||
|
||||
|
||||
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,100)
|
||||
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)
|
||||
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)
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local amonia = nil
|
||||
local tray = nil
|
||||
local heated = nil
|
||||
|
||||
|
||||
CreateThread(function()
|
||||
BikerMethLab = exports['bob74_ipl']:GetBikerMethLabObject()
|
||||
BikerMethLab.Style.Set(BikerMethLab.Style.upgrade)
|
||||
BikerMethLab.Security.Set(BikerMethLab.Security.upgrade)
|
||||
BikerMethLab.Details.Enable(BikerMethLab.Details.production, true)
|
||||
RefreshInterior(BikerMethLab.interiorId)
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
exports['qb-target']:AddBoxZone("methteleout",Config.MethTeleIn, 1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "methteleout",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MethTeleIn.z-2,
|
||||
maxZ = Config.MethTeleIn.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Enter Building",
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),Config.MethTeleOut)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("methtelein",Config.MethTeleOut,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "methtelein",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MethTeleOut.z-2,
|
||||
maxZ = Config.MethTeleOut.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Exit Building",
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),Config.MethTeleIn)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("maze",vector3(-95.55, -806.73, 44.04),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "maze",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = 44-2,
|
||||
maxZ = 44+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'die',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "dont click this",
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),vector3(-75.36, -837.24, 318.93))
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
local itemreqcook = {"ephedrine", "acetone"}
|
||||
exports['qb-target']:AddBoxZone("ingridientsmeth",vector3(1005.7, -3201.28, -39.55),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "ingridientsmeth",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -39-2,
|
||||
maxZ = -39+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'methcook',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Cook Meth",
|
||||
item = itemreqcook,
|
||||
action = function()
|
||||
if amonia == nil then
|
||||
amonia = true
|
||||
TriggerServerEvent("md-drugs:server:startcook")
|
||||
MethCooking()
|
||||
exports['qb-target']:AddBoxZone("adjustdials",vector3(1007.89, -3201.17, -38.99),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "adjustdials",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -39-2,
|
||||
maxZ = -39+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'adjustdials',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Adjust Dials",
|
||||
distance = 5,
|
||||
action = function()
|
||||
if amonia == true then
|
||||
exports['ps-ui']:Circle(function(success)
|
||||
if success then
|
||||
QBCore.Functions.Notify("Increasing Heat", "success")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
heated = true
|
||||
exports['qb-target']:RemoveZone("adjustdials")
|
||||
else
|
||||
AddExplosion(1005.773, -3200.402, -38.524, 49, 10, true, false, true, true)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
amonia = nil
|
||||
exports['qb-target']:RemoveZone("adjustdials")
|
||||
end
|
||||
end, 2, 8) -- NumberOfCircles,
|
||||
else
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
else
|
||||
QBCore.Functions.Notify("Theres Stuff Inside", "error")
|
||||
end
|
||||
end,
|
||||
canInteract = function()
|
||||
if amonia == nil then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = 'grabtray',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Grab Tray",
|
||||
distance = 5,
|
||||
action = function()
|
||||
if amonia then
|
||||
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("bkr_prop_meth_tray_02a")
|
||||
while not HasModelLoaded("bkr_prop_meth_tray_02a") do
|
||||
Wait(0)
|
||||
end
|
||||
local trays = CreateObject("bkr_prop_meth_tray_02a", pos.x, pos.y, pos.z, true, true, true)
|
||||
AttachEntityToEntity(trays, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 28422), 0.01,-0.2, -0.2, 20.0, 0.0, 0.0, true, true, false, true, 1, true)
|
||||
tray = true
|
||||
exports['qb-target']:AddBoxZone("boxmeth",vector3(1012.04, -3194.96, -38.99),1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "boxmeth",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = -38-2,
|
||||
maxZ = -38+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'boxmeth',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Box Up Meth",
|
||||
distance = 5,
|
||||
action = function()
|
||||
if tray then
|
||||
tray = false
|
||||
DeleteObject(trays)
|
||||
local bucket = CreateObject(`bkr_prop_meth_bigbag_03a`, vector3(1012.85, -3194.29, -39.2), true, true, true)
|
||||
SetEntityHeading(bucket, 90.0)
|
||||
SmashMeth()
|
||||
exports['qb-target']:RemoveZone("boxmeth")
|
||||
exports['qb-target']:AddTargetEntity(bucket, {
|
||||
options = {
|
||||
{
|
||||
name = 'bucket',
|
||||
icon = 'fa-solid fa-car',
|
||||
label = 'Bag Meth',
|
||||
action = function()
|
||||
DeleteObject(bucket)
|
||||
amonia = nil
|
||||
heated = nil
|
||||
tray = nil
|
||||
BagMeth()
|
||||
TriggerServerEvent('md-drugs:server:getmeth')
|
||||
end,
|
||||
|
||||
}
|
||||
},
|
||||
})
|
||||
end
|
||||
end,
|
||||
canInteract = function()
|
||||
if tray then return true end
|
||||
end,
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
end,
|
||||
canInteract = function()
|
||||
if heated and amonia and tray == nil then return true end
|
||||
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
local current = "g_m_y_famdnf_01"
|
||||
lib.requestModel(current, 1000)
|
||||
local CurrentLocation = Config.MethHeistStart
|
||||
methdealer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, false, false)
|
||||
FreezeEntityPosition(methdealer, true)
|
||||
SetEntityHeading(methdealer,220.0)
|
||||
SetEntityInvincible(methdealer, true)
|
||||
exports['qb-target']:AddTargetEntity(methdealer, {
|
||||
options = {
|
||||
{
|
||||
label = "Get Mission",
|
||||
icon = "fas fa-eye",
|
||||
action = function()
|
||||
SpawnMethCarPedChase()
|
||||
QBCore.Functions.Notify("Car Has Been Marked On Your Map", "success")
|
||||
end,
|
||||
},
|
||||
}
|
||||
})
|
||||
end)
|
||||
@@ -0,0 +1,136 @@
|
||||
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 PolicecallOxy()
|
||||
print "Tell Your Dev They Didn't Follow The Readme"
|
||||
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
|
||||
lib.requestModel(ModelHash, 500)
|
||||
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 = {
|
||||
{
|
||||
event = "md-drugs:client:getfromtrunk",
|
||||
icon = "fas fa-box-circle-check",
|
||||
label = "Get Package",
|
||||
},
|
||||
}
|
||||
})
|
||||
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)
|
||||
oxyzone = lib.zones.sphere({
|
||||
coords = CurrentLocation,
|
||||
radius = 2,
|
||||
onEnter = function()
|
||||
RemoveBlip(deliveryBlip)
|
||||
end,
|
||||
})
|
||||
end
|
||||
if unlucky <= Config.PoliceAlertOxy then
|
||||
PolicecallOxy()
|
||||
end
|
||||
local current = "g_m_y_famdnf_01"
|
||||
lib.requestModel(current, 500)
|
||||
oxybuyer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, false, false)
|
||||
SetEntityHeading(oxybuyer, 180)
|
||||
FreezeEntityPosition(oxybuyer, true)
|
||||
SetEntityInvincible(oxybuyer, true)
|
||||
exports['qb-target']:AddTargetEntity(oxybuyer, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Talk To Buyer",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:giveoxybox"
|
||||
},
|
||||
}
|
||||
})
|
||||
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(oxybuyer)
|
||||
DetachEntity(carryPackage, true, true)
|
||||
DeleteObject(carryPackage)
|
||||
carryPackage = nil
|
||||
end)
|
||||
else
|
||||
QBCore.Functions.Notify("cant be empty handed idiot", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterCommand('prescriptionpad', function()
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.PharmaJob then
|
||||
lib.registerContext({
|
||||
id = 'prescriptionpad',
|
||||
title = "Prescription Pad",
|
||||
options = {
|
||||
{
|
||||
title = 'Give Vicodin',
|
||||
description = 'Give Vicodin ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
event = 'md-drugs:client:givevicodinprescription',
|
||||
},
|
||||
{
|
||||
title = 'Give Adderal',
|
||||
description = 'Give Adderal ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
event = 'md-drugs:client:giveadderalprescription',
|
||||
},
|
||||
{
|
||||
title = 'Give Morphine',
|
||||
description = 'Give Morphine ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
event = 'md-drugs:client:givemorphineprescription',
|
||||
|
||||
},
|
||||
{
|
||||
title = 'Give Xanax',
|
||||
description = 'Give Vicodin ',
|
||||
icon = 'fa-solid fa-file-prescription',
|
||||
event = 'md-drugs:client:givexanaxprescription',
|
||||
},
|
||||
}
|
||||
})
|
||||
lib.showContext('prescriptionpad')
|
||||
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,126 @@
|
||||
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
|
||||
Wait(3000)
|
||||
LoadModel('mushroom')
|
||||
TriggerEvent('shrooms:init')
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('onResourceStop', function(resourceName)
|
||||
if GetCurrentResourceName() == resourceName then
|
||||
SetModelAsNoLongerNeeded(GetHashKey('mushroom'))
|
||||
for k, v in pairs(shrooms) do
|
||||
if DoesEntityExist(v) then
|
||||
DeleteEntity(v) SetEntityAsNoLongerNeeded(v)
|
||||
end
|
||||
end
|
||||
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('mushroom')
|
||||
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)
|
||||
|
||||
|
||||
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,716 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
CreateThread(function()
|
||||
if Config.oxtarget then
|
||||
coketelein = exports.ox_target:addBoxZone({
|
||||
coords = Config.CokeTeleIn,
|
||||
size = vec(1,1,3),
|
||||
rotation = 0,
|
||||
debug = false,
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Enter Building",
|
||||
distance = 5,
|
||||
onSelect = function()
|
||||
DoScreenFadeOut(500)
|
||||
Wait(1000)
|
||||
SetEntityCoords(PlayerPedId(),Config.CokeTeleOut.x, Config.CokeTeleOut.y, Config.CokeTeleOut.z)
|
||||
Wait(1000)
|
||||
DoScreenFadeIn(500)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
coketeleout = exports.ox_target:addBoxZone({
|
||||
coords = Config.CokeTeleOut,
|
||||
size = vec(1,1,3),
|
||||
rotation = 0,
|
||||
debug = false,
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Exit Building",
|
||||
distance = 5,
|
||||
onSelect = function()
|
||||
DoScreenFadeOut(500)
|
||||
Wait(500)
|
||||
SetEntityCoords(PlayerPedId(),Config.CokeTeleIn)
|
||||
Wait(500)
|
||||
DoScreenFadeIn(500)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = vector3(1087.16, -3195.46, -38.99),
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makepowder",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "chop it up",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = vector3(1093.01, -3194.8, -38.99),
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cutcokeone",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "cut up",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = vector3(1090.19, -3194.8, -38.98),
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:bagcoke",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "bagging",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------------- lsd
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.lysergicacid,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getlysergic",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.diethylamide,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getdiethylamide",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.gettabs,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buytabs",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Buy Tabs",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------ heroin
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.dryplant,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:dryplant",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry out",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.cutheroinone,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:cutheroin",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Cut Heroin",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.fillneedle,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillneedle",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Needles",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------- crack
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.makecrack,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makecrackone",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "cook some crack",
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.bagcrack,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:bagcrack",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "bag some crack",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
------- pharma
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.FillPrescription,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:fillprescription",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Fill Prescription",
|
||||
},
|
||||
},
|
||||
})
|
||||
-------- oxy runs
|
||||
exports.ox_target:addBoxZone({
|
||||
coords = Config.Payfortruck,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:getoxytruck",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Pay For Truck",
|
||||
},
|
||||
}
|
||||
})
|
||||
------------ mescaline
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.DryOut,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:drymescaline",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Out",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.isosafrole,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stealisosafrole",
|
||||
icon = 'fas fa-sign-in-alt',
|
||||
label = 'Steal Isosafrole',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.mdp2p,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:stealmdp2p",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Steal mdp2p',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.rawxtcloc,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makingrawxtc",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Raw XTC',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.buypress,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buypress",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Buy Press',
|
||||
},
|
||||
},
|
||||
})
|
||||
exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47
|
||||
coords = Config.stamp,
|
||||
size = vec3(2,2,2),
|
||||
debugPoly = false,
|
||||
rotation = 45,
|
||||
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',
|
||||
},
|
||||
},
|
||||
})
|
||||
--------------------------------------- XTC
|
||||
else
|
||||
|
||||
exports['qb-target']:AddBoxZone("coketelein",Config.CokeTeleIn,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "coketelein",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.CokeTeleIn.z-2,
|
||||
maxZ = Config.CokeTeleIn.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Enter Building",
|
||||
action = function()
|
||||
DoScreenFadeOut(500)
|
||||
Wait(500)
|
||||
SetEntityCoords(PlayerPedId(),Config.CokeTeleOut)
|
||||
Wait(500)
|
||||
DoScreenFadeIn(500)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("CokeTeleOut",Config.CokeTeleOut,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "CokeTeleOut",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.CokeTeleOut.z-2,
|
||||
maxZ = Config.CokeTeleOut.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Exit Building",
|
||||
action = function()
|
||||
DoScreenFadeOut(500)
|
||||
Wait(500)
|
||||
SetEntityCoords(PlayerPedId(),Config.CokeTeleIn)
|
||||
Wait(500)
|
||||
DoScreenFadeIn(500)
|
||||
end,
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("makepowder",Config.MakePowder,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "makepowder",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MakePowder.z-2,
|
||||
maxZ = Config.MakePowder.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:makepowder",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "chop it up",
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
----- 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.z-2,
|
||||
maxZ = Config.lysergicacid.z+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.z-2,
|
||||
maxZ = Config.diethylamide.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:getdiethylamide",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "stealing",
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("buylabkit2",Config.gettabs,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "buylabkit2",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.gettabs.z-2,
|
||||
maxZ = Config.gettabs.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:buytabs",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Buy Tabs",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("dryplant",Config.dryplant,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "dryplant",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.dryplant.z-2,
|
||||
maxZ = Config.dryplant.z+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.z-2,
|
||||
maxZ = Config.cutheroinone.z+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.z-2,
|
||||
maxZ = Config.fillneedle.z+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("crackmakeone",Config.makecrack,1.5, 1.75, { -- 963.37, -2122.95, 31.47
|
||||
name = "crackmakeone",
|
||||
heading = 156.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.makecrack.z-2,
|
||||
maxZ = Config.makecrack.z+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.z-2,
|
||||
maxZ = Config.bagcrack.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:bagcrack",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Bag 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.z-2,
|
||||
maxZ = Config.FillPrescription.z+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.z-2,
|
||||
maxZ = Config.DryOut.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
event = "md-drugs:client:drymescaline",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Out",
|
||||
|
||||
},
|
||||
},
|
||||
distance = 2.5
|
||||
})
|
||||
-------------- oxy run
|
||||
exports['qb-target']:AddBoxZone("getoxytruck",Config.Payfortruck,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "getoxytruck",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.Payfortruck.z-2,
|
||||
maxZ = Config.Payfortruck.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:getoxytruck",
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Pay For Truck",
|
||||
},
|
||||
}
|
||||
})
|
||||
--------------------------------------- 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.z-2,
|
||||
maxZ = Config.isosafrole.z+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.z-2,
|
||||
maxZ = Config.mdp2p.z+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.z-2,
|
||||
maxZ = Config.rawxtcloc.z+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.z-2,
|
||||
maxZ = Config.buypress.z+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.z-2,
|
||||
maxZ = Config.stamp.z+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
|
||||
end)
|
||||
@@ -0,0 +1,99 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
CreateThread(function()
|
||||
local current = "g_m_y_famdnf_01"
|
||||
lib.requestModel(current, timeout)
|
||||
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)
|
||||
if Config.OxInv then
|
||||
if Config.oxtarget then
|
||||
options = {
|
||||
{
|
||||
label = "Travelling Merchant",
|
||||
icon = "fas fa-eye",
|
||||
onSelect = function()
|
||||
lib.showContext('travellingmerchant')
|
||||
end,
|
||||
},
|
||||
}
|
||||
exports.ox_target:addLocalEntity(travellingmerchant, options)
|
||||
else
|
||||
exports['qb-target']:AddTargetEntity(travellingmerchant, {
|
||||
options = {
|
||||
{
|
||||
label = "Travelling Merchant",
|
||||
icon = "fas fa-eye",
|
||||
action = function()
|
||||
lib.showContext('travellingmerchant')
|
||||
end,
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
else
|
||||
if Config.oxtarget then
|
||||
options = {
|
||||
{
|
||||
label = "Travelling Merchant",
|
||||
icon = "fas fa-eye",
|
||||
onSelect = function()
|
||||
TriggerServerEvent("inventory:server:OpenInventory", "shop", "travelling merchant", Config.Items)
|
||||
end,
|
||||
},
|
||||
}
|
||||
exports.ox_target:addLocalEntity(travellingmerchant, options)
|
||||
else
|
||||
exports['qb-target']:AddTargetEntity(travellingmerchant, {
|
||||
options = {
|
||||
{
|
||||
label = "Travelling Merchant",
|
||||
icon = "fas fa-eye",
|
||||
action = function()
|
||||
TriggerServerEvent("inventory:server:OpenInventory", "shop", "travelling merchant", Config.Items)
|
||||
end,
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
local ShopMenu = {}
|
||||
|
||||
for k, v in pairs (Config.Items.items) do
|
||||
ShopMenu[#ShopMenu + 1] = {
|
||||
icon = "nui://".."ps-inventory/html/images/"..QBCore.Shared.Items[v.name].image,
|
||||
header = v.label,
|
||||
title = v.label,
|
||||
event = "md-drugs:client:travellingmerchantox",
|
||||
args = {
|
||||
item = v.name,
|
||||
cost = v.price,
|
||||
amount = v.amount,
|
||||
}
|
||||
}
|
||||
|
||||
lib.registerContext({id = 'travellingmerchant',title = "Travelling Merchant", options = ShopMenu})
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:travellingmerchantox", function(data) local dialog
|
||||
local price = data.cost
|
||||
local settext = "Amnt: "..data.amount.." | Cost: "..price or "Cost: "..price
|
||||
local max = data.amount
|
||||
local dialog = exports.ox_lib:inputDialog(data.item .."!", {
|
||||
{ type = 'select', label = "Payment Type", default = "cash",
|
||||
options = {
|
||||
{ value = "cash"},
|
||||
{ value = "bank"},
|
||||
}
|
||||
},
|
||||
{ type = 'number', label = "Amount to buy", description = settext, min = 0, max = max, default = 1 },
|
||||
})
|
||||
if data.cost == "Free" then data.cost = 0 end
|
||||
TriggerServerEvent("md-drugs:server:travellingmerchantox", dialog[2], dialog[1], data.item, data.cost )
|
||||
end)
|
||||
+599
@@ -0,0 +1,599 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local WeedPlant = {}
|
||||
local exploded = nil
|
||||
function LoadModel(hash)
|
||||
hash = GetHashKey(hash)
|
||||
RequestModel(hash)
|
||||
while not HasModelLoaded(hash) do
|
||||
Wait(3000)
|
||||
end
|
||||
end
|
||||
|
||||
RegisterNetEvent('weed:respawnCane', function(loc)
|
||||
local v = GlobalState.WeedPlant[loc]
|
||||
local hash = GetHashKey(v.model)
|
||||
if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||
if not WeedPlant[loc] then
|
||||
WeedPlant[loc] = CreateObject(hash, v.location.x, v.location.y, v.location.z-3.5, false, true, true)
|
||||
SetEntityAsMissionEntity(WeedPlant[loc], true, true)
|
||||
FreezeEntityPosition(WeedPlant[loc], true)
|
||||
SetEntityHeading(WeedPlant[loc], v.heading)
|
||||
exports['qb-target']:AddTargetEntity(WeedPlant[loc], {
|
||||
options = {
|
||||
{
|
||||
icon = "fas fa-hand",
|
||||
label = "Pick Weed",
|
||||
action = function()
|
||||
QBCore.Functions.Progressbar("pick_cane", "picking Weed 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("weed:pickupCane", loc)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end, function() -- Cancel
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('weed:removeCane', function(loc)
|
||||
if DoesEntityExist(WeedPlant[loc]) then DeleteEntity(WeedPlant[loc]) end
|
||||
WeedPlant[loc] = nil
|
||||
end)
|
||||
|
||||
RegisterNetEvent("weed:init", function()
|
||||
for k, v in pairs (GlobalState.WeedPlant) do
|
||||
local hash = GetHashKey(v.model)
|
||||
if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||
if not v.taken then
|
||||
WeedPlant[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z-3.5, false, true, true)
|
||||
SetEntityAsMissionEntity(WeedPlant[k], true, true)
|
||||
FreezeEntityPosition(WeedPlant[k], true)
|
||||
SetEntityHeading(WeedPlant[k], v.heading)
|
||||
exports['qb-target']:AddTargetEntity(WeedPlant[k], {
|
||||
options = {
|
||||
{
|
||||
icon = "fas fa-hand",
|
||||
label = "Pick Weed",
|
||||
action = function()
|
||||
QBCore.Functions.Progressbar("pick_cane", "picking Weed 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("weed:pickupCane", k)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end, function() -- Cancel
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('onResourceStart', function(resource)
|
||||
if resource == GetCurrentResourceName() then
|
||||
LoadModel('bkr_prop_weed_lrg_01b')
|
||||
TriggerEvent('weed:init')
|
||||
end
|
||||
end)
|
||||
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
|
||||
Wait(3000)
|
||||
LoadModel('bkr_prop_weed_lrg_01b')
|
||||
TriggerEvent('weed:init')
|
||||
end)
|
||||
|
||||
AddEventHandler('onResourceStop', function(resourceName)
|
||||
if GetCurrentResourceName() == resourceName then
|
||||
SetModelAsNoLongerNeeded(GetHashKey('bkr_prop_weed_lrg_01b'))
|
||||
for k, v in pairs(WeedPlant) do
|
||||
if DoesEntityExist(v) then
|
||||
DeleteEntity(v) SetEntityAsNoLongerNeeded(v)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
|
||||
|
||||
for k, v in pairs (Config.WeedDry) do
|
||||
|
||||
exports['qb-target']:AddBoxZone("weeddry"..k,v,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "ingridientsmeth"..k,
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = v.z-2,
|
||||
maxZ = v.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'dryweed',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Dry Weed",
|
||||
distance = 1,
|
||||
items = "wetcannabis",
|
||||
action = function()
|
||||
if drying then
|
||||
QBCore.Functions.Notify("Already Drying One Out", "error")
|
||||
else
|
||||
local loc = GetEntityCoords(PlayerPedId())
|
||||
local weedplant = CreateObject("bkr_prop_weed_drying_01a", loc.x, loc.y+.2, loc.z, true, false)
|
||||
drying = true
|
||||
FreezeEntityPosition(weedplant, true)
|
||||
QBCore.Functions.Notify("Wait A little Bit To Dry", "success")
|
||||
Wait(math.random(1000,5000))
|
||||
QBCore.Functions.Notify("Take Down The Weed", "success")
|
||||
exports['qb-target']:AddTargetEntity(weedplant, {
|
||||
options = {
|
||||
{
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Pick Up Weed",
|
||||
action = function()
|
||||
DeleteEntity(weedplant)
|
||||
drying = false
|
||||
TriggerServerEvent('md-drugs:server:dryoutweed')
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
exports['qb-target']:AddBoxZone("teleinweed",Config.Telein,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "teleinweed",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.Telein.z-2,
|
||||
maxZ = Config.Telein.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Enter Building",
|
||||
distance = 5,
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),Config.Teleout)
|
||||
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("teleinweedout",Config.Teleout,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "teleinweedout",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.Teleout.z-2,
|
||||
maxZ = Config.Teleout.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'teleout',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Exit Building",
|
||||
distance = 5,
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(),Config.Telein)
|
||||
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("MakeButter",Config.MakeButter,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "MakeButter",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MakeButter.z-2,
|
||||
maxZ = Config.MakeButter.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'butter',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Make Butter",
|
||||
action = function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Making Canna Butter", 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:makebutter")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
},
|
||||
{
|
||||
name = 'makebrownies',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Make Brownies",
|
||||
item = "cannabutter",
|
||||
action = function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Making Special Brownies", 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:makebrownies")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
},
|
||||
{
|
||||
name = 'makecookies',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Make Cookies",
|
||||
item = "cannabutter",
|
||||
action = function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Making Special Cookies", 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:makecookies")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
},
|
||||
{
|
||||
name = 'makechocolate',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Make Chocolate",
|
||||
item = "cannabutter",
|
||||
action = function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Making Special Chocolate", 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:makechocolate")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
},
|
||||
{
|
||||
name = 'makemuffin',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Make Muffin",
|
||||
item = "cannabutter",
|
||||
action = function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Making Special Muffin", 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:makemuffin")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if Config.Joblock then
|
||||
if QBCore.Functions.GetPlayerData().job.name == Config.weedjob then
|
||||
return true end
|
||||
else
|
||||
return true end end,
|
||||
},
|
||||
},
|
||||
})
|
||||
exports['qb-target']:AddBoxZone("makeoil",Config.MakeOil,1.5, 1.75, { -- 963.37, .z-2122.95, 31.47
|
||||
name = "makeoil",
|
||||
heading = 11.0,
|
||||
debugPoly = false,
|
||||
minZ = Config.MakeOil.z-2,
|
||||
maxZ = Config.MakeOil.z+2,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
name = 'Oil',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = "Make Oil",
|
||||
action = function()
|
||||
exports["rpemotes"]:EmoteCommandStart("uncuff", 0)
|
||||
QBCore.Functions.Progressbar("drink_something", "Making Wax Oil", 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:makeoil")
|
||||
ClearPedTasks(PlayerPedId())
|
||||
else
|
||||
local explosion = math.random(1,100)
|
||||
local loc = GetEntityCoords(PlayerPedId())
|
||||
if explosion <= 99 then
|
||||
AddExplosion(loc.x, loc.y, loc.z, 49, 10, true, false, true, true)
|
||||
exploded = true
|
||||
QBCore.Functions.Notify("Stove Is Too Hot Wait 30 Seconds To Cool Down", "error")
|
||||
Wait(1000 * 30)
|
||||
exploded = nil
|
||||
end
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end
|
||||
end, 3, 8) -- NumberOfCircles,
|
||||
end)
|
||||
end,
|
||||
canInteract = function()
|
||||
if exploded == nil then return true end
|
||||
end,
|
||||
},
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
BikerWeedFarm = exports['bob74_ipl']:GetBikerWeedFarmObject()
|
||||
BikerWeedFarm.Style.Set(BikerWeedFarm.Style.upgrade)
|
||||
BikerWeedFarm.Security.Set(BikerWeedFarm.Security.upgrade)
|
||||
BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.chairs, true)
|
||||
BikerWeedFarm.Details.Enable({BikerWeedFarm.Details.production, BikerWeedFarm.Details.chairs, BikerWeedFarm.Details.drying}, true)
|
||||
BikerWeedFarm.Plant1.Clear(false)
|
||||
BikerWeedFarm.Plant2.Clear(false)
|
||||
BikerWeedFarm.Plant3.Clear(false)
|
||||
BikerWeedFarm.Plant4.Clear(false)
|
||||
BikerWeedFarm.Plant5.Clear(false)
|
||||
BikerWeedFarm.Plant6.Clear(false)
|
||||
BikerWeedFarm.Plant7.Clear(false)
|
||||
BikerWeedFarm.Plant8.Clear(false)
|
||||
BikerWeedFarm.Plant9.Clear(false)
|
||||
RefreshInterior(BikerWeedFarm.interiorId)
|
||||
stove = CreateObject("prop_cooker_03",vector3(1045.49, -3198.46, -38.15-1), true, false)
|
||||
SetEntityHeading(stove, 270.00)
|
||||
FreezeEntityPosition(stove, true)
|
||||
stove2 = CreateObject("prop_cooker_03",vector3(1038.90, -3198.66, -38.17-1), true, false)
|
||||
SetEntityHeading(stove2, 90.00)
|
||||
FreezeEntityPosition(stove2, true)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:bluntwraps', function(args)
|
||||
lib.registerContext({
|
||||
id = 'bluntroll',
|
||||
title = 'Blunt Types',
|
||||
menu = 'bluntroll',
|
||||
options = {
|
||||
{
|
||||
title = 'Roll Blunt',
|
||||
description = 'Roll A Regular Blunt',
|
||||
icon = 'check',
|
||||
serverEvent = 'md-drugs:server:rollblunt',
|
||||
},
|
||||
{
|
||||
title = 'Dip Blunt Wrap In Lean',
|
||||
description = 'Roll A Lean Blunt',
|
||||
icon = 'check',
|
||||
serverEvent = 'md-drugs:server:rollleanblunt',
|
||||
},
|
||||
{
|
||||
title = 'Dip Blunt Wrap In Dextro',
|
||||
description = 'Roll A Dextro Blunt',
|
||||
icon = 'check',
|
||||
serverEvent = 'md-drugs:server:rolldextroblunt',
|
||||
},
|
||||
{
|
||||
title = 'Roll A Chewy Blunt',
|
||||
description = 'Roll A Chewy Blunt',
|
||||
icon = 'check',
|
||||
serverEvent = 'md-drugs:server:rollchewyblunt',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
lib.showContext('bluntroll')
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:rollanim", function()
|
||||
exports["rpemotes"]:EmoteCommandStart('uncuff', 0)
|
||||
Wait(4000)
|
||||
exports["rpemotes"]:EmoteCancel(forceCancel)
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:dodabs", function()
|
||||
exports["rpemotes"]:EmoteCommandStart('bong2', 0)
|
||||
AlienEffect()
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:edibles", function()
|
||||
QBCore.Functions.Progressbar("use_lsd", "Eating Edibles", 1750, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
}, {
|
||||
animDict = "mp_suicide",
|
||||
anim = "pill",
|
||||
flags = 49,
|
||||
}, {}, {}, function()
|
||||
AlienEffect()
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
local WeedShop = {}
|
||||
local current = "u_m_m_jesus_01"
|
||||
lib.requestModel(current, timeout)
|
||||
local CurrentLocation = vector3(1030.46, -3203.63, -38.2)
|
||||
WeedGuy = CreatePed(0,current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, CurrentLocation.h, false, false)
|
||||
FreezeEntityPosition(WeedGuy, true)
|
||||
SetEntityInvincible(WeedGuy, true)
|
||||
SetEntityHeading(WeedGuy, 270.0)
|
||||
exports['qb-target']:AddTargetEntity(WeedGuy, {
|
||||
options = {
|
||||
{
|
||||
label = "Weed Shop",
|
||||
icon = "fas fa-eye",
|
||||
action = function()
|
||||
lib.showContext('WeedShop')
|
||||
end,
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
})
|
||||
for k, v in pairs (Config.Weed.items) do
|
||||
WeedShop[#WeedShop + 1] = {
|
||||
icon = "nui://".."ps-inventory/html/images/"..QBCore.Shared.Items[v.name].image,
|
||||
header = v.label,
|
||||
title = v.label,
|
||||
event = "md-drugs:client:WeedShop",
|
||||
args = {
|
||||
item = v.name,
|
||||
cost = v.price,
|
||||
amount = v.amount,
|
||||
}
|
||||
}
|
||||
|
||||
lib.registerContext({id = 'WeedShop',title = "Weed Shop", options = WeedShop})
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:WeedShop", function(data)
|
||||
local price = data.cost
|
||||
local settext = "Amnt: "..data.amount.." | Cost: "..price or "Cost: "..price
|
||||
local max = data.amount
|
||||
local dialog = exports.ox_lib:inputDialog(data.item .."!", {
|
||||
{ type = 'select', label = "Payment Type", default = "cash",
|
||||
options = {
|
||||
{ value = "cash"},
|
||||
{ value = "bank"},
|
||||
}
|
||||
},
|
||||
{ type = 'number', label = "Amount to buy", description = settext, min = 0, max = max, default = 1 },
|
||||
})
|
||||
if data.cost == "Free" then data.cost = 0 end
|
||||
TriggerServerEvent("md-drugs:server:travellingmerchantox", dialog[2], dialog[1], data.item, data.cost )
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:smokeblunts', function(itemName)
|
||||
exports["rpemotes"]:EmoteCommandStart('smoke', 0)
|
||||
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
|
||||
Wait(1000)
|
||||
if itemName == "blunts" then
|
||||
AlienEffect()
|
||||
elseif itemName == "leanblunts" or itemName == "dextroblunts" then
|
||||
EcstasyEffect()
|
||||
else
|
||||
TrevorEffect()
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,456 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
local deliveryBlip = nil
|
||||
function PoliceCallWholesale()
|
||||
print " tell your devs they didnt do something"
|
||||
end
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getloccoke")
|
||||
AddEventHandler("md-drugs:client:getloccoke", function()
|
||||
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 unlucky <= Config.AlertPoliceWholesale then
|
||||
PoliceCallWholesale()
|
||||
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)
|
||||
lib.requestModel("g_m_y_famdnf_01", 500)
|
||||
local current = "g_m_y_famdnf_01"
|
||||
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",
|
||||
action = function()
|
||||
local luck = math.random(1,100)
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
if luck <= Config.SuccessfulChance then
|
||||
TriggerEvent("md-drugs:client:successsalecoke")
|
||||
else
|
||||
|
||||
TriggerEvent("md-drugs:client:setupcoke")
|
||||
Wait(3000)
|
||||
SetUpPeds()
|
||||
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
|
||||
|
||||
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)
|
||||
----------heroin
|
||||
RegisterNetEvent("md-drugs:client:getloccrack")
|
||||
AddEventHandler("md-drugs:client:getloccrack", function()
|
||||
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 unlucky <= Config.AlertPoliceWholesale then
|
||||
PoliceCallWholesale()
|
||||
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)
|
||||
lib.requestModel("g_m_y_famdnf_01", 500)
|
||||
local current = "g_m_y_famdnf_01"
|
||||
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",
|
||||
action = function()
|
||||
local luck = math.random(1,100)
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
if luck <= Config.SuccessfulChance then
|
||||
TriggerEvent("md-drugs:client:successsalecrack")
|
||||
else
|
||||
|
||||
TriggerEvent("md-drugs:client:setupcrack")
|
||||
Wait(3000)
|
||||
SetUpPeds()
|
||||
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
|
||||
|
||||
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 = Config.oxylocations[math.random(#Config.oxylocations)]
|
||||
local unluck = math.random(1,100)
|
||||
if deliveryBlip ~= nil then
|
||||
RemoveBlip(deliveryBlip)
|
||||
end
|
||||
if unlucky <= Config.AlertPoliceWholesale then
|
||||
PoliceCallWholesale()
|
||||
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)
|
||||
lib.requestModel("g_m_y_famdnf_01", 500)
|
||||
local current = "g_m_y_famdnf_01"
|
||||
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",
|
||||
action = function()
|
||||
local luck = math.random(1,100)
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
if luck <= Config.SuccessfulChance then
|
||||
TriggerEvent("md-drugs:client:successsaleheroin")
|
||||
else
|
||||
|
||||
TriggerEvent("md-drugs:client:setupheroin")
|
||||
Wait(3000)
|
||||
SetUpPeds()
|
||||
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
|
||||
|
||||
|
||||
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")
|
||||
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
|
||||
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 = Config.oxylocations[math.random(#Config.oxylocations)]
|
||||
local unluck = math.random(1,100)
|
||||
if deliveryBlip ~= nil then
|
||||
RemoveBlip(deliveryBlip)
|
||||
end
|
||||
if unlucky <= Config.AlertPoliceWholesale then
|
||||
PoliceCallWholesale()
|
||||
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)
|
||||
lib.requestModel("g_m_y_famdnf_01", 500)
|
||||
local current = "g_m_y_famdnf_01"
|
||||
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",
|
||||
action = function()
|
||||
local luck = math.random(1,100)
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
if luck <= Config.SuccessfulChance then
|
||||
TriggerEvent("md-drugs:client:successsalelsd")
|
||||
else
|
||||
|
||||
TriggerEvent("md-drugs:client:setuplsd")
|
||||
Wait(3000)
|
||||
SetUpPeds()
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
|
||||
|
||||
|
||||
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")
|
||||
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
|
||||
|
||||
DeleteEntity(drugdealer)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
------------------------- xtc
|
||||
RegisterNetEvent("md-drugs:client:getlocxtc")
|
||||
AddEventHandler("md-drugs:client:getlocxtc", function()
|
||||
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 unlucky <= Config.AlertPoliceWholesale then
|
||||
PoliceCallWholesale()
|
||||
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 = "xtcsell", debugPoly = false })
|
||||
druglocation:onPlayerInOut(function(isPointInside) if isPointInside then RemoveBlip(deliveryBlip) end end)
|
||||
lib.requestModel("g_m_y_famdnf_01", 500)
|
||||
local current = "g_m_y_famdnf_01"
|
||||
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",
|
||||
action = function()
|
||||
local luck = math.random(1,100)
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
if luck <= Config.SuccessfulChance then
|
||||
TriggerEvent("md-drugs:client:successsalextc")
|
||||
else
|
||||
|
||||
TriggerEvent("md-drugs:client:setupxtc")
|
||||
Wait(3000)
|
||||
SetUpPeds()
|
||||
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
|
||||
|
||||
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:successsalextc")
|
||||
AddEventHandler("md-drugs:client:successsalextc", 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
|
||||
ClearPedTasks(PlayerPedId())
|
||||
TriggerServerEvent("md-drugs:server:wholesalextc")
|
||||
DeleteEntity(drugdealer)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:setupxtc")
|
||||
AddEventHandler("md-drugs:client:setupxtc", 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
|
||||
ClearPedTasks(PlayerPedId())
|
||||
|
||||
DeleteEntity(drugdealer)
|
||||
ClearPedTasks(PlayerPedId())
|
||||
end)
|
||||
end)
|
||||
+805
@@ -0,0 +1,805 @@
|
||||
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)
|
||||
PlaceObjectOnGroundProperly(quadpress)
|
||||
exports['qb-target']:AddTargetEntity(quadpress, {
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:makextcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White quad Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeredxtcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red quad Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeorangextcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange quad Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makebluextcquad",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue quad Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:getquadpressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
}
|
||||
})
|
||||
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)
|
||||
PlaceObjectOnGroundProperly(triplepress)
|
||||
exports['qb-target']:AddTargetEntity(triplepress, {
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:makextctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White triple Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeredxtctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red triple Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeorangextctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange triple Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makebluextctriple",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue triple Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:gettriplepressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
}
|
||||
})
|
||||
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)
|
||||
PlaceObjectOnGroundProperly(dualpress)
|
||||
exports['qb-target']:AddTargetEntity(dualpress, {
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:makextcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeredxtcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeorangextcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange dual Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makebluextcdual",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue dual Stack',
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:getdualpressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
}
|
||||
})
|
||||
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)
|
||||
PlaceObjectOnGroundProperly(singlepress)
|
||||
exports['qb-target']:AddTargetEntity(singlepress, {
|
||||
options = {
|
||||
{
|
||||
event = "md-drugs:client:makextcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make White Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeredxtcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make Red Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makeorangextcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make orange Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:makebluextcsingle",
|
||||
icon = 'fas fa-eye',
|
||||
label = 'Make blue Single Stack',
|
||||
|
||||
},
|
||||
{
|
||||
event = "md-drugs:client:getsinglepressback",
|
||||
icon = "fas fa-eye",
|
||||
label = "Pick Up",
|
||||
},
|
||||
}
|
||||
})
|
||||
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", "Buying Press", 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", "Buying Press", 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()
|
||||
lib.registerContext({
|
||||
id = 'buypresses',
|
||||
title = 'Purchase Presses',
|
||||
options = {
|
||||
|
||||
{
|
||||
title = 'Single Press',
|
||||
description = 'Buy a single press for 20k',
|
||||
icon = "fa-solid fa-wallet",
|
||||
event = 'md-drugs:client:getsinglepress',
|
||||
},
|
||||
{
|
||||
title = 'Exchange Single For Dual',
|
||||
description = '20 of each unstamped single stack pill and your single press ',
|
||||
icon = "fa-solid fa-wallet",
|
||||
event = 'md-drugs:client:exchangepresses',
|
||||
},
|
||||
{
|
||||
title = 'Exchange Dual For Triple',
|
||||
description = '50 of each unstamped dual stack pill and your dual press ',
|
||||
icon = "fa-solid fa-wallet",
|
||||
event = 'md-drugs:client:exchangepresses',
|
||||
},
|
||||
{
|
||||
title = 'Exchange Triple For Quad',
|
||||
description = '150 of each unstamped Triple stack pill and your triple press ',
|
||||
icon = "fa-solid fa-wallet",
|
||||
event = 'md-drugs:client:exchangepresses',
|
||||
}
|
||||
}
|
||||
})
|
||||
lib.showContext('buypresses')
|
||||
end)
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
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 {
|
||||
'@ox_lib/init.lua',
|
||||
'shared/**.lua',
|
||||
}
|
||||
|
||||
|
||||
lua54 'yes'
|
||||
|
||||
dependency '/assetpacks'
|
||||
dependency 'bob74_ipl'
|
||||
files {
|
||||
'stream/mushroom.ytyp'
|
||||
}
|
||||
|
||||
data_file 'DLC_ITYP_REQUEST' 'stream/mushroom.ytyp'
|
||||
@@ -0,0 +1,365 @@
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
<h1>Support</h1>
|
||||
|
||||
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
|
||||
|
||||
[My Community Discord Invite Link](https://discord.gg/TwBaVECdGM)
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
<h1>Credits</h1>
|
||||
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)
|
||||
|
||||
[Samuel's Tebex.](https://fivem.samueldev.shop/)
|
||||
|
||||
Shout out to [STACHY225](https://babiczind.tebex.io/category/2103836) for working out the meth network animations!
|
||||
|
||||
- Big Credit to [Bostra](https://discord.gg/5ncbwMNq). 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. He also made the cute mushrooms!<br>
|
||||
- Big Credit to Feisty. She made all the images that look good. Seriously you can tell which ones I forgot to ask her for. <br>
|
||||
- shout out to my beta testers who had to deal with me a lot! <br>
|
||||
|
||||
|
||||
- Our partner [1of1 Servers]( https://1of1servers.com/) and their [discord](https://discord.gg/1of1servers) for their amazing server hosting! absolutely top notch
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
<h1>Dependencies</h1>
|
||||
|
||||
- [qb-core](https://github.com/qbcore-framework/qb-core)
|
||||
|
||||
- [LJ/PS](https://github.com/Project-Sloth/ps-inventory) or [qb inventory](https://github.com/qbcore-framework/qb-inventory) or [ox_inventory](https://github.com/overextended/ox_inventory/releases/tag/v2.36.1)
|
||||
|
||||
- [ps-buffs](https://github.com/Project-Sloth/ps-buf)
|
||||
|
||||
- [ps-ui](https://github.com/Project-Sloth/ps-ui)
|
||||
|
||||
- [qb-target](https://github.com/qbcore-framework/qb-target)
|
||||
|
||||
- [ polyzone](https://github.com/mkafrin/PolyZone)
|
||||
|
||||
- [RPEmotes](https://github.com/TayMcKenzieNZ/rpemotes)
|
||||
|
||||
- [ox_lib](https://github.com/overextended/ox_lib/releases/tag/v3.12.0)
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
<h1>How to install like a fuckin bosssssss</h1>
|
||||
|
||||
- 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"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcrackedstagetwo"] = {["name"] = "baggedcrackedstagetwo", ["label"] = "Better Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag2.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcrackedstagethree"] = {["name"] = "baggedcrackedstagethree", ["label"] = "Best Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag3.png", ["unique"] = false, ["useable"] = true, ["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"] = "Vicie Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "vicodinprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["adderal_prescription"] = {["name"] = "adderal_prescription", ["label"] = "Mdderal Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "adderalprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["morphine_prescription"] = {["name"] = "morphine_prescription", ["label"] = "Morphin Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "morphineprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["xanax_prescription"] = {["name"] = "xanax_prescription", ["label"] = "Zany Prescription", ["weight"] = 250, ["type"] = "item", ["image"] = "xanaxprescription.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
['adderal'] = {['name'] = 'adderal', ['label'] = 'Madderal', ['weight'] = 100, ['type'] = 'item', ['image'] = 'adderal.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['vicodin'] = {['name'] = 'vicodin', ['label'] = 'Vicie', ['weight'] = 100, ['type'] = 'item', ['image'] = 'vicodin.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['morphine'] = {['name'] = 'morphine', ['label'] = 'Morphin', ['weight'] = 100, ['type'] = 'item', ['image'] = 'morphine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['xanax'] = {['name'] = 'xanax', ['label'] = 'Zany', ['weight'] = 100, ['type'] = 'item', ['image'] = 'xanax.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['adderalbottle'] = {['name'] = 'adderalbottle', ['label'] = 'Madderal Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['vicodinbottle'] = {['name'] = 'vicodinbottle', ['label'] = 'Vicie Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['morphinebottle'] = {['name'] = 'morphinebottle', ['label'] = 'Morphin Bottle', ['weight'] = 100, ['type'] = 'item', ['image'] = 'pillbottle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
|
||||
['xanaxbottle'] = {['name'] = 'xanaxbottle', ['label'] = 'Zany 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"] = ""},
|
||||
["mdlean"] = {["name"] = "mdlean", ["label"] = "Sizzurup", ['weight'] = 100, ["type"] = "item", ["image"] = "Sizzurup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["mdreddextro"] = {["name"] = "mdreddextro", ["label"] = "Red Dextro", ['weight'] = 100, ["type"] = "item", ["image"] = "reddextro.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["wetcannabis"] = {["name"] = "wetcannabis", ["label"] = "Wet Cannabis", ['weight'] = 100, ["type"] = "item", ["image"] = "wetcannabis.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["drycannabis"] = {["name"] = "drycannabis", ["label"] = "Dry Cannabis", ['weight'] = 100, ["type"] = "item", ["image"] = "driedcannabis.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["weedgrinder"] = {["name"] = "weedgrinder", ["label"] = "Weed Grinder", ['weight'] = 100, ["type"] = "item", ["image"] = "weedgrinder.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["mdbutter"] = {["name"] = "mdbutter", ["label"] = "Butter", ['weight'] = 100, ["type"] = "item", ["image"] = "butter.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cannabutter"] = {["name"] = "cannabutter", ["label"] = "Canna-Butter", ['weight'] = 100, ["type"] = "item", ["image"] = "cannabutter.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialbrownie"] = {["name"] = "specialbrownie", ["label"] = "Special Brownie", ['weight'] = 100, ["type"] = "item", ["image"] = "chocolate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialcookie"] = {["name"] = "specialcookie", ["label"] = "Special Cookie", ['weight'] = 100, ["type"] = "item", ["image"] = "specialcookie.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialmuffin"] = {["name"] = "specialmuffin", ["label"] = "Special Muffin", ['weight'] = 100, ["type"] = "item", ["image"] = "specialmuffin.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialchocolate"] = {["name"] = "specialchocolate", ["label"] = "Special Chocolate", ['weight'] = 100, ["type"] = "item", ["image"] = "specialchocolate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["grindedweed"] = {["name"] = "grindedweed", ["label"] = "Keef", ['weight'] = 100, ["type"] = "item", ["image"] = "keef.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["flour"] = {["name"] = "flour", ["label"] = "Flour", ['weight'] = 100, ["type"] = "item", ["image"] = "flour.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["chocolate"] = {["name"] = "chocolate", ["label"] = "Chocolate", ['weight'] = 100, ["type"] = "item", ["image"] = "chocolate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["ephedrine"] = {["name"] = "ephedrine", ["label"] = "Ephedrine", ['weight'] = 100, ["type"] = "item", ["image"] = "ephedrine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["acetone"] = {["name"] = "acetone", ["label"] = "Acetone", ['weight'] = 100, ["type"] = "item", ["image"] = "acetone.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["methbags"] = {["name"] = "methbags", ["label"] = "Meth", ['weight'] = 100, ["type"] = "item", ["image"] = "methbags.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blunt"] = {["name"] = "blunt", ["label"] = "Blunts", ['weight'] = 100, ["type"] = "item", ["image"] = "blunt.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["butane"] = {["name"] = "butane", ["label"] = "Butane", ['weight'] = 100, ["type"] = "item", ["image"] = "butane.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["butanetorch"] = {["name"] = "butanetorch", ["label"] = "Butane Torch", ['weight'] = 100, ["type"] = "item", ["image"] = "butanetorch.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dabrig"] = {["name"] = "dabrig", ["label"] = "Dab Rig", ['weight'] = 100, ["type"] = "item", ["image"] = "dabrig2.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["mdwoods"] = {["name"] = "mdwoods", ["label"] = "MDWOODS", ['weight'] = 100, ["type"] = "item", ["image"] = "mdwoods.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["ciggie"] = {["name"] = "ciggie", ["label"] = "Ciggie", ['weight'] = 100, ["type"] = "item", ["image"] = "ciggie.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["tobacco"] = {["name"] = "tobacco", ["label"] = "Tobacco", ['weight'] = 100, ["type"] = "item", ["image"] = "tobacco.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["shatter"] = {["name"] = "shatter", ["label"] = "Shatter", ['weight'] = 100, ["type"] = "item", ["image"] = "shatter.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["bluntwrap"] = {["name"] = "bluntwrap", ["label"] = "Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "bluntwrap.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["leanbluntwrap"] = {["name"] = "leanbluntwrap", ["label"] = "Lean Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "leanbluntwrap.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dextroblunt"] = {["name"] = "dextroblunt", ["label"] = "Dextro Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "dextroblunt.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dextrobluntwrap"] = {["name"] = "dextrobluntwrap", ["label"] = "Dextro Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "dextrobluntwrap.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["leanblunts"] = {["name"] = "leanblunts", ["label"] = "Lean Blunts", ['weight'] = 100, ["type"] = "item", ["image"] = "leanblunts.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dextroblunts"] = {["name"] = "dextroblunts", ["label"] = "Dextro Blunts", ['weight'] = 100, ["type"] = "item", ["image"] = "dextroblunts.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["chewyblunt"] = {["name"] = "chewyblunt", ["label"] = "Chewy", ['weight'] = 100, ["type"] = "item", ["image"] = "blunt.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["sprunk"] = {["name"] = "sprunk", ["label"] = "Sprunk", ['weight'] = 100, ["type"] = "item", ["image"] = "sprunk.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["leancup"] = {["name"] = "leancup", ["label"] = "Empty Cup", ['weight'] = 100, ["type"] = "item", ["image"] = "leancup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cupoflean"] = {["name"] = "cupoflean", ["label"] = "Lean Cup", ['weight'] = 100, ["type"] = "item", ["image"] = "cupoflean.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cupofdextro"] = {["name"] = "cupofdextro", ["label"] = "Dextro Cup", ['weight'] = 100, ["type"] = "item", ["image"] = "cupofdextro.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["xtcburner"] = {["name"] = "xtcburner", ["label"] = "ENV Burner", ['weight'] = 100, ["type"] = "item", ["image"] = "xtcburner.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 `qb-drugs`
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
- 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
|
||||
on the **client** side for **all of these** place your Police Alert inside that function.
|
||||
in `Cornerselling.lua` line 30
|
||||
in`deliveries.lua` line 168
|
||||
in `oxyruns.lua` line 16
|
||||
in `wholesale.lua` line 5
|
||||
for example something like ps-dispatch will look like this
|
||||
```
|
||||
local function PoliceCall()
|
||||
exports['ps-dispatch']:DrugSale()
|
||||
end
|
||||
```
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
step 8
|
||||
add this to your Config.Products = { in your config for qb-shops in the ['normal'] = { category
|
||||
```
|
||||
{name = 'bakingsoda', price = 100, amount = 5000, info = {}, type = 'item'},
|
||||
{name = 'emptyvial', price = 100, amount = 5000, info = {}, type = 'item'},
|
||||
{name = 'needle', price = 100, amount = 5000, info = {}, type = 'item'},
|
||||
```
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
step 9
|
||||
search in rpemotes for uncuff
|
||||
if you do not have this then add this in animationslist.lua`
|
||||
```
|
||||
["uncuff"] = {
|
||||
"mp_arresting",
|
||||
"a_uncuff",
|
||||
"Uncuff",
|
||||
AnimationOptions = {
|
||||
EmoteLoop = true,
|
||||
EmoteMoving = true
|
||||
}
|
||||
},
|
||||
```
|
||||
|
||||
@@ -0,0 +1,193 @@
|
||||
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 Config.TierSystem then
|
||||
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
|
||||
else
|
||||
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
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:cutcokeone', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Config.TierSystem then
|
||||
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")
|
||||
Player.Functions.AddItem('coke', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('cokestagetwo', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('cokestagethree', 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
else
|
||||
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")
|
||||
Player.Functions.AddItem('coke', 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:bagcoke', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local chance = math.random(1,3)
|
||||
|
||||
if Config.TierSystem then
|
||||
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")
|
||||
Player.Functions.AddItem('loosecoke', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('loosecokestagetwo', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('loosecokestagethree', 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
else
|
||||
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")
|
||||
Player.Functions.AddItem('loosecoke', 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[item.name], "remove", 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(QBConfig.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,150 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makecrackone', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Config.TierSystem then
|
||||
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")
|
||||
Player.Functions.AddItem('loosecoke', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('loosecokestagetwo', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('loosecokestagethree', 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
else
|
||||
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")
|
||||
Player.Functions.AddItem('loosecoke', 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:bagcrack', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local luck = math.random(1,100)
|
||||
if Config.TierSystem then
|
||||
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")
|
||||
Player.Functions.AddItem('crackrock', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('crackrockstagetwo', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('crackrockstagethree', 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
else
|
||||
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")
|
||||
Player.Functions.AddItem('crackrock', 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,241 @@
|
||||
QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
-- Functions
|
||||
exports('GetDealers', function()
|
||||
return QBConfig.Dealers
|
||||
end)
|
||||
|
||||
-- Callbacks
|
||||
QBCore.Functions.CreateCallback('md-drugs:server:RequestConfig', function(_, cb)
|
||||
cb(QBConfig.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 QBConfig.Dealers[dealer]["products"][itemData.slot].amount - 1 >= 0 then
|
||||
QBConfig.Dealers[dealer]["products"][itemData.slot].amount = QBConfig.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 * QBConfig.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 = QBConfig.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 = QBConfig.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 * QBConfig.PoliceDeliveryModifier
|
||||
if QBConfig.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 QBConfig.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 + QBConfig.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 / QBConfig.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 - QBConfig.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 / QBConfig.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 - QBConfig.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 / QBConfig.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 - QBConfig.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()
|
||||
QBConfig.Dealers[dealerName] = {
|
||||
["name"] = dealerName,
|
||||
["coords"] = {
|
||||
["x"] = coords.x,
|
||||
["y"] = coords.y,
|
||||
["z"] = coords.z,
|
||||
},
|
||||
["time"] = {
|
||||
["min"] = minTime,
|
||||
["max"] = maxTime
|
||||
},
|
||||
["products"] = QBConfig.Products
|
||||
}
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, QBConfig.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})
|
||||
QBConfig.Dealers[dealerName] = nil
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, QBConfig.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 QBConfig.Dealers ~= nil and next(QBConfig.Dealers) ~= nil then
|
||||
for _, v in pairs(QBConfig.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 QBConfig.Dealers[DealerName] then
|
||||
local ped = GetPlayerPed(source)
|
||||
SetEntityCoords(ped, QBConfig.Dealers[DealerName]['coords']['x'], QBConfig.Dealers[DealerName]['coords']['y'], QBConfig.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)
|
||||
|
||||
QBConfig.Dealers[v.name] = {
|
||||
["name"] = v.name,
|
||||
["coords"] = {
|
||||
["x"] = coords.x,
|
||||
["y"] = coords.y,
|
||||
["z"] = coords.z
|
||||
},
|
||||
["time"] = {
|
||||
["min"] = time.min,
|
||||
["max"] = time.max
|
||||
},
|
||||
["products"] = QBConfig.Products
|
||||
}
|
||||
end
|
||||
end
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, QBConfig.Dealers)
|
||||
|
||||
end)
|
||||
RegisterServerEvent("md-drugs:server:Dealershop", function(amount, value, item, info)
|
||||
local src = source local Player = QBCore.Functions.GetPlayer(src)
|
||||
local balance = Player.Functions.GetMoney(tostring(value))
|
||||
if Player.Functions.RemoveMoney(tostring(value), tonumber(info) * tonumber(amount)) then
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, item.name, "add", amount)
|
||||
Player.Functions.AddItem(item, amount)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', source, "Can't give item!", "error")
|
||||
end
|
||||
|
||||
end)
|
||||
@@ -0,0 +1,333 @@
|
||||
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 Config.TierSystem then
|
||||
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['heroinstagetwo'], "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
|
||||
else
|
||||
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
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:cutheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Config.TierSystem then
|
||||
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 heroin", "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")
|
||||
Player.Functions.AddItem('heroin',1)
|
||||
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 heroin", "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")
|
||||
Player.Functions.AddItem('heroinstagetwo',1)
|
||||
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 heroin", "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")
|
||||
Player.Functions.AddItem('heroinstagethree',1)
|
||||
end
|
||||
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the powder", "error")
|
||||
end
|
||||
else
|
||||
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 heroin", "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")
|
||||
Player.Functions.AddItem('heroin',1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getheroinlabkit', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', Config.heroinlabkitprice) 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
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinlabkit'], "add", 1)
|
||||
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)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinlabkit'], "remove", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:heatliquidheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Config.TierSystem then
|
||||
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")
|
||||
Player.Functions.AddItem('heroincut', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('heroincutstagetwo', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('heroincutstagethree', 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the right shit", "error")
|
||||
end
|
||||
else
|
||||
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")
|
||||
Player.Functions.AddItem('heroincut', 1)
|
||||
end
|
||||
end
|
||||
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 Config.TierSystem then
|
||||
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")
|
||||
Player.Functions.AddItem('heroinvial', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('heroinvialstagetwo', 1)
|
||||
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")
|
||||
Player.Functions.AddItem('heroinvialstagethree', 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "you aint got the supplies", "error")
|
||||
end
|
||||
else
|
||||
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")
|
||||
Player.Functions.AddItem('heroinvial', 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:failheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Config.TierSystem then
|
||||
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
|
||||
else
|
||||
Player.Functions.RemoveItem('heroinvial', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['heroinvial'], "remove", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local lean = { 'mdlean', 'mdreddextro'}
|
||||
RegisterServerEvent('md-drugs:server:givelean', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local chance = math.random(1,100)
|
||||
local amount = math.random(1,5)
|
||||
if chance <= 50 then
|
||||
if Player.Functions.AddItem('mdlean', amount) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Got Some Purple Lean", "success")
|
||||
end
|
||||
else
|
||||
if Player.Functions.AddItem('mdreddextro', amount) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Got Red Dextro", "success")
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
for k, v in pairs (lean) do QBCore.Functions.CreateUseableItem(v, function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem(item.name, 1) then
|
||||
TriggerClientEvent('md-drugs:client:consumelean', src)
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
QBCore.Functions.CreateUseableItem(function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe1 = { 'mdlean', 'sprunk', 'leancup'}
|
||||
local recipe2 = {'mdreddextro', 'sprunk', 'leancup'}
|
||||
local lean = Player.Functions.GetItemByName('mdlean')
|
||||
local dextro = Player.Functions.GetItemByName('mdreddextro')
|
||||
local sprunk = Player.Functions.GetItemByName('sprunk')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe1) do
|
||||
if lean and lean.amount > 0 then
|
||||
if sprunk and sprunk.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[v], "add", 1)
|
||||
price = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('cupoflean', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cupoflean'], "add", 1)
|
||||
end
|
||||
for m, d in pairs (recipe2) do
|
||||
if dextro and dextro.amount > 0 then
|
||||
if sprunk and sprunk.amount > 0 then
|
||||
if Player.Functions.RemoveItem(d, 1) then
|
||||
price = 2
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[v], "remove", 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 2 then
|
||||
Player.Functions.AddItem('cupofdextro', 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cupofdextro'], "add", 1)
|
||||
end
|
||||
end, 'leancup')
|
||||
|
||||
|
||||
+292
@@ -0,0 +1,292 @@
|
||||
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")
|
||||
Player.Functions.AddItem('diethylamide', 1)
|
||||
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
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsd_one_vial'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Nothing To Refine", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:gettabpaper', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', Config.tabcost * 10) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['tab_paper'], "add", 10)
|
||||
Player.Functions.AddItem('tab_paper', 10)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Your Broke Ass Cant Afford these", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getlabkit', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveMoney('cash', Config.lsdlabkitcost) then
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['lsdlabkit'], "add", 1)
|
||||
Player.Functions.AddItem('lsdlabkit', 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Your Broke Ass Cant Afford This", "error")
|
||||
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,59 @@
|
||||
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)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "No Cactus Bulbs", "error")
|
||||
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,52 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterServerEvent('md-drugs:server:startcook', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"ephedrine", "acetone"}
|
||||
local ephedrine = Player.Functions.GetItemByName("ephedrine")
|
||||
local acetone = Player.Functions.GetItemByName("acetone")
|
||||
for k, v in pairs (recipe) do
|
||||
if ephedrine and ephedrine.amount > 0 then
|
||||
if acetone and acetone.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[v], "remove", 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
TriggerClientEvent('QBCore:Notify', src, "Adding Things To The Mix", "success")
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:givemethingridients', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local chance = math.random(1,100)
|
||||
local amount = math.random(1,5)
|
||||
if chance <= 50 then
|
||||
if Player.Functions.AddItem('ephedrine', amount) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Got Some Ephedrine", "success")
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items['ephedrine'], "add", amount)
|
||||
end
|
||||
else
|
||||
if Player.Functions.AddItem('acetone', amount) then
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Got Some Acetone", "success")
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items['acetone'], "add", amount)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:getmeth', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local amount = math.random(1,5)
|
||||
|
||||
if Player.Functions.RemoveItem("empty_weed_bag", amount) then
|
||||
Player.Functions.AddItem("methbags", amount)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Made " .. amount .. " Bags Of Meth!", "success")
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items['methbags'], "add", amount)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items['empty_weed_bag'], "remove", amount)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Cant Bag This Without Bags", "error")
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,46 @@
|
||||
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', Config.TruckPrice ) or Player.Functions.RemoveMoney('bank', Config.TruckPrice ) then
|
||||
TriggerClientEvent("md-drugs:Client:getoxylocation", src)
|
||||
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Your Broke Ass Cant Afford these", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:giveoxybox', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local chance = math.random(1,100)
|
||||
local cash = Config.OxyRunCompleteCash
|
||||
local itemchance = math.random(1,100)
|
||||
local item = Config.OxyRandItems[math.random(1, #Config.OxyRandItems)]
|
||||
|
||||
if chance <= Config.OxyRunDitchChance then
|
||||
TriggerClientEvent('QBCore:Notify', src, "The Car Is Hot Now! Dump it", "error")
|
||||
Player.Functions.AddMoney("cash", cash * 0.5)
|
||||
if itemchance <= Config.OxyItemChance then
|
||||
Player.Functions.AddItem(item, Config.OxyItemAmount)
|
||||
Player.Functions.AddItem("oxy", Config.OxyItemAmount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[item], "add", Config.OxyItemAmount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items["oxy"], "add", Config.OxyItemAmount)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Get To The Next Location", "success")
|
||||
TriggerClientEvent("md-drugs:client:getoxylocationroute", src)
|
||||
Player.Functions.AddMoney("cash", cash)
|
||||
if itemchance <= Config.OxyItemChance then
|
||||
Player.Functions.AddItem(item, Config.OxyItemAmount)
|
||||
Player.Functions.AddItem("oxy", Config.OxyItemAmount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items[item], "add", Config.OxyItemAmount)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items["oxy"], "add", Config.OxyItemAmount)
|
||||
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,47 @@
|
||||
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")
|
||||
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,12 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterServerEvent("md-drugs:server:travellingmerchantox", function(amount, money, item, price)
|
||||
local src = source local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveMoney(tostring(money), tonumber(price) * tonumber(amount)) then
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "add", amount)
|
||||
Player.Functions.AddItem(item, amount)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', source, "Broke Ass Cant Afford This", "error")
|
||||
end
|
||||
|
||||
end)
|
||||
+381
@@ -0,0 +1,381 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
GlobalState.WeedPlant = Config.WeedPlant
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(Config.WeedPlant) do
|
||||
v.taken = false
|
||||
end
|
||||
end)
|
||||
|
||||
function WeedCooldown(loc)
|
||||
CreateThread(function()
|
||||
Wait(Config.respawnTime * 1000)
|
||||
Config.WeedPlant[loc].taken = false
|
||||
GlobalState.WeedPlant = Config.WeedPlant
|
||||
Wait(1000)
|
||||
TriggerClientEvent('weed:respawnCane', -1, loc)
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterNetEvent("weed:pickupCane")
|
||||
AddEventHandler("weed:pickupCane", function(loc)
|
||||
if not Config.WeedPlant[loc].taken then
|
||||
Config.WeedPlant[loc].taken = true
|
||||
GlobalState.WeedPlant = Config.WeedPlant
|
||||
TriggerClientEvent("weed:removeCane", -1, loc)
|
||||
WeedCooldown(loc)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
Player.Functions.AddItem(Config.rewardWeed, 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items[Config.rewardWeed], "add")
|
||||
end
|
||||
end)
|
||||
--------------- events
|
||||
RegisterServerEvent('md-drugs:server:dryoutweed', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("wetcannabis", 1) then
|
||||
Player.Functions.AddItem("drycannabis", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['drycannabis'], "add", 1)
|
||||
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['wetcannabis'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Nothing To Dry", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makebutter', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"mdbutter", "grindedweed"}
|
||||
local grind = Player.Functions.GetItemByName("grindedweed")
|
||||
local lock = Player.Functions.GetItemByName('mdbutter')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if lock and lock.amount > 0 then
|
||||
if grind and grind.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
price = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('cannabutter', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['cannabutter'], "add", 1)
|
||||
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makebrownies', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"cannabutter", "flour", "chocolate"}
|
||||
local butter = Player.Functions.GetItemByName("cannabutter")
|
||||
local flour = Player.Functions.GetItemByName('flour')
|
||||
local choc = Player.Functions.GetItemByName('chocolate')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if butter and butter.amount > 0 then
|
||||
if flour and flour.amount > 0 then
|
||||
if choc and choc.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
price = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('specialbrownie', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['specialbrownie'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makecookies', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"cannabutter", "flour"}
|
||||
local butter = Player.Functions.GetItemByName("cannabutter")
|
||||
local flour = Player.Functions.GetItemByName('flour')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if butter and butter.amount > 0 then
|
||||
if flour and flour.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
price = 1
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('specialcookie', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['specialcookie'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makechocolate', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"cannabutter", "chocolate"}
|
||||
local butter = Player.Functions.GetItemByName("cannabutter")
|
||||
local choc = Player.Functions.GetItemByName('chocolate')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if butter and butter.amount > 0 then
|
||||
if choc and choc.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
price = 1
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('specialchocolate', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['specialchocolate'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makemuffin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"cannabutter", "flour"}
|
||||
local butter = Player.Functions.GetItemByName("cannabutter")
|
||||
local flour = Player.Functions.GetItemByName('flour')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if butter and butter.amount > 0 then
|
||||
if flour and flour.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
price = 1
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('specialmuffin', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['specialmuffin'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:makeoil', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"butane", "grindedweed"}
|
||||
local grind = Player.Functions.GetItemByName("grindedweed")
|
||||
local butane = Player.Functions.GetItemByName('butane')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if butane and butane.amount > 0 then
|
||||
if grind and grind.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
price = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('shatter', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['shatter'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
RegisterServerEvent('md-drugs:server:rollblunt', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local recipe = {"bluntwrap", "grindedweed"}
|
||||
local grind = Player.Functions.GetItemByName("grindedweed")
|
||||
local butane = Player.Functions.GetItemByName('bluntwrap')
|
||||
local price = 0
|
||||
for k, v in pairs (recipe) do
|
||||
if butane and butane.amount > 0 then
|
||||
if grind and grind.amount > 0 then
|
||||
if Player.Functions.RemoveItem(v, 1) then
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
price = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if price == 1 then
|
||||
Player.Functions.AddItem('blunt', 1 )
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['blunt'], "add", 1)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:rollleanblunt', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local grind = Player.Functions.GetItemByName("mdlean")
|
||||
local wrap = Player.Functions.GetItemByName('bluntwrap')
|
||||
local chance = math.random(1,10)
|
||||
if grind.amount > 0 then
|
||||
if wrap.amount > 0 then
|
||||
Player.Functions.RemoveItem("bluntwrap", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['bluntwrap'], "remove", 1)
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
if chance > 8 then
|
||||
Player.Functions.RemoveItem("mdlean", 1)
|
||||
end
|
||||
Player.Functions.AddItem("leanbluntwrap", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['leanbluntwrap'], "add", 1)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:rolldextroblunt', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local grind = Player.Functions.GetItemByName("mdreddextro")
|
||||
local wrap = Player.Functions.GetItemByName('bluntwrap')
|
||||
local chance = math.random(1,10)
|
||||
if grind and grind.amount > 0 then
|
||||
if wrap and wrap.amount > 0 then
|
||||
Player.Functions.RemoveItem("bluntwrap", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['bluntwrap'], "remove", 1)
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
if chance > 8 then
|
||||
Player.Functions.RemoveItem("mdreddextro", 1)
|
||||
end
|
||||
Player.Functions.AddItem("dextrobluntwrap", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['dextrobluntwrap'], "add", 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Need Red Dextro", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:rollchewyblunt', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local coke = Player.Functions.GetItemByName("loosecoke")
|
||||
local wrap = Player.Functions.GetItemByName('bluntwrap')
|
||||
local keef = Player.Functions.GetItemByName('grindedweed')
|
||||
local chance = math.random(1,10)
|
||||
if coke and coke.amount > 0 then
|
||||
if wrap and wrap.amount > 0 then
|
||||
if keef and keef.amount > 0 then
|
||||
Player.Functions.RemoveItem("bluntwrap", 1)
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
Player.Functions.RemoveItem("loosecoke", 1)
|
||||
Player.Functions.RemoveItem("grindedweed", 1)
|
||||
Player.Functions.AddItem("chewyblunt", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['chewyblunt'], "add", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['loosecoke'], "remove", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['grindedweed'], "remove", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['bluntwrap'], "remove", 1)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Need Some Keef", "error")
|
||||
end
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Need Some Loose Coke", "error")
|
||||
end
|
||||
end)
|
||||
------------------------ usuable items
|
||||
QBCore.Functions.CreateUseableItem("leanbluntwrap", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local keef = Player.Functions.GetItemByName("grindedweed")
|
||||
|
||||
if keef and keef.amount > 0 then
|
||||
if Player.Functions.RemoveItem('grindedweed', 1) then
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
Player.Functions.RemoveItem("leanbluntwrap", 1)
|
||||
Player.Functions.AddItem('leanblunts', 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['leanblunts'], "add", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['grindedweed'], "remove", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['leanbluntwrap'], "remove", 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Cant Roll A blunt With Air", "error")
|
||||
end
|
||||
end)
|
||||
QBCore.Functions.CreateUseableItem("dextrobluntwrap", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local keef = Player.Functions.GetItemByName("grindedweed")
|
||||
|
||||
if keef and keef.amount > 0 then
|
||||
if Player.Functions.RemoveItem('grindedweed', 1) then
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
Player.Functions.RemoveItem("dextrobluntwrap", 1)
|
||||
Player.Functions.AddItem('dextroblunts', 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['dextroblunts'], "add", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['grindedweed'], "remove", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['dextrobluntwrap'], "remove", 1)
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Cant Roll A blunt With Air", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
local blunts = { 'dextroblunts', 'leanblunts', "chewyblunt", 'blunt' }
|
||||
for k, v in pairs (blunts) do QBCore.Functions.CreateUseableItem(v, function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if TriggerClientEvent('md-drugs:client:smokeblunts', source, item.name) then
|
||||
Player.Functions.RemoveItem(item.name, 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item.name], "remove", 1)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
local edibles = { 'specialcookie', 'specialbrownie', "specialmuffin", 'specialchocolate' }
|
||||
for k, v in pairs (edibles) do QBCore.Functions.CreateUseableItem(v, function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if TriggerClientEvent("md-drugs:client:edibles", source, item.name) then
|
||||
Player.Functions.RemoveItem(item.name, 1)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
QBCore.Functions.CreateUseableItem("dabrig", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.GetItemByName("butanetorch") then
|
||||
Player.Functions.RemoveItem("shatter", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["shatter"], "remove", 1)
|
||||
TriggerClientEvent("md-drugs:client:dodabs", src)
|
||||
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "You Need A Butane Torch", "error")
|
||||
end
|
||||
end)
|
||||
QBCore.Functions.CreateUseableItem("bluntwrap", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
TriggerClientEvent('md-drugs:client:bluntwraps', src)
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem("weedgrinder", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveItem("drycannabis",1 ) then
|
||||
Player.Functions.AddItem("grindedweed", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["grindedweed"], "add", 1)
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
end
|
||||
end)
|
||||
|
||||
QBCore.Functions.CreateUseableItem("mdwoods", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if Player.Functions.RemoveItem("mdwoods",1 ) then
|
||||
Player.Functions.AddItem("bluntwrap", 5)
|
||||
Player.Functions.AddItem("tobacco", 5)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["bluntwrap"], "add", 1)
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["tobacco"], "add", 1)
|
||||
TriggerClientEvent("md-drugs:client:rollanim", src)
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local coke = { "cokebaggy", "cokebaggystagethree", "cokebaggystagetwo"}
|
||||
local crack = {"baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree"}
|
||||
local lsd = {'smiley_tabs', 'yinyang_tabs', 'wildcherry_tabs', 'pineapple_tabs', 'bart_tabs', 'gratefuldead_tabs'}
|
||||
local heroin = {'heroin_ready', 'heroin_readystagetwo', 'heroin_readystagethree'}
|
||||
local xtc = {"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" }
|
||||
|
||||
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 All The Coke You Have", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesalecoke', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local cocaine = 0
|
||||
local price = math.random(50,1000)
|
||||
|
||||
for k, v in pairs(coke) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
if item and item.amount > 0 then
|
||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||
Player.Functions.AddMoney("cash", item.amount * price)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
||||
end
|
||||
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 All The Crack You Have", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesalecrack', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local crackmoney = 0
|
||||
local price = math.random(50,1000)
|
||||
|
||||
for k, v in pairs(crack) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
if item and item.amount > 0 then
|
||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||
Player.Functions.AddMoney("cash", item.amount * price)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
||||
|
||||
end
|
||||
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 price = math.random(50,1000)
|
||||
|
||||
for k, v in pairs(lsd) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
if item and item.amount > 0 then
|
||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||
Player.Functions.AddMoney("cash", item.amount * price)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
||||
end
|
||||
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 All The Heroin You Have", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesaleheroin', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local price = math.random(50,1000)
|
||||
|
||||
for k, v in pairs(heroin) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
if item and item.amount > 0 then
|
||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||
Player.Functions.AddMoney("cash", item.amount * price)
|
||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
||||
heroinmoney = heroinmoney + removed
|
||||
end
|
||||
end
|
||||
end)
|
||||
---- xtc
|
||||
QBCore.Functions.CreateUseableItem("xtcburner", function(source, item)
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
|
||||
if Player.Functions.RemoveItem("xtcburner", 1) then
|
||||
TriggerClientEvent("md-drugs:client:getlocxtc", src)
|
||||
TriggerClientEvent('QBCore:Notify', src, "Bring Me All The XTC You Have", "success")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:wholesalextc', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local xtcmoney = 0
|
||||
local price = math.random(50,1000)
|
||||
|
||||
for k, v in pairs(xtc) do
|
||||
local item = Player.Functions.GetItemByName(v)
|
||||
|
||||
if item and item.amount > 0 then
|
||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||
Player.Functions.AddMoney("cash", item.amount * price)
|
||||
xtcmoney = xtcmoney + removed
|
||||
end
|
||||
end
|
||||
|
||||
if xtcmoney > 0 then
|
||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', src, "Nothing To Sell", "error")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+876
@@ -0,0 +1,876 @@
|
||||
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")
|
||||
Player.Functions.AddItem("mdp2p", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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")
|
||||
Player.Functions.AddItem("raw_xtc", 1)
|
||||
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)
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,670 @@
|
||||
Config = {} --Ignore.
|
||||
|
||||
Config.UseTarget = true
|
||||
Config.rewardItem = "coca_leaf"
|
||||
Config.rewardItemheroin = "poppyresin"
|
||||
Config.rewardshrooms = "shrooms"
|
||||
Config.rewardMescaline = "cactusbulb"
|
||||
Config.rewardWeed = "wetcannabis"
|
||||
Config.oxtarget = true --- turn to true if you use oxtarget
|
||||
Config.respawnTime = 150 -- Seconds
|
||||
Config.Fuel = "LegacyFuel" -- type the name of script you use i.e. ps-fuel, cdn-fuel, LegacyFuel
|
||||
Config.OxInv = true -- true if you use ox inventory, false if you use qb/lj/ps
|
||||
Config.TierSystem = true -- allows for three tiers of certain drugs ( coke, heroin, crack
|
||||
Config.StupidassNewQbItemName = false -- true if you have updated your items.lua from base qb after november 2023 because changing item names this far in a framework is 3 IQ points total
|
||||
Config.imagelink = "ox_inventory/web/images/"
|
||||
|
||||
|
||||
------------- Cocaine -- new animations require to be in a certain spot or they get fucky. uses bob74 ipl
|
||||
Config.CokeTeleIn = vector3(198.16, -1276.92, 29.33)-- where you target to go inside
|
||||
Config.CokeTeleOut = vector3(1088.81, -3187.57, -38.99) -- where you target to leave
|
||||
Config.MakePowder = vector3(1087.29, -3195.33, -38.99) -- where you chop your coca leaves to make powder
|
||||
|
||||
---------------- Crack locations
|
||||
Config.makecrack = vector3(2434.07, 4969.39, 42.35) -- make crack with baking soda with cut coke 1-3
|
||||
Config.bagcrack = vector3(2435.85, 4965.3, 42.35) --- 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(-1368.89, -318.72, 39.5)-- buy lab kit
|
||||
Config.tabcost = 100 -- price per piece of tab paper event does 10 at a time
|
||||
Config.lsdlabkitcost = 10000 -- price of the lsd lab kit
|
||||
------------------------- Heroin Locations
|
||||
|
||||
Config.dryplant = vector3(-1364.7, -323.21, 39.44) -- turn resin into powder
|
||||
Config.buyheroinlabkit = vector3(-1361.08, -321.41, 39.53) -- buy heroin lab kit
|
||||
Config.cutheroinone = vector3(-1364.86, -320.15, 39.51) -- cut heroin stage 1-3 with baking soda
|
||||
Config.fillneedle = vector3(-1366.18, -317.81, 39.56) -- fill needles with heroin
|
||||
Config.heroinlabkitprice = 10000 -- price of the lsd lab kit
|
||||
------------ 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
|
||||
|
||||
|
||||
-------------- lean
|
||||
Config.SyrupVendor = vector3(362.71, -577.84, 39.3) -- where the mission ped starts
|
||||
Config.StartLoc = {
|
||||
vector3(-2307.22, 434.77, 174.47), -- where the truck spawns
|
||||
vector3(614.75, 1786.26, 199.39),
|
||||
vector3(-224.89, 6388.32, 31.59)
|
||||
}
|
||||
|
||||
|
||||
---------- Pharma
|
||||
Config.FillPrescription = vector3(2432.89, 4252.2, 36.35) ----------- 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
|
||||
Config.PharmaJob = "ambulance" -- what job role you need to be on to get the command
|
||||
|
||||
|
||||
-------------- weed
|
||||
Config.Teleout = vector3(1066.31, -3183.36, -39.16) -- where you target to tele in
|
||||
Config.Telein = vector3(244.74, 374.54, 105.74) -- where you target to tele out
|
||||
Config.MakeButter = vector3(1045.48, -3198.49, -38.22) -- where you make cannabutter and baked edibles
|
||||
Config.MakeOil = vector3(1038.90, -3198.66, -38.17-1) -- where you make shatter
|
||||
|
||||
Config.WeedDry = { -- where you dry leaves
|
||||
vector3(1043.0, -3191.59, -38.39),
|
||||
vector3(1041.0, -3191.59, -38.39),
|
||||
vector3(1045.0, -3191.59, -38.39),
|
||||
vector3(1039.0, -3191.59, -38.39),
|
||||
}
|
||||
|
||||
Config.Joblock = false -- if you want weed to be a job
|
||||
Config.weedjob = "" -- what the job name is
|
||||
Config.Weed = { --- this is the store for the weed ingridients
|
||||
label = "Weed Shop",
|
||||
slots = 8,
|
||||
items = {
|
||||
[1] = {name = "weedgrinder", label = "Weed Grinder", price = 25, amount = 50, info = {}, type = "item", slot = 1},
|
||||
[2] = {name = "mdbutter", label = "Butter", price = 25, amount = 50, info = {}, type = "item", slot = 2},
|
||||
[3] = {name = "flour", label = "Flour", price = 25, amount = 50, info = {}, type = "item", slot = 3},
|
||||
[4] = {name = "chocolate", label = "chocolate", price = 25, amount = 50, info = {}, type = "item", slot = 4},
|
||||
[5] = {name = "butane", label = "Butane", price = 25, amount = 50, info = {}, type = "item", slot = 5},
|
||||
[6] = {name = "butanetorch", label = "Butane Torch", price = 2, amount = 1000, info = {}, type = "item", slot = 6},
|
||||
[7] = {name = "dabrig", label = "Dab Rig", price = 2, amount = 1000, info = {}, type = "item", slot = 7},
|
||||
[8] = {name = "mdwoods", label = "MD Woods", price = 2, amount = 1000, info = {}, type = "item", slot = 8},
|
||||
}
|
||||
}
|
||||
|
||||
----------------- Wholesale
|
||||
Config.SuccessfulChance = 90 --- this is the chance of a Success wholesale 1-100
|
||||
Config.AlertPoliceWholesale = 10 -- 1-100 of how often it will alert police
|
||||
|
||||
|
||||
--- 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
|
||||
vector3(-119.06, -977.19, 304.25),
|
||||
vector3(-1522.23, 1475.63, 112.02),
|
||||
vector3(-3278.99, 973.33, 5.34),
|
||||
}
|
||||
Config.Items = { --- this is the store for the travelling merchant
|
||||
label = "Travelling Merchant",
|
||||
slots = 24,
|
||||
items = {
|
||||
[1] = {name = "tab_paper", label = "Tab Paper", price = 50, amount = 50, info = {}, type = "item", slot = 1},
|
||||
[2] = {name = "bakingsoda", label = "Baking Soda", price = 25, amount = 50, info = {}, type = "item", slot = 2},
|
||||
[3] = {name = "isosafrole", label = "Isosafrole", price = 25, amount = 50, info = {}, type = "item", slot = 3},
|
||||
[4] = {name = "mdp2p", label = "MDP2P", price = 25, amount = 50, info = {}, type = "item", slot = 4},
|
||||
[5] = {name = "lysergic_acid", label = "Lysergic Acid", price = 25, amount = 50, info = {}, type = "item", slot = 5},
|
||||
[6] = {name = "diethylamide", label = "Diethylamide", price = 25, amount = 50, info = {}, type = "item", slot = 6},
|
||||
[7] = {name = "empty_weed_bag", label = "Empty Weed Bag", price = 2, amount = 1000, info = {}, type = "item", slot = 7},
|
||||
[8] = {name = "emptyvial", label = "Empty Vial", price = 2, amount = 1000, info = {}, type = "item", slot = 8},
|
||||
[9] = {name = "needle", label = "Syringe", price = 2, amount = 1000, info = {}, type = "item", slot = 9},
|
||||
[10] = {name = "cokeburner", label = "Nokie Burner", price = 25, amount = 50, info = {}, type = "item", slot = 10},
|
||||
[11] = {name = "crackburner", label = "Juke Burner", price = 2, amount = 50, info = {}, type = "item", slot = 11},
|
||||
[12] = {name = "lsdburner", label = "SideKick Burner", price = 2, amount = 50, info = {}, type = "item", slot = 12},
|
||||
[13] = {name = "heroinburner", label = "Razr Burner", price = 2, amount = 50, info = {}, type = "item", slot = 13},
|
||||
[14] = {name = "mdlean", label = "Sizzurup", price = 50, amount = 50, info = {}, type = "item", slot = 14},
|
||||
[15] = {name = "weedgrinder", label = "Weed Grinder", price = 25, amount = 50, info = {}, type = "item", slot = 15},
|
||||
[16] = {name = "mdbutter", label = "Butter", price = 25, amount = 50, info = {}, type = "item", slot = 16},
|
||||
[17] = {name = "flour", label = "Flour", price = 25, amount = 50, info = {}, type = "item", slot = 17},
|
||||
[18] = {name = "chocolate", label = "chocolate", price = 25, amount = 50, info = {}, type = "item", slot = 18},
|
||||
[19] = {name = "butane", label = "Butane", price = 25, amount = 50, info = {}, type = "item", slot = 19},
|
||||
[20] = {name = "butanetorch", label = "Butane Torch", price = 2, amount = 1000, info = {}, type = "item", slot = 20},
|
||||
[21] = {name = "dabrig", label = "Dab Rig", price = 2, amount = 1000, info = {}, type = "item", slot = 21},
|
||||
[22] = {name = "mdwoods", label = "MD Woods", price = 2, amount = 1000, info = {}, type = "item", slot = 22},
|
||||
[23] = {name = "leancup", label = "Empty Cup", price = 25, amount = 50, info = {}, type = "item", slot = 23},
|
||||
[24] = {name = "xtcburner", label = "ENV Burner", price = 25, amount = 50, info = {}, type = "item", slot = 24},
|
||||
|
||||
}
|
||||
}
|
||||
--------------------------------------- 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.TruckPrice = 500 -- amount the truck will cost to rent
|
||||
Config.OxyRunCompleteCash = 200 -- base price you get for completeing a run. 50% if the car needs to be ditched
|
||||
Config.OxyRunDitchChance = 20 -- % of a fail mission and having to ditch the car and not get a new order
|
||||
Config.OxyItemChance = 50 -- chance to recieve an item from the OxyRandItems list below
|
||||
Config.OxyItemAmount = 1 -- amount of the item you recieve when you get an item from OxyRandItems
|
||||
Config.PoliceAlertOxy = 90 -- This is a % out of 100 to alert police
|
||||
|
||||
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",
|
||||
}
|
||||
|
||||
|
||||
---------------------- Meth Config
|
||||
Config.MethTeleIn = vector3(-2222.04, 303.99, 174.6) -- where you target to tele in
|
||||
Config.MethTeleOut = vector3(996.91, -3200.83, -36.39) -- where you target to tele out
|
||||
Config.MethHeistStart = vector3(-1102.93, -3066.76, 14.00) -- where you get the mission to get ingridients
|
||||
|
||||
|
||||
----------------------------- these are the locations where props will be spawned to be picked
|
||||
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.WeedPlant = {
|
||||
[1] = {
|
||||
location = vector3(1049.63, -3202.12, -39.15),
|
||||
heading = 334.49,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[2] = {
|
||||
location = vector3(1050.85, -3202.15, -39.15),
|
||||
heading = 329.56,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[3] = {
|
||||
location = vector3(1052.01, -3202.22, -39.13),
|
||||
heading = 25.16,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[4] = {
|
||||
location = vector3(1052.99, -3202.15, -39.15),
|
||||
heading = 21.52,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[5] = {
|
||||
location = vector3(1053.08, -3201.11, -39.13),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[6] = {
|
||||
location = vector3(1052.91, -3199.99, -39.14),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[7] = {
|
||||
location = vector3(1053.02, -3198.97, -39.11),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[8] = {
|
||||
location = vector3(1051.95, -3198.93, -39.11),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[9] = {
|
||||
location = vector3(1051.96, -3199.86, -39.12),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[10] = {
|
||||
location = vector3(1051.93, -3201.17, -39.12),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[11] = {
|
||||
location = vector3(1050.98, -3201.13, -39.14),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[12] = {
|
||||
location = vector3(1050.89, -3200.07, -39.12),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[13] = {
|
||||
location = vector3(1050.89, -3198.95, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[14] = {
|
||||
location = vector3(1049.72, -3198.95, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[15] = {
|
||||
location = vector3(1049.98, -3200.1, -39.14),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[16] = {
|
||||
location = vector3(1049.82, -3201.01, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[17] = {
|
||||
location = vector3(1053.07, -3194.51, -39.15),
|
||||
heading = 334.49,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[18] = {
|
||||
location = vector3(1052.97, -3195.55, -39.15),
|
||||
heading = 329.56,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[19] = {
|
||||
location = vector3(1052.82, -3196.58, -39.15),
|
||||
heading = 25.16,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[20] = {
|
||||
location = vector3(1052.94, -3197.59, -39.15),
|
||||
heading = 21.52,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[21] = {
|
||||
location = vector3(1051.92, -3197.54, -39.14),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[22] = {
|
||||
location = vector3(1051.88, -3196.61, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[23] = {
|
||||
location = vector3(1051.82, -3195.52, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[24] = {
|
||||
location = vector3(1051.95, -3194.38, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[25] = {
|
||||
location = vector3(1050.88, -3194.31, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[26] = {
|
||||
location = vector3(1050.78, -3195.29, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[27] = {
|
||||
location = vector3(1050.76, -3196.49, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[28] = {
|
||||
location = vector3(1050.77, -3197.62, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[29] = {
|
||||
location = vector3(1049.64, -3197.61, -39.14),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[30] = {
|
||||
location = vector3(1049.64, -3196.59, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[31] = {
|
||||
location = vector3(1049.62, -3195.51, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
[32] = {
|
||||
location = vector3(1049.66, -3194.36, -39.15),
|
||||
heading = 202.97,
|
||||
model = "bkr_prop_weed_lrg_01b"
|
||||
},
|
||||
}
|
||||
|
||||
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 = "mushroom"
|
||||
},
|
||||
[2] = {
|
||||
location = vector3(2174.45, 5187.85, 57.43),
|
||||
heading = 329.56,
|
||||
model = "mushroom"
|
||||
},
|
||||
[3] = {
|
||||
location = vector3(2166.22, 5196.56, 58.0),
|
||||
heading = 25.16,
|
||||
model = "mushroom"
|
||||
},
|
||||
[4] = {
|
||||
location = vector3(2166.82, 5204.83, 58.63),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
[5] = {
|
||||
location = vector3(2174.84, 5205.82, 59.19),
|
||||
heading = 334.49,
|
||||
model = "mushroom"
|
||||
},
|
||||
[6] = {
|
||||
location = vector3(2184.46, 5201.23, 59.2),
|
||||
heading = 329.56,
|
||||
model = "mushroom"
|
||||
},
|
||||
[7] = {
|
||||
location = vector3(2192.45, 5194.89, 58.86),
|
||||
heading = 25.16,
|
||||
model = "mushroom"
|
||||
},
|
||||
[8] = {
|
||||
location = vector3(2207.53, 5187.81, 58.95),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
[9] = {
|
||||
location = vector3(2213.46, 5191.11, 59.81),
|
||||
heading = 334.49,
|
||||
model = "mushroom"
|
||||
},
|
||||
[10] = {
|
||||
location = vector3(2218.31, 5180.0, 58.18),
|
||||
heading = 329.56,
|
||||
model = "mushroom"
|
||||
},
|
||||
[11] = {
|
||||
location = vector3(2212.75, 5172.35, 57.2),
|
||||
heading = 25.16,
|
||||
model = "mushroom"
|
||||
},
|
||||
[12] = {
|
||||
location = vector3(2208.56, 5167.06, 56.34),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
[13] = {
|
||||
location = vector3(2196.9, 5158.59, 54.84),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
|
||||
[14] = {
|
||||
location = vector3(2191.62, 5174.91, 56.68),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
[15] = {
|
||||
location = vector3(2190.18, 5182.54, 57.47),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
[16] = {
|
||||
location = vector3(2185.85, 5190.49, 58.1),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
[17] = {
|
||||
location = vector3(2179.95, 5194.19, 58.26),
|
||||
heading = 21.52,
|
||||
model = "mushroom"
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
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"
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,174 @@
|
||||
QBConfig = {}
|
||||
----------- 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.
|
||||
QBConfig.SuccessChance = 50
|
||||
QBConfig.ScamChance = 25
|
||||
QBConfig.RobberyChance = 25
|
||||
QBConfig.MinimumDrugSalePolice = 0
|
||||
|
||||
QBConfig.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?
|
||||
QBConfig.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 QBConfig
|
||||
QBConfig.Products = {
|
||||
[1] = {name = "weed_white-widow_seed", label = "White Widow Seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 0},
|
||||
[2] = {name = "weed_skunk_seed", label = "Skunk Seed", price = 15, amount = 150, info = {}, type = "item", slot = 2, minrep = 0},
|
||||
[3] = {name = "weed_purple-haze_seed", label = "Purple Haze Seed", price = 15, amount = 150, info = {}, type = "item", slot = 3, minrep = 0},
|
||||
[4] = {name = "weed_og-kush_seed", label = "OG Kush Seed", price = 15, amount = 150, info = {}, type = "item", slot = 4, minrep = 0},
|
||||
[5] = {name = "weed_amnesia_seed", label = "Amnesia Seed", price = 15, amount = 150, info = {}, type = "item", slot = 5, minrep = 0},
|
||||
}
|
||||
|
||||
QBConfig.ProductsStupidNameRewrite = {
|
||||
[1] = {name = "weed_whitewidow_seed", label = "White Widow Seed", price = 15, amount = 150, info = {}, type = "item", slot = 1, minrep = 0},
|
||||
[2] = {name = "weed_skunk_seed", label = "Skunk Seed", price = 15, amount = 150, info = {}, type = "item", slot = 2, minrep = 0},
|
||||
[3] = {name = "weed_purplehaze_seed", label = "Purple Haze Seed", price = 15, amount = 150, info = {}, type = "item", slot = 3, minrep = 0},
|
||||
[4] = {name = "weed_ogkush_seed", label = "OG Kush Seed", price = 15, amount = 150, info = {}, type = "item", slot = 4, minrep = 0},
|
||||
[5] = {name = "weed_amnesia_seed", label = "Amnesia Seed", price = 15, amount = 150, info = {}, type = "item", slot = 5, minrep = 0},
|
||||
}
|
||||
|
||||
QBConfig.UseMarkedBills = false -- true for marked bills, false for cash
|
||||
QBConfig.DeliveryRepGain = 1 -- amount of rep gained per delivery
|
||||
QBConfig.DeliveryRepLoss = 1 -- amount of rep lost if delivery wrong or late
|
||||
QBConfig.PoliceDeliveryModifier = 2 -- amount to multiply active cop count by
|
||||
QBConfig.WrongAmountFee = 2 -- divide the payout by this value for wrong delivery amount
|
||||
QBConfig.OverdueDeliveryFee = 4 -- divide the payout by this value for overdue delivery
|
||||
|
||||
QBConfig.DeliveryItems = {
|
||||
[1] = {
|
||||
["item"] = "weed_brick",
|
||||
["minrep"] = 0,
|
||||
['payout'] = 1000
|
||||
},
|
||||
[2] = {
|
||||
["item"] = "coke_brick",
|
||||
["minrep"] = 0,
|
||||
['payout'] = 1000
|
||||
},
|
||||
}
|
||||
|
||||
QBConfig.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),
|
||||
},
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
+290
@@ -0,0 +1,290 @@
|
||||
|
||||
|
||||
<h1>How to install like a fuckin bosssssss</h1>
|
||||
|
||||
- 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, ["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, ["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"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcrackedstagetwo"] = {["name"] = "baggedcrackedstagetwo", ["label"] = "Better Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag2.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
|
||||
["baggedcrackedstagethree"] = {["name"] = "baggedcrackedstagethree", ["label"] = "Best Bag Of Crack", ["weight"] = 250, ["type"] = "item", ["image"] = "crackbag3.png", ["unique"] = false, ["useable"] = true, ["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"] = ""},
|
||||
["mdlean"] = {["name"] = "mdlean", ["label"] = "Sizzurup", ['weight'] = 100, ["type"] = "item", ["image"] = "Sizzurup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["mdreddextro"] = {["name"] = "mdreddextro", ["label"] = "Red Dextro", ['weight'] = 100, ["type"] = "item", ["image"] = "reddextro.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["wetcannabis"] = {["name"] = "wetcannabis", ["label"] = "Wet Cannabis", ['weight'] = 100, ["type"] = "item", ["image"] = "wetcannabis.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["drycannabis"] = {["name"] = "drycannabis", ["label"] = "Dry Cannabis", ['weight'] = 100, ["type"] = "item", ["image"] = "driedcannabis.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["weedgrinder"] = {["name"] = "weedgrinder", ["label"] = "Weed Grinder", ['weight'] = 100, ["type"] = "item", ["image"] = "weedgrinder.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["mdbutter"] = {["name"] = "mdbutter", ["label"] = "Butter", ['weight'] = 100, ["type"] = "item", ["image"] = "butter.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cannabutter"] = {["name"] = "cannabutter", ["label"] = "Canna-Butter", ['weight'] = 100, ["type"] = "item", ["image"] = "cannabutter.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialbrownie"] = {["name"] = "specialbrownie", ["label"] = "Special Brownie", ['weight'] = 100, ["type"] = "item", ["image"] = "chocolate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialcookie"] = {["name"] = "specialcookie", ["label"] = "Special Cookie", ['weight'] = 100, ["type"] = "item", ["image"] = "specialcookie.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialmuffin"] = {["name"] = "specialmuffin", ["label"] = "Special Muffin", ['weight'] = 100, ["type"] = "item", ["image"] = "specialmuffin.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["specialchocolate"] = {["name"] = "specialchocolate", ["label"] = "Special Chocolate", ['weight'] = 100, ["type"] = "item", ["image"] = "specialchocolate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["grindedweed"] = {["name"] = "grindedweed", ["label"] = "Keef", ['weight'] = 100, ["type"] = "item", ["image"] = "keef.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["flour"] = {["name"] = "flour", ["label"] = "Flour", ['weight'] = 100, ["type"] = "item", ["image"] = "flour.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["chocolate"] = {["name"] = "chocolate", ["label"] = "Chocolate", ['weight'] = 100, ["type"] = "item", ["image"] = "chocolate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["ephedrine"] = {["name"] = "ephedrine", ["label"] = "Ephedrine", ['weight'] = 100, ["type"] = "item", ["image"] = "ephedrine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["acetone"] = {["name"] = "acetone", ["label"] = "Acetone", ['weight'] = 100, ["type"] = "item", ["image"] = "acetone.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["methbags"] = {["name"] = "methbags", ["label"] = "Meth", ['weight'] = 100, ["type"] = "item", ["image"] = "methbags.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["blunt"] = {["name"] = "blunt", ["label"] = "Blunts", ['weight'] = 100, ["type"] = "item", ["image"] = "blunt.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["butane"] = {["name"] = "butane", ["label"] = "Butane", ['weight'] = 100, ["type"] = "item", ["image"] = "butane.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["butanetorch"] = {["name"] = "butanetorch", ["label"] = "Butane Torch", ['weight'] = 100, ["type"] = "item", ["image"] = "butanetorch.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dabrig"] = {["name"] = "dabrig", ["label"] = "Dab Rig", ['weight'] = 100, ["type"] = "item", ["image"] = "dabrig2.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["mdwoods"] = {["name"] = "mdwoods", ["label"] = "MDWOODS", ['weight'] = 100, ["type"] = "item", ["image"] = "mdwoods.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["ciggie"] = {["name"] = "ciggie", ["label"] = "Ciggie", ['weight'] = 100, ["type"] = "item", ["image"] = "ciggie.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["tobacco"] = {["name"] = "tobacco", ["label"] = "Tobacco", ['weight'] = 100, ["type"] = "item", ["image"] = "tobacco.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["shatter"] = {["name"] = "shatter", ["label"] = "Shatter", ['weight'] = 100, ["type"] = "item", ["image"] = "shatter.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["bluntwrap"] = {["name"] = "bluntwrap", ["label"] = "Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "bluntwrap.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["leanbluntwrap"] = {["name"] = "leanbluntwrap", ["label"] = "Lean Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "leanbluntwrap.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dextroblunt"] = {["name"] = "dextroblunt", ["label"] = "Dextro Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "dextroblunt.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dextrobluntwrap"] = {["name"] = "dextrobluntwrap", ["label"] = "Dextro Blunt Wrap", ['weight'] = 100, ["type"] = "item", ["image"] = "dextrobluntwrap.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["leanblunts"] = {["name"] = "leanblunts", ["label"] = "Lean Blunts", ['weight'] = 100, ["type"] = "item", ["image"] = "leanblunts.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["dextroblunts"] = {["name"] = "dextroblunts", ["label"] = "Dextro Blunts", ['weight'] = 100, ["type"] = "item", ["image"] = "dextroblunts.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["chewyblunt"] = {["name"] = "chewyblunt", ["label"] = "Chewy", ['weight'] = 100, ["type"] = "item", ["image"] = "blunt.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["sprunk"] = {["name"] = "sprunk", ["label"] = "Sprunk", ['weight'] = 100, ["type"] = "item", ["image"] = "sprunk.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["leancup"] = {["name"] = "leancup", ["label"] = "Empty Cup", ['weight'] = 100, ["type"] = "item", ["image"] = "leancup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cupoflean"] = {["name"] = "cupoflean", ["label"] = "Lean Cup", ['weight'] = 100, ["type"] = "item", ["image"] = "cupoflean.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["cupofdextro"] = {["name"] = "cupofdextro", ["label"] = "Dextro Cup", ['weight'] = 100, ["type"] = "item", ["image"] = "cupofdextro.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
["xtcburner"] = {["name"] = "xtcburner", ["label"] = "ENV Burner", ['weight'] = 100, ["type"] = "item", ["image"] = "xtcburner.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
|
||||
|
||||
```
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
- STEP 2
|
||||
on the **client** side for **all of these** place your Police Alert inside that function.
|
||||
in `Cornerselling.lua` line 30
|
||||
in`deliveries.lua` line 168
|
||||
in `oxyruns.lua` line 16
|
||||
in `wholesale.lua` line 5
|
||||
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
|
||||
```
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
step 3
|
||||
add this to your Config.Products = { in your config for qb-shops in the ['normal'] = { category
|
||||
```
|
||||
{name = 'bakingsoda', price = 100, amount = 5000, info = {}, type = 'item'},
|
||||
{name = 'emptyvial', price = 100, amount = 5000, info = {}, type = 'item'},
|
||||
{name = 'needle', price = 100, amount = 5000, info = {}, type = 'item'},
|
||||
```
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
step 4
|
||||
search in rpemotes for uncuff
|
||||
if you do not have this then add this in animationslist.lua`
|
||||
```
|
||||
["uncuff"] = {
|
||||
"mp_arresting",
|
||||
"a_uncuff",
|
||||
"Uncuff",
|
||||
AnimationOptions = {
|
||||
EmoteLoop = true,
|
||||
EmoteMoving = true
|
||||
}
|
||||
},
|
||||
```
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
step 5
|
||||
copy over the data from your config of v2
|
||||
there has been some changes in config calls and such so this is a massive rewrite. If you are not seeing an old config call its because its either no longer being used **OR** its forced to a location due to networked animationslist
|
||||
Reference in new issue
Block a user