Transform your FiveM server with intelligent AI taxi drivers that provide realistic transportation services!
๐ Overview
RD-Taxi is a comprehensive NPC taxi system featuring AI-driven drivers that operate autonomously across your city. Players can call taxis from designated stops, set destinations, and enjoy immersive transportation with dynamic driver interactions, voice responses, and realistic payment systems.
โจ Key Features
๐ค Intelligent AI Taxi Drivers
- Multiple AI Drivers: Configure unique taxi drivers with custom names, appearances, and vehicles
- Autonomous Behavior: Taxis drive realistically to pickup locations and destinations
- Smart Routing: AI respects (or ignores) traffic lights based on your configuration
- Status Management: Real-time tracking of taxi availability (Available, En Route, Delivering, Returning)
๐บ๏ธ Taxi Stop System
- Multiple Locations: Set up taxi stops throughout your city
- Zone Detection: Automatic detection when players enter taxi stop areas
- Visual Blips: Customizable map markers for all taxi stops
- Assigned Routes: Each driver can be assigned to specific stops
๐ฌ Immersive Driver Interactions
- Voice Responses: Custom audio files play when taxis arrive (optional per driver)
- 3D Positional Audio: Voice volume adjusts based on distance from taxi
- Driver Profiles: Each driver has unique characteristics and appearance
- Visual UI: Beautiful interface showing driver photos, taxi details, and status
๐ฐ Flexible Payment System
- Framework Support: Works with QBCore, ESX, or standalone
- Payment Options: Charge on destination confirmation or arrival
- Dual Currency: Automatically tries cash first, then bank
- Configurable Fares: Set your own taxi pricing
๐ฑ Modern User Interface
- Sleek Design: Professional taxi service UI with gradient effects
- Real-time Updates: Live status updates for all taxis
- Driver Selection: Browse available drivers with detailed information
- Status Indicators: Color-coded badges showing taxi availability
- Demand System: Reserve taxis that are returning to their stops
โ๏ธ Smart Management Features
- Timeout System: Automatic kicks for inactive passengers
- Cooldown Periods: Prevent spam after being kicked (configurable)
- Reserved Bookings: Players can demand/reserve returning taxis
- Waypoint Confirmation: Players confirm destinations before departure
- Auto-Return: Taxis automatically return to spawn after deliveries
๐ฏ How It Works
Step 1: Approach a Taxi Stop
Walk up to any configured taxi stop location. A help text appears: "Press E to view available taxis"
Step 2: Browse Available Drivers
Open the taxi UI to see all available drivers at that stop:
- View driver names, photos, and taxi details
- Check real-time status (Available, En Route, Delivering, etc.)
- See which taxis service your current stop
Step 3: Call Your Taxi
Select a driver and click "CALL TAXI":
- Available Taxis: Immediately dispatched to your location
- Returning Taxis: Click "DEMAND TAXI" to reserve when they arrive
- Just Finished: Click "NOTIFY WAITING" to get their attention
Step 4: Wait for Arrival
The taxi drives to your location autonomously:
- Track taxi position with map blips (optional)
- Hear driver voice when they arrive (if configured)
- Enter the vehicle within the time limit
Step 5: Set Your Destination
Once inside:
- Set a waypoint on your map
- Confirm destination in the dialog box
- Payment processed (if configured for "on_confirm")
Step 6: Enjoy the Ride
The AI driver takes you to your destination:
- Realistic driving behavior
- Optional traffic light compliance
- Map blip shows taxi position during trip
Step 7: Arrival & Exit
When you arrive:
- Payment processed (if configured for "on_arrival")
- Exit the vehicle within the time limit
- Taxi automatically returns to its spawn point
๐ ๏ธ Configuration Highlights
Framework Integration
Config.Framework = "qbcore" -- Options: "qbcore", "esx", "standalone"
Config.PaymentEnabled = true
Config.TaxiFare = 250
Config.PaymentTiming = "on_confirm" -- or "on_arrival"
Taxi Stops Setup
Config.TaxiStops = {
{
name = "taxi_stop_1",
label = "Downtown Taxi Stop",
coords = vector3(257.14, -1118.76, 29.33),
size = vector2(2, 5),
heading = 0,
spawnCoords = vector4(257.34, -1123.95, 29.21, 82.90)
}
}
AI Driver Configuration
Config.TaxiDrivers = {
{
id = 1,
name = "Michael Rodriguez",
pedModel = "a_m_m_tourist_01",
driverImage = "driver1.png",
vehicleModel = "taxi",
vehicleImage = "taxi.png",
voiceFile = "driver1.mp3", -- Set to "none" to disable
color = {r = 255, g = 215, b = 0},
assignedStop = "taxi_stop_1"
}
}
Behavior Settings
Config.RespectTrafficLights = false -- AI driving behavior
Config.WaypointTimeout = 180 -- 3 minutes to set destination
Config.ExitTimeout = 240 -- 4 minutes to exit after arrival
Config.ReservedTimeout = 150 -- 2.5 minutes for reserved pickups
Config.CooldownAfterKick = 600 -- 10 minute cooldown after kick
๐ฆ What's Included
Full Source Code
- โ
main.lua- Core server-side logic and taxi management - โ
client.lua- Client-side interactions and UI control - โ
config.lua- Comprehensive configuration file - โ
zones.lua- Taxi stop zone detection system - โ
index.html- Modern taxi service interface - โ
style.css- Professional styling and animations - โ
script.js- UI functionality and 3D audio system
Resources Needed
- Optional: PolyZone (for precise zone detection)
- Required: screenshot-basic (if using camera features in future updates)
๐จ Customization Options
- Driver Personas: Create unique drivers with custom names, models, and images
- Voice Acting: Add custom audio files for driver arrival announcements
- Taxi Varieties: Use different vehicle models per driver
- Color Coding: Assign unique colors to each taxi for easy identification
- Stop Placement: Position taxi stops anywhere on your map
- Blip Customization: Configure map marker sprites, colors, and scales
- Timing Adjustments: Fine-tune all timeout and cooldown periods
- Payment Systems: Choose when and how much to charge passengers
๐ Installation
-
Extract the resource to your server's
resourcesfolder -
Configure your framework in
config.lua - Customize taxi stops, drivers, and pricing
-
Add driver images to
/html/images/folder -
Add voice files to
/html/sounds/folder (optional) -
Start the resource in your
server.cfg
Total Setup Time: Under 10 minutes!
๐ก Advanced Features
Demand System
Players can reserve taxis that are currently returning to their stops, ensuring they get priority pickup when the taxi arrives.
Status Tracking
Real-time monitoring of all taxi states:
- ๐ข Available: Ready for immediate dispatch
- ๐ก En Route: Driving to pick up passenger
- ๐ Delivering: Currently transporting passenger
- ๐ต Returning: Driving back to spawn point
- ๐ข Just Finished: Recently completed delivery
3D Positional Audio
Voice announcements adjust volume based on player distance from the taxi, creating an immersive experience.
Automatic Cleanup
Intelligent timeout system handles:
- Players who don't set waypoints
- Players who don't enter called taxis
- Players who don't exit at destinations
- Automatic cooldowns to prevent abuse
๐ฎ Player Experience
"The most realistic taxi system I've used in FiveM!"
- Immersive AI drivers with personality
- Smooth, realistic driving behavior
- Professional UI design
- Optional voice interactions
- Fair pricing and payment options
๐ Notes
- Fully editable source code (no escrow, no encryption)
- Compatible with most FiveM frameworks
- Optimized performance (0.00-0.01ms idle)
- Regular updates and improvements planned
- Active developer support
Developed by RoxDev | Version 1.0.0 | ยฉ 2025
Transform your server's transportation with RD-Taxi - Where AI meets immersive gameplay! ๐โจ