From 542b143e750bc6e7de6709274a65074dc2d25320 Mon Sep 17 00:00:00 2001 From: Muhammed Yaseen Date: Fri, 9 May 2025 08:34:46 +0530 Subject: [PATCH] Removed duplication of Custom primary and secondary colors --- [core]/es_extended/client/functions.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 42a2a912..71ed4882 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -991,13 +991,6 @@ function ESX.Game.SetVehicleProperties(vehicle, props) if props.dirtLevel ~= nil then SetVehicleDirtLevel(vehicle, props.dirtLevel + 0.0) end - if props.customPrimaryColor ~= nil then - SetVehicleCustomPrimaryColour(vehicle, props.customPrimaryColor[1], props.customPrimaryColor[2], props.customPrimaryColor[3]) - end - if props.customSecondaryColor ~= nil then - SetVehicleCustomSecondaryColour(vehicle, props.customSecondaryColor[1], props.customSecondaryColor[2], props.customSecondaryColor[3]) - end - if props.color1 ~= nil then if type(props.color1) == "table" then SetVehicleCustomPrimaryColour(vehicle, props.color1[1], props.color1[2], props.color1[3]) @@ -1005,7 +998,6 @@ function ESX.Game.SetVehicleProperties(vehicle, props) SetVehicleColours(vehicle, props.color1, colorSecondary) end end - if props.color2 ~= nil then if type(props.color2) == "table" then SetVehicleCustomSecondaryColour(vehicle, props.color2[1], props.color2[2], props.color2[3]) @@ -1013,7 +1005,6 @@ function ESX.Game.SetVehicleProperties(vehicle, props) SetVehicleColours(vehicle, props.color1 or colorPrimary, props.color2) end end - if props.pearlescentColor ~= nil then SetVehicleExtraColours(vehicle, props.pearlescentColor, wheelColor) end