Skip to content

Commit

Permalink
Fixed lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
adhershmnair committed Nov 17, 2024
1 parent bc2e280 commit 4e13942
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -693,19 +693,16 @@ vehicleoptions_vehrelated_mod:On("select", function()
veh = GetVehiclePedIsIn(ped, false)
local vehcolors, vehcolorp = nil, nil
if veh ~= 0 then
vehcolorp, vehcolors = GetVehicleColours(veh)
local _, vehcolorwheel = GetVehicleExtraColours(veh)
_, vehcolors = GetVehicleColours(veh)
if isPrimary then
SetVehicleColours(veh, v.colorindex, vehcolors)
end
if isSecondary then
vehcolorp, vehcolors = GetVehicleColours(veh)
_, vehcolorwheel = GetVehicleExtraColours(veh)
vehcolorp, _ = GetVehicleColours(veh)
SetVehicleColours(veh, vehcolorp, v.colorindex)
end
if isWheel then
vehcolorp, vehcolors = GetVehicleColours(veh)
_, vehcolorwheel = GetVehicleExtraColours(veh)
vehcolorp, _ = GetVehicleColours(veh)
SetVehicleExtraColours(veh, vehcolorp, v.colorindex)
end
if isDash then
Expand All @@ -715,7 +712,6 @@ vehicleoptions_vehrelated_mod:On("select", function()
SetVehicleInteriorColor(veh, v.colorindex)
end
if isPearlescent then
vehcolorp, vehcolors = GetVehicleColours(veh)
_, vehcolorwheel = GetVehicleExtraColours(veh)
SetVehicleExtraColours(veh, v.colorindex, vehcolorwheel)
end
Expand Down

0 comments on commit 4e13942

Please sign in to comment.