FiveM Bike Rental Script
Bicycle rental with per-minute or flat pricing, deposits, refunds and automatic cleanup.
$12.99 · one-time purchase · QBCore, Qbox, ESX and standalone
Requires: ox_lib, oxmysql, rd_bridge. Protected with Cfx.re Asset Escrow; config, locales and SQL stay editable.
Configurable bike rental stations: per-minute or flat fare, optional deposit, refunds, job discounts, limits and cleanup of abandoned bikes. Server-side billing. QBCore · Qbox · ESX · standalone via rd_bridge.
Needs the free rd_bridge resource, which adapts it to your framework and inventory.
🚲 Pedal power, fully billed
Pick a bike, ride, return it, get your deposit back. rd_bikerental gives your city bicycle rental stations that behave like a small business. The server creates the bike, charges and decides everything; the client only asks.
Why you'll want it
- 💶 Two billing modes: per minute (first minute upfront, then one more each minute) or a flat fee for a set time, plus an optional deposit globally or per bike.
- 🛡️ Server-decided: station, distance, limits and funds are validated before the bike spawns. Every rental ends with a reason: returned, expired, abandoned, no_funds, lost or admin.
- 🚴 Ready to edit: a catalog of 7 vanilla bikes and 2 sample stations (Legion Square and Vespucci Beach; the coordinates are samples, adjust them to your map).
- 🏷️ Control it: rentals per player, maximum minutes, cooldown, job discounts (police and ambulance 50% by default) and automatic cleanup of abandoned or lost bikes.
- ⏱️ Players stay informed: an info card at each station, a warning before time runs out (120 s by default) and /bikestatus for time left, amount paid and deposit.
- 🔌 No items needed. Needs ox_lib, oxmysql and rd_bridge; ox_target or qb-target are optional. Exports and events let you hook in your own logic.
First release (v1.0): code-reviewed and lint-checked. Report any issue and we fix it.
What you get
- The rd_bikerental resource (v1.0.0) for QBCore, Qbox, ESX or standalone through rd_bridge.
- Two sample stations (Legion Square and Vespucci Beach; the coordinates are samples, adjust them to your map) and a catalog of seven vanilla bikes.
- Automatic SQL install (two tables) or a manual sql/install.sql.
- English and Spanish texts.
Features
Pricing and money
- Two billing modes: per_minute (first minute upfront, one more each minute) or flat (one fee for a set number of minutes).
- Optional deposit, global or per bike. Refund percentages on return, on expiry or abandonment, and after a server restart.
- If a flat rental is returned quickly, the fee can be refunded within a window you set.
- Charge account (bank or cash) with fallback to the other one.
- Percentage discounts per job (police and ambulance 50% by default; 100 makes it free). Discounts apply to the price, not the deposit.
- If a per-minute player runs out of money, the deposit is used; if that is not enough, the bike is removed. No debts.
Control
- Limits: active rentals per player, maximum minutes, cooldown after a rental, optional return only at the origin station.
- Cleanup: abandoned bikes, lost or destroyed bikes, and rentals of players who disconnect (kept for a grace period; no per-minute charges while offline).
- Rentals open at a server restart are settled; refunds for offline players are stored and paid when the character loads.
Experience
- Interaction by target (ox_target / qb-target, with a proximity prompt fallback) or ground marker plus key (E by default).
- A floating info card at each station shows bikes, fare, deposit and key; while renting it shows elapsed time, remaining time and cost.
- Optional row of decorative display bikes per station, with their own cards.
- Optional: floating holograms with rd_holo, sold separately.
- /bikestatus shows remaining time, amount paid and deposit; bikes are given keys through rd_bridge.
How it works
At a station the player chooses a bike. The server validates station, distance, limits and funds, charges fare and deposit, creates the bike with vanilla models and puts the player on it. A warning appears before time runs out. Returning inside the orange zone ends the rental and refunds the deposit according to your settings. Every rental ends with a reason: returned, expired, abandoned, no_funds, lost or admin.
Requirements
- ox_lib, oxmysql and rd_bridge (rd_bridge must start first; it needs the bridge version with Info support).
- Optional: ox_target or qb-target.
- Optional: rd_holo for floating holograms, sold separately.
- No items.
Install in 5 steps
- 1. Copy rd_bikerental into resources/ and make sure rd_bridge, ox_lib and oxmysql start first.
- 2. The database installs itself (Config.AutoInstallSQL = true); or import sql/install.sql.
- 3. Add ensure rd_bikerental to server.cfg after rd_bridge.
- 4. Edit config.lua: stations, catalog, prices and limits.
- 5. Restart and read the console: it reports any configuration problem.
Compatibility
QBCore, Qbox, ESX and standalone through rd_bridge (adapters reviewed against each resource's official documentation). Targets: ox_target and qb-target. Protected with Cfx.re Asset Escrow; config.lua, locales, SQL and the docs stay editable.
FAQ
- Can I use other bikes? Yes, add base-game models to Config.Catalog.
- Where are the texts? In locales/es.json and locales/en.json.
- What happens after a restart? Bikes are gone, so open rentals are closed and the deposit refunded according to Config.Refund.onRestartPercent.
- Does the cooldown survive a restart? No, it lives in memory.
- Do I need a target resource? No. Without one, rd_bridge shows a proximity prompt, or use marker mode.
- Is it tested? This is the first release (v1.0): code-reviewed and lint-checked. Report any issue and we fix it.