private void TrailerDetachedOnDestination(TruckInfo truckInfo, TrailerInfo trailerInfo) { API.ConsoleOutput("TrailerDetachedOnDestination"); var driver = truckInfo.GetDriver(); if (driver == null) { return; } if (driver.VehicleSeat != -1) { return; } double bankmoney = double.Parse(driver.GetData("Money").ToString()); double cash = bankmoney + trailerInfo.Money; driver.SetData("Money", cash); API.SendPictureNotificationToPlayer(driver, "Von: Spedition Perez \n Summe: $" + trailerInfo.Money.ToString() + " - \n Bargeld: $" + cash.ToString(), "CHAR_BANK_MAZE", 1, 1, "Spedition Perez", "Zahlungseingang"); trailerInfo.Delete(); }