Skip to content

Commit

Permalink
fixed armor option available despite not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Suter authored Mar 27, 2022
1 parent 51c63e3 commit 1672d2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/cl_ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,14 @@ function InitiateMenus(isMotorcycle, vehicleHealth, categories, welcomeLabel)
local _, amountValidMods = CheckValidMods(v.category, v.id)

if amountValidMods > 0 or v.id == 18 then
if (v.id == 11 or v.id == 12 or v.id == 13 or v.id == 15 or v.id == 16) then
if (v.id == 11 or v.id == 12 or v.id == 13 or v.id == 15) then
if categories.mods and maxVehiclePerformanceUpgrades ~= -1 then
populateMenu("mainMenu", v.id, v.category, "none")
end
elseif v.id == 16 then
if categories.armor then
populateMenu("mainMenu", v.id, v.category, "none")
end
elseif v.id == 14 then
if categories.horns then
populateMenu("mainMenu", v.id, v.category, "none")
Expand Down Expand Up @@ -956,4 +960,4 @@ RegisterNUICallback("updateItem2", function(data, cb)
currentMenuItem2 = data.item

cb("ok")
end)
end)

0 comments on commit 1672d2a

Please sign in to comment.