Gets called everytime the game wants to start the engine. This callback is called on server only.
1716 {
1718
1720 {
1723 {
1725 return false;
1726 }
1727 }
1728
1729 if (IsVitalSparkPlug())
1730 {
1731 item = FindAttachmentBySlotName("SparkPlug");
1732 if (!item || (item && item.IsRuined()))
1733 {
1735 return false;
1736 }
1737 }
1738
1740 {
1741 item = FindAttachmentBySlotName("GlowPlug");
1742 if (!item || (item && item.IsRuined()))
1743 {
1745 return false;
1746 }
1747 }
1748
1749 if (GetFluidFraction(
CarFluid.FUEL) <= 0)
1750 {
1752 return false;
1753 }
1754
1755 return true;
1756 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
void SetCarEngineSoundState(CarEngineSoundState pState)
float m_BatteryEnergyStartMin
bool IsVitalTruckBattery()