hi,first thx for that great resource.
just want to ask if its possible for the boss to put out more than one vehicle to sell without much work?
in the config you have that one spot. here
if you are the boss and you have one car in the showroom to sell and you try to place a second car,the first one gets replaced meaning the showroom is nearly empty.
is it easy for you to add a “list” to the menu so you can add more locations to the config?
i think that would make the shop perfect. like here
-
Spot 1
-
Spot 2
-
Spot 3
-
Spot 4
i was not able to make a “list” menu ,i just started and i read a lot,but i break it all the time
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'commercial_vehicles',
{
title = _U('vehicle_dealer'),
align = 'top-left',
elements = elements
}, function (data, menu)
local model = data.current.value
DeleteShopInsideVehicles()
ESX.Game.SpawnVehicle(model, Config.Zones.ShopInside.Pos, Config.Zones.ShopInside.Heading, function (vehicle)
table.insert(LastVehicles, vehicle)
for i=1, #Vehicles, 1 do
if model == Vehicles[i].model then
CurrentVehicleData = Vehicles[i]
break
end
end
end)
end, function (data, menu)
menu.close()
end)