Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move shops back to core #48

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ local function openVehCatsMenu(category)

for k, v in pairs(VEHICLES) do
if VEHICLES[k].category == category then
if type(config.vehicles[k].shop) == 'table' then
for _, shop in pairs(config.vehicles[k].shop) do
if type(VEHICLES[k].shop) == 'table' then
for _, shop in pairs(VEHICLES[k].shop) do
if shop == insideShop then
vehMenu[#vehMenu + 1] = {
title = v.brand..' '..v.name,
Expand All @@ -211,7 +211,7 @@ local function openVehCatsMenu(category)
}
end
end
elseif config.vehicles[k].shop == insideShop then
elseif VEHICLES[k].shop == insideShop then
vehMenu[#vehMenu + 1] = {
title = v.brand..' '..v.name,
description = Lang:t('menus.veh_price')..v.price,
Expand Down
Loading
Loading