File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff 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 })
Original file line number Diff line number Diff 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+
1225end , true )
1326
1427RegisterServerEvent (" jim-recycle:Server:DoorCharge" , function ()
You can’t perform that action at this time.
0 commit comments