- big change, moved data to shared folder
This commit is contained in:
1 parent
fdc28723bc
commit
c7eca0285b
52 files changed
+1117
-1128
No files matched your search
+1
-2
@@ -1,7 +1,6 @@
|
||||
local cuttingcoke = nil
|
||||
local baggingcoke = nil
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Cocaine ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Cocaine
|
||||
local locations = Config.Cocaine.Locations
|
||||
|
||||
local function CutCoke(coords, offset, rotation)
|
||||
cuttingcoke = true
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
local sell = false
|
||||
local inZone = false
|
||||
local buyers = {}
|
||||
|
||||
local function walkAway(targ)
|
||||
FreezeEntityPosition(targ, false)
|
||||
ClearPedTasks(targ)
|
||||
@@ -209,7 +210,7 @@ RegisterNetEvent('md-drugs:client:cornerselling', function()
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
for k, v in pairs (GlobalState.MDDrugsLocations.CornerSelling.noSellZones) do
|
||||
for k, v in pairs (Config.Cornerselling.noSellZones) do
|
||||
Bridge.Point.Register(
|
||||
'MDDRUGNOSELLZONE'..k,
|
||||
v.loc,
|
||||
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Crack ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Crack
|
||||
local locations = Config.Crack.Locations
|
||||
|
||||
for k, v in pairs (locations.makecrack) do
|
||||
Bridge.Target.AddBoxZone('makeCrack'..k, v.loc, v.size, v.loc.w or 180.0, {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
local dealer = {}
|
||||
local buyer = nil
|
||||
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Deliveries.dealers ~= nil
|
||||
repeat Wait(100) until GlobalState.MDDrugDealers ~= nil
|
||||
|
||||
local function SpawnDealer()
|
||||
if #dealer >= 1 then
|
||||
@@ -11,7 +11,7 @@ local function SpawnDealer()
|
||||
end
|
||||
dealer = {}
|
||||
end
|
||||
for k,v in pairs(GlobalState.MDDrugsLocations.Deliveries.dealers) do
|
||||
for k,v in pairs(GlobalState.MDDrugDealers) do
|
||||
requestModel(v.model)
|
||||
dealer[k] = CreatePed(0, v.model, v.coords.x, v.coords.y, v.coords.z-1, v.coords.w, false, false)
|
||||
Freeze(dealer[k], true, v.coords.w)
|
||||
@@ -29,7 +29,7 @@ local function SpawnDealer()
|
||||
action = function()
|
||||
local rep = GetRep()
|
||||
local options = {}
|
||||
for m, d in pairs (GlobalState.MDDrugsRecipes.Deliveries) do
|
||||
for m, d in pairs (Config.Deliveries.Recipes) do
|
||||
if rep.dealerrep >= d.minrep then
|
||||
options[#options+1] = {
|
||||
title = Bridge.Inventory.GetItemInfo(d.name).label,
|
||||
@@ -50,7 +50,6 @@ local function SpawnDealer()
|
||||
end,
|
||||
}
|
||||
})
|
||||
targets[#targets+1] = dealer[k]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -81,5 +80,4 @@ RegisterNetEvent('md-drugs:client:setLocation', function(data)
|
||||
end,
|
||||
}
|
||||
})
|
||||
targets[#targets+1] = buyer
|
||||
end)
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
|
||||
local herointable = false
|
||||
local dirty = false
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Heroin ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Heroin
|
||||
|
||||
local locations = Config.Heroin.Locations
|
||||
|
||||
local function createLabKit(coord, head)
|
||||
local heroinlabkit = CreateObject("v_ret_ml_tablea", coord.x, coord.y, coord.z - 1, true, false,false)
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
|
||||
local started = false
|
||||
local leanCar = nil
|
||||
repeat Wait(100) until GlobalState.MDDrugsRecipes.Lean ~= nil
|
||||
local location = GlobalState.MDDrugsLocations.Lean
|
||||
|
||||
local location = Config.Lean.Locations
|
||||
|
||||
local function SpawnCarPedChase(loc)
|
||||
local stoploc = vector3(-1157.63, -3056.71, 13.94)
|
||||
@@ -109,7 +109,7 @@ end
|
||||
|
||||
RegisterNetEvent("md-drugs:client:makeLean", function()
|
||||
local menu = {}
|
||||
for k, v in pairs (GlobalState.MDDrugsRecipes.Lean) do
|
||||
for k, v in pairs (Config.Lean.Recipes) do
|
||||
menu[#menu+1] = {
|
||||
title = Bridge.Inventory.GetItemInfo(v.item).label,
|
||||
description = concat(v.ingredients),
|
||||
|
||||
+1
-3
@@ -1,8 +1,6 @@
|
||||
local tableout = false
|
||||
local dirtylsd = false
|
||||
repeat Wait(100) until GlobalState.MDDrugsRecipes.LSD ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.LSD
|
||||
|
||||
local locations = Config.LSD.Locations
|
||||
|
||||
local function createLabKit(coord, head)
|
||||
requestModel("v_ret_ml_tablea")
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
local badTrip = 100
|
||||
repeat Wait(100) until GlobalState.MDDrugsRecipes.Mescaline ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Mescaline
|
||||
local locations = Config.Mescaline.Locations
|
||||
local function AlienEffect()
|
||||
CreateThread(function()
|
||||
StartScreenEffect("DrugsMichaelAliensFightIn", 3.0, 0)
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
local amonia, tray, heated, active, trays, startedmeth, methVan = false, false, false, false, nil, false, nil
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Meth ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Meth
|
||||
local locations = Config.Meth.Locations
|
||||
--- meth heist
|
||||
|
||||
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
local carryPackage = nil
|
||||
local onMission = false
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Oxy ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Oxy
|
||||
local locations = Config.Oxy.Locations
|
||||
local pdAlert = 90
|
||||
local vehicle = nil
|
||||
|
||||
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Pharma ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.Pharma
|
||||
local locations = Config.Pharma.Locations
|
||||
|
||||
Bridge.Callback.Register("md-drugs:client:prescriptionpad", function( data, op)
|
||||
local job = Bridge.Framework.GetPlayerJob()
|
||||
|
||||
+1
-14
@@ -97,17 +97,4 @@ for k, v in pairs (DrugPlants) do
|
||||
end)
|
||||
TriggerEvent(v.label ..":init")
|
||||
::continue::
|
||||
|
||||
end
|
||||
|
||||
AddEventHandler('onResourceStop', function(resourceName)
|
||||
if GetCurrentResourceName() == resourceName then
|
||||
SetModelAsNoLongerNeeded(GetHashKey('prop_plant_01a'))
|
||||
for k, v in pairs(DrugPlants) do
|
||||
for key, plant in pairs(v.plantTbl) do
|
||||
if DoesEntityExist(plant) then DeleteEntity(plant) end
|
||||
v.plantTbl[key] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
local exploded, drying = false, false
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Weed ~= nil and GlobalState.MDDrugsRecipes.Weed ~= nil
|
||||
local locations, recipes = GlobalState.MDDrugsLocations.Weed, GlobalState.MDDrugsRecipes.Weed
|
||||
local locations, recipes = Config.Weed.Locations, Config.Weed.Recipes
|
||||
for k, v in pairs (locations.WeedDry) do
|
||||
Bridge.Target.AddBoxZone('weed_dry'..k, v.loc, v.size, v.loc.w or 180.0, {
|
||||
{
|
||||
|
||||
+2
-3
@@ -1,5 +1,4 @@
|
||||
local prop = nil
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Whippit ~= nil and GlobalState.MDDrugsRecipes.Whippit ~= nil
|
||||
|
||||
local function animation(color)
|
||||
local coords = GetEntityCoords(PlayerPedId())
|
||||
@@ -41,7 +40,7 @@ end)
|
||||
|
||||
local function spawnShops()
|
||||
|
||||
for k, v in pairs(GlobalState.MDDrugsLocations.Whippit) do
|
||||
for k, v in pairs(Config.Whippit.Locations.Whippit) do
|
||||
requestModel(v.ped)
|
||||
local ped = CreatePed(5, GetHashKey(v.ped), v.loc.x, v.loc.y, v.loc.z, v.loc.w, true, true)
|
||||
FreezeEntityPosition(ped, true)
|
||||
@@ -53,7 +52,7 @@ local function spawnShops()
|
||||
icon = Bridge.Language.Locale('Whippit.whippitIcon'),
|
||||
action = function()
|
||||
local menu = {}
|
||||
for item, price in pairs (GlobalState.MDDrugsRecipes.Whippit.shop) do
|
||||
for item, price in pairs (Config.Whippit.Recipes.shop) do
|
||||
local itemInfo = Bridge.Inventory.GetItemInfo(item)
|
||||
menu[#menu + 1] = {
|
||||
title = itemInfo.label,
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
local xtcpress = false
|
||||
repeat Wait(100) until GlobalState.MDDrugsLocations.XTC ~= nil
|
||||
local locations = GlobalState.MDDrugsLocations.XTC
|
||||
local locations = Config.XTC.Locations
|
||||
|
||||
local function getRecipeList(tbl, type)
|
||||
local rec
|
||||
@@ -139,7 +138,7 @@ for k, v in pairs(locations.xtcpress) do
|
||||
label = Bridge.Language.Locale('xtc.getPress'),
|
||||
onSelect = function()
|
||||
local options = {}
|
||||
local recipeList = GlobalState.MDDrugsRecipes.XTC.presses
|
||||
local recipeList = Config.XTC.Recipes.presses
|
||||
for m, d in pairs(recipeList) do
|
||||
if m == 'singlepress' then
|
||||
local itemInfo = Bridge.Inventory.GetItemInfo(m)
|
||||
|
||||
Reference in new issue
Block a user