- push for ready

This commit is contained in:
Mustache Dom committed 2026-03-05 00:00:34 -08:00
1 parent c3084abc78
commit 4e48857437
39 files changed
+178 -149

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['TravellingMerchant'] then return end
local loc = Config.Merchant.Locations.Travellingmerchant[math.random(1, #Config.Merchant.Locations.Travellingmerchant)]
Bridge.Callback.Register('md-drugs:server:GetMerchant', function(source)
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['cocaine'] then return end
local Locations = Config.Cocaine.Locations
local Recipes = Config.Cocaine.Recipes
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['consumables'] then return end
for k, v in pairs(Config.Consumables.Consume) do
Bridge.Framework.RegisterUsableItem(k, function(source, item)
if not Bridge.Inventory.HasItem(source, k, 1) then return end
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['crack'] then return end
RegisterServerEvent('md-drugs:server:makecrackone', function(num)
local src = source
+9 -2
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['deliveries'] then return end
local drugDeliveryItem = {
{item = 'coke_brick', amount = 1},
@@ -12,11 +12,18 @@ CreateThread(function()
for i = 1, #dealers do
local coords = json.decode(dealers[i].coords)
Dealers[#Dealers + 1] = {
coords = vector4(coords.x, coords.y, coords.z, coords.w),
coords = vector4(coords.x, coords.y, coords.z, coords.w or 180.0),
model = dealers[i].model or 'a_m_m_skater_01',
}
end
GlobalState.MDDrugDealers = Dealers
else
MySQL.insert('INSERT INTO dealers (model, coords, createdby) VALUES (?, ?, ?)', {'a_m_m_skater_01', json.encode(vector4(1915.68, 154.22, 155.41, 6.88)), 'default'})
Dealers[#Dealers + 1] = {
coords = vector4(1915.68, 154.22, 155.41, 6.88),
model = 'a_m_m_skater_01',
}
GlobalState.MDDrugDealers = Dealers
end
end)
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['heroin'] then return end
local heroinLabKits = {}
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['lean'] then return end
local onRun = {}
local function setTimeout(identifier)
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['lsd'] then return end
local lsdTables = {}
RegisterServerEvent('md-drugs:server:getlysergic', function(num)
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['mescaline'] then return end
RegisterNetEvent("md-drugs:server:drymescaline", function(num)
local src = source
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['meth'] then return end
local onRun = {}
local vehicles = {}
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['oxyruns'] then return end
local onRoute = {}
local vehicles = {}
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['deliveries'] then return end
local function GetJob(source)
local src = source
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['shrooms'] then return end
Bridge.Framework.RegisterUsableItem('shrooms', function(source, item)
local src = source
if not Bridge.Callback.Trigger("md-drugs:client:shrooms", src) then
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['weed'] then return end
RegisterNetEvent('md-drugs:server:buyWeedItem', function(loc, name, amount)
local src = source
if not checkDistance(src, Config.Weed.Locations.WeedSalesman[loc].loc, 3.5, 'md-drugs:server:buyWeedItem') then
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['whippit'] then return end
RegisterServerEvent('md-drugs:server:buyWhippitItem', function(loc, item,amount)
local src = source
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['wholesale'] then return end
local burners = {
cokeburner = { "cokebaggy", "cokebaggystagethree", "cokebaggystagetwo"},
crackburner = {"baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree"},
+1 -1
View File
@@ -1,4 +1,4 @@
if not Config.Drugs['xtc'] then return end
local activePresses = {}
RegisterServerEvent('md-drugs:server:stealisosafrole', function(num)