public static void SetupJump(TimeCircuits timeCircuits, DateTime time)
        {
            Utils.DeleteNearbyVehPed();

            // Try to find a stored moment for our time jump
            var moment = GetStoredMoment(time, 6);

            if (moment != null)
            {
                // We found a moment.
                // Apply it.
                ApplyMoment(moment);
            }
            else
            {
                // Get the current Moment object for current situation.
                var currentMoment = GetMomentForNow();

                // Clear the entered vehicles list
                vehiclesEnteredByPlayer.Clear();

                // We didn't find a moment.
                // Randomise.
                Randomize(timeCircuits);

                // Get the moment AFTER randomizing
                var newMoment = GetMomentForNow();
                newMoment.CurrentDate = timeCircuits.DestinationTime;

                // Add both moments to stored Moments list.
                momentsInTime.Add(moment);
                momentsInTime.Add(newMoment);
            }

            DeloreanHandler.ExistenceCheck(time);

            RemoteDeloreansHandler.ExistenceCheck(time);

            RogersSierra.Manager.RogersSierra?.Delete();
        }
        private static void MainMenu_OnItemSelect(UIMenu sender, UIMenuItem selectedItem, int index)
        {
            if (selectedItem == spawnPresetDelorean && DeloreanModsCopy.ListPresets().Count == 0)
            {
                Notification.Show(Game.GetLocalizedString("BTTFV_Menu_Presets_Not_Found"));
            }

            if (selectedItem == spawnCustomDelorean || selectedItem == spawnPresetDelorean)
            {
                return;
            }

            if (selectedItem == spawnDelorean)
            {
                DeloreanHandler.Spawn(DeloreanType.DMC12);
                Main.MenuPool.CloseAllMenus();
            }

            if (selectedItem == spawnDelorean1)
            {
                if (ModSettings.CinematicSpawn)
                {
                    DeloreanHandler.SpawnWithReentry(DeloreanType.BTTF1);
                }
                else
                {
                    DeloreanHandler.Spawn(DeloreanType.BTTF1);
                }
                Main.MenuPool.CloseAllMenus();
            }

            if (selectedItem == spawnDelorean2)
            {
                if (ModSettings.CinematicSpawn)
                {
                    DeloreanHandler.SpawnWithReentry(DeloreanType.BTTF2);
                }
                else
                {
                    DeloreanHandler.Spawn(DeloreanType.BTTF2);
                }
                Main.MenuPool.CloseAllMenus();
            }

            if (selectedItem == spawnDelorean3)
            {
                if (ModSettings.CinematicSpawn)
                {
                    DeloreanHandler.SpawnWithReentry(DeloreanType.BTTF3);
                }
                else
                {
                    DeloreanHandler.Spawn(DeloreanType.BTTF3);
                }
                Main.MenuPool.CloseAllMenus();
            }

            if (selectedItem == removeOtherDeloreans)
            {
                DeloreanHandler.RemoveAllDeloreans(true);
                RemoteDeloreansHandler.DeleteAll();
                Notification.Show(Game.GetLocalizedString("BTTFV_RemovedOtherTimeMachines"));
            }

            if (selectedItem == removeAllDeloreans)
            {
                DeloreanHandler.RemoveAllDeloreans();
                RemoteDeloreansHandler.DeleteAll();
                Notification.Show(Game.GetLocalizedString("BTTFV_RemovedAllTimeMachines"));
            }

            if (selectedItem == removeDelorean)
            {
                var delorean = DeloreanHandler.GetDeloreanFromVehicle(Main.PlayerVehicle);

                if (delorean == null)
                {
                    Notification.Show(Game.GetLocalizedString("BTTFV_NotSeatedInTimeMachine"));
                    return;
                }

                DeloreanHandler.RemoveDelorean(delorean);
            }
        }