GFX Development
  • gfx
    • About GFX
  • Product Docs
    • 📥GFX All in One Menu
      • 🛠️Setup
        • ⚙️Configuration
        • 📝Setting Permissions
      • 📒Informations
        • 💻For Developers
        • 👨‍💻Admin Commands
      • 🖇️Pages
        • 📄Profile
        • 📄Leaderboard
    • 🏎️GFX Racing
      • 🔨Installation
      • ⚙️Configuration
    • 📸GFX Deathcam
      • 🔨Installation
      • GFX Deathcam V1
        • ⚙️Configuration
      • GFX Deathcam V2
        • ⚙️Configuration
    • 📊GFX Leaderboard
      • 🔨Installation
      • ⚙️Configuration
    • ⚔️GFX Arena
      • 🔨Installation
      • ⚙️Configuration
    • 👨‍👨‍👦‍👦GFX Squad
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports
    • 🔬GFX Evidence
      • 🔨Installation
      • ⚙️Configuration
    • ❗GFX Notification
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports and Events
        • ⬆️Exports
        • ⬇️Events
    • 🚚GFX Delivery
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Tebexshop
      • 🔨Installation
      • ⚙️Configuration
      • ⚠️Tebex Settings
      • ⬆️Exports
    • 👁️‍🗨️GFX Interact
      • 🔨Installation
      • ⬆️Exports
    • 🫂GFX Crew
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🫂GFX Squad Remake
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX PVP Chat
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX HUD
      • 🔨Installation
      • ⚙️Configuration
    • 🔫GFX Attachment
      • 🔨Installation
      • ⚙️Configuration
    • 💀GFX Deathlog
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX PVP Shop
      • 🔨Installation
      • ⚙️Configuration
    • 🧱GFX Crafting
      • 🔨Installation
      • ⚙️Configuration
    • 🚍GFX Bus Job
      • 🔨Installation
      • ⚙️Configuration
    • 🐔GFX Chicken Farm
      • 🔨Installation
      • ⚙️Configuration
    • 🎁GFX Giveaway
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Pawnshop
      • 🔨Installation
      • ⚙️Configuration
    • 🪵GFX Lumberjack
      • 🔨Installation
      • ⚙️Configuration
    • 🚙GFX Secondhand Vehicle
      • 🔨Installation
      • ⚙️Configuration
    • 🤖GFX Autopilot
      • 🔨Installation
      • ⚙️Configuration
    • 🗳️GFX Vote
      • 🔨Installation
      • ⚙️Configuration
    • 🟢GFX Safezone
      • 🔨Installation
      • ⚙️Configuration
    • 🎅GFX Christmastruck
      • 🔨Installation
      • ⚙️Configuration
    • 🚔GFX Handcuff
      • 🔨Installation
      • ⚙️Configuration
    • 🚚GFX Trucker Job
      • 🔨Installation
      • ⚙️Configuration
    • 🌱GFX Weed
      • 🔨Installation
      • ⚙️Configuration
    • 🔉GFX DUI Radio
      • 🔨Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  1. Product Docs
  2. GFX Autopilot

Configuration

Check the instructions below.

The primary configuration file is config.lua. Below is a detailed explanation of all the settings.


General Settings

Setting
Description
Default Value

Config.UseKmh

Set the speed unit (kmh or mph).

"kmh"

Config.ComehereModSpeed

Speed for the /comehere command.

40.0

Config.ComehereModDriveStyle

Drive style for the /comehere command.

262701

Config.EmergencyLocation

Coordinates for emergency mode.

{x = 298.0, y = -584.0, z = 43.3}

Config.EmergencyDrivingStyle

Driving style for emergency mode.

262692


Autopilot Settings

Setting
Description
Default Value

Config.speedMultiplier

Speed multipliers for different driving modes: ecomode, sportmode, sportPlus, emergency.

Varies

Config.Vehicles

List of vehicle models with autopilot enabled.

neon, dilettante, etc.


Fixed Locations

Define fixed destinations that can be used for navigation.

Config.FixedLocations = {
    policeStation = {
        coords = {x = 402.81, y = -1021.98, z = 28.69},
        icon = "directions/fixedlocations",
    },
    hospital = {
        coords = {x = 298.0, y = -584.0, z = 43.3},
        icon = "directions/fixedlocations",
    },
    ...
}

Controls

Customize the key bindings for autopilot functions.

Key
Function
Default Value

Config.Keys["E"]

Submit park position.

38 (E)

Config.Keys["H"]

Cancel parking.

74 (H)

Config.Keys["K"]

Open cursor on autopilot screen.

311 (K)

Config.Keys["U"]

Cancel trip.

303 (U)


Notify Texts

Customizable notification messages for various events.

Event
Default Text

parkingPilot

"Parking Pilot Activated."

parkingPilot_stop

"Parking Pilot Stopped."

autoPilot_start

"AutoPilot %s Activated."

autoPilot_stop

"AutoPilot %s Stopped."

reach_destination

"We've reached our destination."

vehicle_came_to_you

"%s arrived to you"

not_in_vehicle

"You are not in vehicle"

cant_come

"We've lost contact with your vehicle"


Speed Limits

Define street-specific speed limits. These limits will dynamically adapt to the autopilot's driving style.

Example configuration:

Config.SpeedLimits = {
    ["East Joshua Road"] = "50",
    ["Marina Dr"] = "35",
    ["Great Ocean Hwy"] = "60",
    ...
}

Custom Notify Function

You can replace the default notification system with your custom logic:

function Notify(text, type, time)
    if QBCore ~= nil then
        QBCore.Functions.Notify(text, type or "primary", time or 5000)
    elseif ESX ~= nil then
        ESX.ShowNotification(text, type or "info", time or 5000)
    else
        -- Custom notification logic here
    end
end

PreviousInstallationNextGFX Vote

Last updated 5 months ago

🤖
⚙️