Skip to content

Commit

Permalink
Fixed bugs related to wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
adhershmnair committed Nov 17, 2024
1 parent 3285209 commit 6c80557
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 60 deletions.
8 changes: 6 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ vehicleoptions_vehrelated_mod:On("select", function()
description = Lang:t('desc.vehicle.vehicle_color'),
})

for k, v in pairs(VehicleMods.vehmods) do
for k, v in ipairs(VehicleMods.vehmods) do
if v.modType and type(v.modType) == 'number' then
if v.modType == 17 then
modbuttons[k] = vehicleoptions_mod_menu:AddCheckbox({
Expand All @@ -586,9 +586,13 @@ vehicleoptions_vehrelated_mod:On("select", function()
else
vehiclemod = vehiclemod + 1
end
local labelPrefix = ''
if v.modType == 23 then
labelPrefix = 'Wheel - '
end
modbuttons[k] = vehicleoptions_mod_menu:AddRange({
icon = '',
label = v.label,
label = labelPrefix .. v.label,
description = v.label,
min = 0,
max = max,
Expand Down
Loading

0 comments on commit 6c80557

Please sign in to comment.