removed 90% of logs ( added logs to getrecipe, locationcheck, and fixed wholesale, dealers, and oxyruns, and meth
This commit is contained in:
1 parent
cdd26ab465
commit
5c5f454207
14 files changed
+97
-212
No files matched your search
+12
-4
@@ -1,14 +1,13 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
local isActive = false
|
||||
|
||||
local dealer = {}
|
||||
RegisterNetEvent('md-drugs:client:opendealermenu', function()
|
||||
local rep = GetRep()
|
||||
makeMenu('dealermenu', rep)
|
||||
lib.showContext('dealermenu')
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
local dealer = {}
|
||||
local function SpawnDealer()
|
||||
local getDealers = lib.callback.await('md-drugs:server:getDealers', false)
|
||||
for k,v in pairs(getDealers) do
|
||||
local Ped = "g_m_y_famdnf_01"
|
||||
@@ -30,6 +29,14 @@ CreateThread(function()
|
||||
action = function() TriggerEvent('md-drugs:client:opendealermenu') end,
|
||||
}}, dealer[k])
|
||||
end
|
||||
end
|
||||
|
||||
RegisterNetEvent('md-drugs:client:RefreshDealers', function()
|
||||
SpawnDealer()
|
||||
end)
|
||||
|
||||
CreateThread(function()
|
||||
SpawnDealer()
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:setLocation', function(data)
|
||||
@@ -54,4 +61,5 @@ RegisterNetEvent('md-drugs:client:setLocation', function(data)
|
||||
end
|
||||
end
|
||||
}, nil)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user