/// <summary> /// Устанавливает настройки тюнинга /// </summary> internal static void SetVehicleTuning(Vehicle vehicle, VehicleTuning tuning) { ResetTuning(vehicle); API.shared.setVehiclePrimaryColor(vehicle, tuning.PrimaryColor); API.shared.setVehicleSecondaryColor(vehicle, tuning.SecondColor); API.shared.setVehicleEnginePowerMultiplier(vehicle, tuning.EnginePower); var neonColor = tuning.GetNeonColor(); if (neonColor.Length > 0) { TurnNeonState(vehicle, true); API.shared.setVehicleNeonColor(vehicle, neonColor[0], neonColor[1], neonColor[2]); } foreach (var mod in tuning.GetMods()) { API.shared.setVehicleMod(vehicle, mod.Key, mod.Value); } }