private void OnCrash(object sender, CEventArgs e) { if (e.isRepaired) { DashControl(dashIni); } if (!e.isRepaired) { DashControl(dashIni, true); } }
private void CheckStatus() { CEventArgs e = new CEventArgs(); Vehicle myVehicle = Game.Player.Character.CurrentVehicle; if (myVehicle != null) { if (myVehicle.BodyHealth <= 950f) { e.isRepaired = false; Crash(this, e); } else { e.isRepaired = true; Crash(this, e); } } }