From 77e810ce9586081fd7a79db6e11a92f08647f60b Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Thu, 26 Mar 2020 12:10:45 +0100 Subject: [PATCH] Fixed setting vehicle pearlescent color Co-Authored-By: Daniel Hawton Co-Authored-By: ChainTastic --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index 07c9cab4..ce849263 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -765,7 +765,7 @@ ESX.Game.SetVehicleProperties = function(vehicle, props) if props.color1 then SetVehicleColours(vehicle, props.color1, colorSecondary) 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.wheelColor then SetVehicleExtraColours(vehicle, props.pearlescentColor or pearlescentColor, props.wheelColor) end if props.wheels then SetVehicleWheelType(vehicle, props.wheels) end if props.windowTint then SetVehicleWindowTint(vehicle, props.windowTint) end