738 {
739 switch (slot_name)
740 {
741 case "CarBattery":
742 case "TruckBattery":
745 {
746 if (EngineIsOn())
747 {
748 EngineStop();
749 }
750
752 {
754 }
755 }
756 break;
757 case "SparkPlug":
758 case "GlowPlug":
760 if (
GetGame().IsServer() && EngineIsOn())
761 {
762 EngineStop();
763 }
764 break;
765 case "CarRadiator":
768 {
770
771 if (m_DamageZoneMap.Contains("Radiator"))
772 {
773 SetHealth("Radiator", "Health", 0);
774 }
775 }
776 break;
777 }
778
780 {
782 }
783
786 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
void UpdateLights(int new_gear=-1)
void ToggleHeadlights()
Switches headlights on/off, including the illumination of the control panel and synchronizes this cha...
void UpdateHeadlightState()
bool IsScriptedLightsOn()
Propper way to get if light is swiched on. Use instead of IsLightsOn().
proto native CGame GetGame()