Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

PAID Modern Rental Script [QBX - QB]

shxrty

Silver Elite
Joined
Dec 1, 2022
Messages
25
Reaction score
161
Points
256
Location
Mars
Website
syncworks.tebex.io
## Resh Rent-A-Car

Production-grade multi-location rental system built for high-population QBCore/QBX servers. Server-authoritative, safe, and clean.


resh_rent_a_car.png



rentacar.png


## Key Features

- Multi-location system (NPC, spawn points, garage, labels per location)

- Location-specific UI title/tagline, blip name, and target labels

- Location-specific vehicle lists and categories (override per location)

- Hourly & daily rentals with configurable limits

- Server-side pricing + anti-spam protection

- Return flow on foot or in vehicle (configurable)

- Daily rental garage support (qbx/qb) with auto-store on disconnect/loss

- Rental termination rules (destroyed/water/abandoned)

- Rental papers item support (ox_inventory / qb-inventory)

- Multi-language UI & notifications (EN/TR/DE/FR/ES/AR)

- Themed UI (primary/secondary colors)

- Admin cleanup commands + ACE permission

## How It Works (Flow)

1. Player opens the rental menu at a location NPC.

2. Player picks vehicle, duration, and payment.

3. Server validates limits, price, and payment.

4. Vehicle is spawned at that location’s spawn points.

5. Player can return the vehicle at the same NPC (or nearby, depending on config).

6. Daily rentals can be stored in garage (optional).

## Dependencies

Required:

- `qb-core` or QBox (via built-in bridge)

- `oxmysql`

Optional:

- Vehicle keys: `qb-vehiclekeys` / `qs-vehiclekeys` / `ox_vehiclekeys`

- Inventory: `ox_inventory` / `qb-inventory`

- Target: `ox_target` / `qb-target`

## Installation

1. Drop the resource into your server resources folder:

`resources/[resh]/resh-rentacar`

2. Add to `server.cfg`:

`ensure resh-rentacar`

3. Configure `shared/config.lua`

4. Restart server

## Configuration (Detailed)

All settings are in:

`shared/config.lua`

### 1) Locale & Theme

- `Config.Locale` – choose UI language

- `Config.Theme.Primary` – UI primary color

- `Config.Theme.PrimaryDark` – UI dark accent

### 2) Target / Interaction

- `Config.Target.Enabled` – enable target system

- `Config.Target.System` – auto / ox / qb

- `Config.Target.LabelKeyRent` / `Config.Target.LabelKeyReturn`

### 3) Pricing & Limits

- `Config.Limits` – max days/hours

- `Config.Pricing.HourMultiplier` / `DayMultiplier`

- `Config.Pricing.Round` – ceil/floor/round

### 4) Payments

- `Config.Payments.AllowCash` / `AllowBank`

- `Config.Payments.Mode` – framework or custom event

### 5) Locations

Each location supports:

- `Id` / `Label`

- `Enabled` (true/false)

- `Npc` coords + heading (+ optional model)

- `Spawn` and `Spawns`

- `Garage` name

- `BlipLabelKey`, `TargetLabelKeyRent`, `TargetLabelKeyReturn`

- `UiTitleKey`, `UiTaglineKey`

- `BlipSprite`, `BlipColor`, `BlipScale`

- `Categories` + `Cars` overrides per location

### 6) Vehicles

- Global list: `Config.Cars` and `Config.Category`

- Location override: `Config.Locations[].Cars`

- Limit vehicles by location using `Locations = {'airport','main'}`

### 7) Return Rules

- `Config.Return.AllowOnFoot`

- `Config.Return.AllowInVehicle`

- Distances: `OnFootDistance`, `InVehicleDistance`

### 8) Termination / Expiry

- `Config.Termination.DetectDestroyed`

- `Config.Termination.DetectWater`

- `Config.Expiry.DisableOnExpire`

### 9) Garage Integration

- `Config.Garage.AllowDaily`

- `Config.Garage.AutoStoreOnVehicleLost`

- `Config.Garage.DefaultGarage`

### 10) Admin & Cleanup

- `clearrental` command

- `Config.ClearRental.AcePerm`

- Auto cleanup interval: `Config.ServerCleanup`

## Commands

- `clearrental` – clears a player's active rental (permission protected)

## Exports

Located in: `server/exports.lua`

- `GetActiveRentalByPlate`

- `IsPlateRented`

- `GetActiveRentalByCitizenId`

- `ForceClearRentals`

## Notes

- Fully server-authoritative: all prices and rentals are validated server-side.

- No insecure client-side checks.

- Built for 300+ population servers.

## AVAILABLE ON TEBEX (€24.78)
## DOCUMENTATION
## DISCORD


| Code is accessible | No but configurable
| Subscription-based | No
| Lines (approximately) | +2000
| Requirements & dependencies | QB/QBX/OX and ox_mysql
| Support | Yes
 
Last edited:
Top