Example #1
0
        internal static void DriveTo(bool toggle)
        {
            SetDefault();

            bool startIfOkey = Checks.IsPerformed(toggle, "Drive to");

            if (startIfOkey)
            {
                if (Game.IsWaypointActive)
                {
                    HVehicles.DriveToWapointPosition(startIfOkey);
                    _isParking     = true;
                    _toggleDriveTo = toggle;
                }
                else if (toggle && !Game.IsWaypointActive)
                {
                    UI.Notify("Enter waypoint");
                }
            }
            else if (!toggle)
            {
                _toggleDriveTo = toggle;
                Game.Player.Character.Task.ClearAll();
            }
        }
Example #2
0
        internal static void Cruise(bool toggle)
        {
            _toggleCruise = toggle;
            bool startIfOkey = Checks.IsPerformed(toggle, "Cruise");

            HVehicles.CruiseWithVehicle(startIfOkey);
        }