From c2171649efb3291bc22d7f1dbfcde1999a7e726f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=90=AFI=E1=96=87=E1=91=8C=E1=94=95?= <58401490+Virus18sp@users.noreply.github.com> Date: Sat, 19 Jun 2021 21:19:48 -0400 Subject: [PATCH] fix for Xenon lights color not set when retrieve from the garage Added new native and fixed a call for a non exist json parameter. --- client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 8d951a8..4bdb2a6 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -576,8 +576,8 @@ QBCore.Functions.SetVehicleProperties = function(vehicle, props) ToggleVehicleMod(vehicle, 22, props.modXenon) end - if props.modXenonColor ~= nil then - SetVehicleXenonLightsColour(vehicle, props.modXenonColor) + if props.xenonColor ~= nil then + SetVehicleXenonLightsColor(vehicle, props.xenonColor) end if props.modFrontWheels ~= nil then