Skip to main content

About

Code9 Carplay V2 — Next-Generation In-Vehicle Infotainment & Control System for FiveM

This section

About

Description

Code9 Carplay V2 is a next-generation in-vehicle infotainment and control system for FiveM. It delivers a polished tablet-style UI accessible from inside any vehicle, with a massive feature set spanning music, navigation, multiple camera systems, autonomous driving, parking automation, vehicle handling tools, remote control, and an optional in-world DUI screen prop that mounts directly onto the dashboard.

Every module, every app and every dock button is toggleable from Config. The script supports ESX, QBCore, QBox and standalone, with auto-detection for six inventory systems, five fuel systems, four vehicle key systems and three mileage systems.

Key Features

Vehicle Control Center

  • Single dock with lock/unlock, engine on/off, headlights, hazards, interior light, windows, trunk, individual doors and hood
  • Seat switcher popup, volume slider popup
  • Quick access to rear camera, autopark and dashcam
  • Each dock button can be globally hidden via config

Music Player

  • YouTube playback with 3D positional audio so other players hear your music nearby
  • 5-band parametric equalizer with built-in presets (Flat, Bass Boost, Rock, Pop, Vocal, Classical) — plus custom presets
  • Personal playlists, liked songs, recently played, search
  • Server-wide public playlist (configurable defaults)
  • Floating music HUD widget
  • Server-enforced max volume cap

Autopilot

  • GPS-guided autonomous driving with three drive modes — Eco, Sport, Sport+ (configurable speeds)
  • 17 driving behavior flags players can toggle: stop at lights, avoid peds, change lanes, drive in reverse, take shortcuts, follow road speed limit, avoid highways, and more
  • Live navigation HUD with remaining distance and turn information
  • Job & Discord role gated

Camera Systems

  • Rear Camera — automatic on reverse, custom per-vehicle offsets
  • Security Camera — 360° sentry mode with FOV control, security filter, scanlines, vignette, corner brackets, animated noise, timestamp; recording up to 5 minutes; uploads to Fivemanage or Discord webhook
  • DashCam — front and rear angles, plate and speedometer overlay, recording with upload, dedicated focus key for in-drive interaction

Auto Park System

Hologram-based parking automation. Click the ground to place a translucent ghost of your car, rotate it with mouse scroll, and your vehicle drives itself into the slot with precision-snap on arrival. Includes stuck-detection retry. Job and role gated.

Handling Tools

  • Drift Mode — toggle drift tyres (gated)
  • Speed Limiter — preset speeds (default 50/80/100/120/150/200 km/h)
  • Suspension Adjustment — ride-height presets (Very High / High / Standard / Low / Jack), custom slider, auto-lowering at speed thresholds

Remote Vehicle Control

Operate your vehicle from outside via a tablet animation prop:

  • Summon (vehicle drives to you)
  • Forward / backward nudge
  • Horn

Passenger Mode

Limit which apps passengers can use while the driver is active (defaults to map + music).

In-Vehicle Screen (DUI)

Optional physical screen prop mounted onto the dashboard. The same tablet UI is rendered live onto the prop's texture using FiveM's DUI system. Players outside or in the passenger seat can see a live mirror of what the driver is doing — and the driver can switch between music view, map view and a standby clock.

Apps Sidebar

Every app has individual job & Discord role permissions:

  • Map — Leaflet-powered with custom places (Home / Work / Pin / Star / Heart / Fuel / Flag / Shield), favorites, recents
  • Music — full music player
  • Weather — live in-game weather widget
  • Vehicle Health — gauges, fuel, mileage
  • Lights — quick light controls
  • Notes — rich text editor with task lists (TipTap)
  • Games — built-in mini-games
  • Settings — theme, accent color, volume, autopilot settings
  • Security Cam — full sentry-mode interface

First-Run Setup Wizard

Each player completes a one-time setup on first open: first & last name, avatar selection (85 presets + custom URL), theme (light / dark / custom accent color).

Permission System

Every gated feature accepts jobs and discordRoles arrays:

  • Both empty → everyone allowed
  • Only one set → that one must match
  • Both set → OR logic (job match OR role match)

Discord role checks are performed by a built-in bot fetcher — no external Discord script required. Just provide a bot token and guild ID in server/config.lua. Role results are cached.

Bundled Companion Resources

The Carplay V2 download ships with two helper resources you start alongside the main one:

ResourcePurpose
code9_sound3D positional audio engine + 5-band parametric equalizer (used by Music Player)
code9_carplayPropStreams the default in-vehicle screen prop (mdigou_boombox_car_prop_02)

Both must be ensured before code9_carplayv2 in your server.cfg. See Installation for the exact load order.

Multi-Framework & Multi-System Support

TypeSupported
FrameworksESX, QBCore, QBox, Standalone
Inventoryox_inventory, qs-inventory, codem-inventory, ESX, QB, QBox
FuelLegacyFuel, ox_fuel, cdn-fuel, ps-fuel, lj-fuel
Vehicle Keysdefault, cd_garage, qb-vehiclekeys, qs-vehiclekeys
Mileageinternal, jg-vehiclemileage, cd_garage
NotificationsGTA native, ox_lib, ESX, QB
LanguagesEN, TR, ES, DE, FR, NL, PT (extendable)

Performance

  • 0.00–0.02 ms idle resource usage
  • Optimized React build with manual chunk splitting (map, editor, dnd, youtube, motion all isolated)
  • DUI in-vehicle screen reuses the same React build — no double rendering
  • Auto-installing SQL schema (no manual import)
  • Full FiveM CEF compatibility (no backdrop-filter usage)