๐พ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)
Download the resource from Tebex
Extract to
resources/x_carrental
Add to server.cfg:
ensure X_CarRental
Run the provided SQL file (
insertme.sql
) or let auto-installer create tablesRestart server โ you're ready to rent!
โ๏ธ Configuration
Main Settings (config.lua
)
config.lua
)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
approach marker
Prompt shows automatically โ press E to open rental UI.
๐ Admin Commands (require god
, admin
, mod
groups)
god
, admin
, mod
groups)/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
Add a New Location Copy any entry in
Config.CarRental.Locations
, change coords & vehicles.Change Prices Edit
price
field inside each vehicle table.Toggle Deposit Set
Config.CarRental.UseDeposit = false
to disable deposits.
6๏ธโฃ Troubleshooting
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