Update vehicle color apply functions

This commit is contained in:
Jérémie N'gadi
2017-08-13 12:55:09 +02:00
parent d8f64a4098
commit 10def0786d
@@ -656,8 +656,14 @@ ESX.Game.SetVehicleProperties = function(vehicle, props)
SetVehicleDirtLevel(vehicle, props.dirtLevel)
end
if props.color1 ~= nil and props.color2 ~= nil then
SetVehicleColours(vehicle, props.color1, props.color2)
if props.color1 ~= nil then
local colour1, colour2 = GetVehicleColours(vehicle)
SetVehicleColours(vehicle, props.color1, color2)
end
if props.color2 ~= nil then
local colour1, colour2 = GetVehicleColours(vehicle)
SetVehicleColours(vehicle, color1, props.color2)
end
if props.pearlescentColor ~= nil and props.wheelColor ~= nil then