Xenon Color addition

Could be used in esx_lscustoms, to change colors of xenons
This commit is contained in:
Deliux
2020-02-12 15:40:19 +02:00
committed by GitHub
parent d2bf5cc73b
commit e6c90ea30e
+2
View File
@@ -676,6 +676,7 @@ ESX.Game.GetVehicleProperties = function(vehicle)
wheels = GetVehicleWheelType(vehicle),
windowTint = GetVehicleWindowTint(vehicle),
xenonColor = GetVehicleXenonLightsColour(vehicle),
neonEnabled = {
IsVehicleNeonLightEnabled(vehicle, 0),
@@ -780,6 +781,7 @@ ESX.Game.SetVehicleProperties = function(vehicle, props)
end
if props.neonColor then SetVehicleNeonLightsColour(vehicle, props.neonColor[1], props.neonColor[2], props.neonColor[3]) end
if props.xenonColor then SetVehicleXenonLightsColour(vehicle, props.xenonColor) end
if props.modSmokeEnabled then ToggleVehicleMod(vehicle, 20, true) end
if props.tyreSmokeColor then SetVehicleTyreSmokeColor(vehicle, props.tyreSmokeColor[1], props.tyreSmokeColor[2], props.tyreSmokeColor[3]) end
if props.modSpoilers then SetVehicleMod(vehicle, 0, props.modSpoilers, false) end