Add files via upload
This commit is contained in:
1 parent
499b4a97cc
commit
aaa60b9a2c
1 file changed
+3
-2
@@ -35,7 +35,7 @@ local function GetClosestDealer()
|
||||
end
|
||||
end
|
||||
end
|
||||
CreateThread(function()
|
||||
RegisterNetEvent('md-drugs:client:opendealermenu', function()
|
||||
local dealermenu = {}
|
||||
if Config.StupidassNewQbItemName then
|
||||
for k, v in pairs (QBConfig.ProductsStupidNameRewrite) do
|
||||
@@ -74,6 +74,7 @@ CreateThread(function()
|
||||
end
|
||||
end
|
||||
end
|
||||
lib.showContext('dealermenu')
|
||||
end)
|
||||
local function RandomDeliveryItemOnRep()
|
||||
local myRep = QBCore.Functions.GetPlayerData().metadata["dealerrep"]
|
||||
@@ -256,7 +257,7 @@ function InitZones()
|
||||
icon = 'fas fa-user-secret',
|
||||
label = "Open Shop",
|
||||
action = function()
|
||||
lib.showContext('dealermenu')
|
||||
TriggerEvent('md-drugs:client:opendealermenu')
|
||||
end,
|
||||
canInteract = function()
|
||||
GetClosestDealer()
|
||||
|
||||
Reference in new issue
Block a user