Skip to content

Commit

Permalink
fix(client/vehicleProperties): don't set modLivery if no livery exists (
Browse files Browse the repository at this point in the history
  • Loading branch information
TomStilson authored Jul 23, 2023
1 parent 2fafee4 commit 588d26c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/vehicleProperties/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ function lib.getVehicleProperties(vehicle)
end
end

local modLiveryCount = GetVehicleLiveryCount(vehicle)
local modLivery = GetVehicleLivery(vehicle)

if modLivery == -1 then
if modLiveryCount == -1 or modLivery == -1 then
modLivery = GetVehicleMod(vehicle, 48)
end

Expand Down

0 comments on commit 588d26c

Please sign in to comment.