Skip to main content

AutoPilot

GPS-guided autonomous driving with three speed modes

This section

AutoPilot

GPS-guided autonomous driving system using the TaskVehicleDriveToCoord native. Select a destination on the GTA V map and let the car drive itself.

Speed Modes

ModeSpeedDescription
Eco100 km/hCasual city driving
Sport150 km/hFaster highway driving
Sport+200 km/hMaximum speed driving

How It Works

  1. Open the AutoPilot tab in CarPlay
  2. Select a destination on the interactive GTA V map
  3. Choose a speed mode (Eco, Sport, Sport+)
  4. Configure driving style flags as needed
  5. Press start — the vehicle drives to the destination
  6. Real-time GPS shows remaining distance, turn direction, and street name
  7. AutoPilot stops automatically when within 50 meters of the destination

During autopilot, a navigation overlay shows:

  • Current street name
  • Turn direction (left, right, straight)
  • Remaining distance
  • The overlay position is draggable and persists across sessions

Driving Style Flags

17 configurable flags that control how the autopilot drives:

FlagDescriptionDefault
Stop for CarsStops before vehiclesfalse
Stop for PedsStops before pedestriansfalse
Swerve Around CarsAvoids vehiclesfalse
Steer Around Stationary CarsAvoids empty vehiclesfalse
Steer Around PedsAvoids pedestriansfalse
Steer Around ObjectsAvoids objectsfalse
Don't Steer Around Player PedWill not avoid player pedfalse
Stop at LightsStops at traffic lightsfalse
Go Off Road When AvoidingAllow off-road when avoidingfalse
Drive Into Oncoming TrafficWrong way if lane is fullfalse
Drive in ReverseDrives in reverse gearfalse
Wander FallbackCruise randomly if pathfinding failsfalse
Avoid Restricted AreasAvoid restricted areasfalse
Adjust Speed Based on RoadFollow road speed limitfalse
Use Short Cut LinksUses dirt roads/shortcutsfalse
Change Lanes Around ObstructionsChanges lanes around obstaclesfalse
Avoid HighwaysAvoid highways unless necessaryfalse

Job Restriction

OptionDefaultDescription
Config.AutoPilotAllowedJobs{}Job whitelist (empty = everyone can use)
lua
Config.AutoPilotAllowedJobs = { "police", "ambulance" }

Module Toggle

OptionDefaultDescription
Config.Modules.AutoPilottrueShow autopilot module