Merge pull request #706 from vrnagy/patch-3

fix(es_extended): GetVehicleProperties custom xenon color
This commit is contained in:
Benzo
2022-11-26 17:46:18 +01:00
committed by GitHub
+2 -2
View File
@@ -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