From c55af609563b54d7b11a948315c9e180d761987a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Nagy?= Date: Sat, 26 Nov 2022 01:43:56 +0100 Subject: [PATCH] fix(es_extended): GetVehicleProperties custom xenon color The first return parameter of GetVehicleXenonLightsCustomColor is a boolean indicating if the vehicle has custom color. --- [esx]/es_extended/client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/[esx]/es_extended/client/functions.lua b/[esx]/es_extended/client/functions.lua index f3882323..9210f240 100644 --- a/[esx]/es_extended/client/functions.lua +++ b/[esx]/es_extended/client/functions.lua @@ -676,9 +676,9 @@ function ESX.Game.GetVehicleProperties(vehicle) customPrimaryColor = {r, g, b} end - local customXenonColorR, customXenonColorG, customXenonColorB = GetVehicleXenonLightsCustomColor(vehicle) + local hasCustomXenonColor, customXenonColorR, customXenonColorG, customXenonColorB = GetVehicleXenonLightsCustomColor(vehicle) local customXenonColor = nil - if customXenonColorR and customXenonColorG and customXenonColorB then + if hasCustomXenonColor then customXenonColor = {customXenonColorR, customXenonColorG, customXenonColorB} end