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

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