From 06eb61fa2ae206a21baa8426b8a2f560ab7e7f37 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Wed, 15 Jan 2020 15:04:15 +0100 Subject: [PATCH] Fixed random vehicle colors --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index edc0ff5f..8f020a8a 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -752,7 +752,7 @@ ESX.Game.SetVehicleProperties = function(vehicle, props) if props.fuelLevel then SetVehicleFuelLevel(vehicle, props.fuelLevel + 0.0) end if props.dirtLevel then SetVehicleDirtLevel(vehicle, props.dirtLevel + 0.0) end if props.color1 then SetVehicleColours(vehicle, props.color1, colorSecondary) end - if props.color2 then SetVehicleColours(vehicle, colorPrimary, props.color2) end + if props.color2 then SetVehicleColours(vehicle, props.color1 or colorPrimary, props.color2) end if props.pearlescentColor then SetVehicleExtraColours(vehicle, props.pearlescentColor, wheelColor) end if props.wheelColor then SetVehicleExtraColours(vehicle, pearlescentColor, props.wheelColor) end if props.wheels then SetVehicleWheelType(vehicle, props.wheels) end