๐Ÿ’พX Car Rental

Your Full Weather Control UI

๐Ÿ“‹ Overview

X_CarRental is a comprehensive car rental system that seamlessly integrates with your FiveM server. It features automatic framework detection, supports multiple fuel and key systems, and includes a modern glass UI for an immersive player experience.


๐Ÿš€ Installation Guide

Quick Setup (5 minutes)

  1. Download the resource from Tebex

  2. Extract to resources/x_carrental

  3. Add to server.cfg: ensure X_CarRental

  4. Run the provided SQL file (insertme.sql) or let auto-installer create tables

  5. Restart server โ€“ you're ready to rent!


โš™๏ธ Configuration

Main Settings (config.lua)

Setting
Default
Description

Config.Framework.Type

'auto'

Auto-detects ESX/QB-Core/QBOX

Config.CarRental.UseDeposit

true

Enable refundable deposits

Config.CarRental.Locations

array

Unlimited rental locations

Config.CarRental.Debug

false

Enable console logs

Sample Location Configuration

{
    name = "Los Santos International",
    coords = vector3(-1018.29, -2698.87, 12.79),
    blipSprite = 664,
    blipColor = 3,
    vehicles = {
        {model = "blista", label = "Blista", price = 15},
        {model = "sultan", label = "Sultan", price = 30}
    },
    spawnPoints = {
        vector4(-979.83, -2689.80, 13.09, 150.36)
    },
    returnPoints = {
        {coords = vector3(-953.23, -2705.80, 14.08), radius = 5.0}
    }
}


4๏ธโƒฃ Commands & Exports

๐Ÿง‘โ€๐Ÿ’ผ Player Commands

Command
Description

approach marker

Prompt shows automatically โ€“ press E to open rental UI.

๐Ÿ‘‘ Admin Commands (require god, admin, mod groups)

Command
Usage
Example

/playtimecheck [id]

Check a player's rental time

/playtimecheck 1

/rentaladd [id] [min]

Add rental minutes

/rentaladd 1 30

/rentalremove [id] [min]

Remove minutes

/rentalremove 1 15

/rentalreset [id]

Reset rental

/rentalreset 1

๐Ÿ“ค Server Exports

-- Give a player a rental car
local plate = exports['X_CarRental']:RentVehicle(source, 'sultan', 60) -- 60 minutes

-- Force return
exports['X_CarRental']:ReturnVehicle(source, plate)

5๏ธโƒฃ Admin Guide

  1. Add a New Location Copy any entry in Config.CarRental.Locations, change coords & vehicles.

  2. Change Prices Edit price field inside each vehicle table.

  3. Toggle Deposit Set Config.CarRental.UseDeposit = false to disable deposits.


6๏ธโƒฃ Troubleshooting

Issue
Fix

Framework not detected

Enable Config.Debug = true and check console.

Keys not given

Ensure the key system resource is running.

Vehicle despawns instantly

Check Config.RentalExpireAction and parking system.

UI not showing

Verify Config.TextUI matches your installed system.



Need live help? ๐Ÿ“ซ Discord: https://discord.gg/2vgzWxvpsm

Last updated