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

This commit is contained in:
Jerry
2023-07-23 11:14:03 +08:00
committed by GitHub
parent 2fafee41a0
commit 588d26c421

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