From 588d26c421b976b4d4fa2855351fb0acaf2941e7 Mon Sep 17 00:00:00 2001 From: Jerry <92690997+TomStilson@users.noreply.github.com> Date: Sun, 23 Jul 2023 11:14:03 +0800 Subject: [PATCH] fix(client/vehicleProperties): don't set modLivery if no livery exists (#374) --- resource/vehicleProperties/client.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resource/vehicleProperties/client.lua b/resource/vehicleProperties/client.lua index 0225b00bf..08cf3cf53 100644 --- a/resource/vehicleProperties/client.lua +++ b/resource/vehicleProperties/client.lua @@ -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