Esempio n. 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();
            }
        }
Esempio n. 2
0
        internal static void Cruise(bool toggle)
        {
            _toggleCruise = toggle;
            bool startIfOkey = Checks.IsPerformed(toggle, "Cruise");

            HVehicles.CruiseWithVehicle(startIfOkey);
        }
Esempio n. 3
0
 internal static void VehicleRepairToggle(bool toggle)
 {
     repairToggle = toggle;
     Checks.IsPerformed(toggle, "Repair");
 }