Skip to content

Commit e327a74

Browse files
committed
Fix sellMenu not working with jim_bridge update
I need to fully test this one, but this should fix it
1 parent 12d79a7 commit e327a74

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

client/client.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ onPlayerLoaded(function()
147147
}, {
148148
{
149149
action = function(data)
150-
sellMenu({ sellTable = Config.Other.Prices, ped = type(data) == "table" and data.entity or data })
150+
sellMenu({
151+
name = nameSell,
152+
ped = type(data) == "table" and data.entity or data,
153+
sellTable = Config.Other.Prices,
154+
})
151155
lookEnt(loc.coords)
152156
end,
153157
icon = "fas fa-certificate",
@@ -180,6 +184,7 @@ onPlayerLoaded(function()
180184
{
181185
action = function(data)
182186
sellMenu({
187+
name = nameBank,
183188
sellTable = Config.Other.BottleBankTable,
184189
ped = type(data) == "table" and data.entity or data
185190
})

server/server.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ onResourceStart(function()
99
print("^5Debug^7: ^2Missing Item from ^5Shared Items^7: '^6recyclablematerial^7'")
1010
end
1111

12+
-- Register Sell Shops
13+
for i = 1, #Config.Locations["BottleBanks"] do
14+
local loc = Config.Locations["BottleBanks"][i]
15+
local nameBank = "BottleBank:"..i
16+
registerSellShop(nameBank, loc.coords)
17+
end
18+
19+
for i = 1, #Config.Locations["Recycle"] do
20+
local loc = Config.Locations["Recycle"][i]
21+
local nameSell = "Recycle:"..i
22+
registerSellShop(nameSell, loc.coords)
23+
end
24+
1225
end, true)
1326

1427
RegisterServerEvent("jim-recycle:Server:DoorCharge", function()

0 commit comments

Comments
 (0)