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 4e13942 commit bb51dcc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -691,18 +691,17 @@ vehicleoptions_vehrelated_mod:On("select", function()
select = function(i)
ped = PlayerPedId()
veh = GetVehiclePedIsIn(ped, false)
local vehcolors, vehcolorp = nil, nil
if veh ~= 0 then
_, vehcolors = GetVehicleColours(veh)
if isPrimary then
local _, vehcolors = GetVehicleColours(veh)
SetVehicleColours(veh, v.colorindex, vehcolors)
end
if isSecondary then
vehcolorp, _ = GetVehicleColours(veh)
local vehcolorp, _ = GetVehicleColours(veh)
SetVehicleColours(veh, vehcolorp, v.colorindex)
end
if isWheel then
vehcolorp, _ = GetVehicleColours(veh)
local vehcolorp, _ = GetVehicleColours(veh)
SetVehicleExtraColours(veh, vehcolorp, v.colorindex)
end
if isDash then
Expand All @@ -712,7 +711,7 @@ vehicleoptions_vehrelated_mod:On("select", function()
SetVehicleInteriorColor(veh, v.colorindex)
end
if isPearlescent then
_, vehcolorwheel = GetVehicleExtraColours(veh)
local _, vehcolorwheel = GetVehicleExtraColours(veh)
SetVehicleExtraColours(veh, v.colorindex, vehcolorwheel)
end
end
Expand Down

0 comments on commit bb51dcc

Please sign in to comment.