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
|
end
|
||||||
end
|
end
|
||||||
CreateThread(function()
|
RegisterNetEvent('md-drugs:client:opendealermenu', function()
|
||||||
local dealermenu = {}
|
local dealermenu = {}
|
||||||
if Config.StupidassNewQbItemName then
|
if Config.StupidassNewQbItemName then
|
||||||
for k, v in pairs (QBConfig.ProductsStupidNameRewrite) do
|
for k, v in pairs (QBConfig.ProductsStupidNameRewrite) do
|
||||||
@@ -74,6 +74,7 @@ CreateThread(function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
lib.showContext('dealermenu')
|
||||||
end)
|
end)
|
||||||
local function RandomDeliveryItemOnRep()
|
local function RandomDeliveryItemOnRep()
|
||||||
local myRep = QBCore.Functions.GetPlayerData().metadata["dealerrep"]
|
local myRep = QBCore.Functions.GetPlayerData().metadata["dealerrep"]
|
||||||
@@ -256,7 +257,7 @@ function InitZones()
|
|||||||
icon = 'fas fa-user-secret',
|
icon = 'fas fa-user-secret',
|
||||||
label = "Open Shop",
|
label = "Open Shop",
|
||||||
action = function()
|
action = function()
|
||||||
lib.showContext('dealermenu')
|
TriggerEvent('md-drugs:client:opendealermenu')
|
||||||
end,
|
end,
|
||||||
canInteract = function()
|
canInteract = function()
|
||||||
GetClosestDealer()
|
GetClosestDealer()
|
||||||
|
|||||||
Reference in new issue
Block a user