fix(client/vehicleProperties): don't set modLivery if no livery exists (#374)

This commit is contained in:
Jerry
2023-07-23 13:14:03 +10:00
committed by GitHub
parent 2fafee41a0
commit 588d26c421
+2 -1
View File
@@ -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