RoviDev Studio

Vehicles
Core
Tools
Jobs
Audio
Economy
Bundles
$12.99

rd_bikerental — Bike Rental Script

🚲 Rent a bike. Ride. Get your deposit back.

Bicycle rental stations that run like a small business. Players pick a bike, pay, ride and return it at any station. The server spawns the bike, takes the money and settles every rental; the client only asks.

Why you'll want it

  • 💶 Bill it your way. Per minute or flat fee, with deposits and refunds you control.
  • 🛡️ Money stays honest. Every check and every charge happens on the server, and no one ends up in debt.
  • 🧹 Cleans up after itself. Abandoned, lost and disconnected rentals close on their own.
  • 🏷️ Perks for jobs. Give police and EMS a discount, or let them ride for free.
  • 🔌 Easy to hook into. Exports and events tell your scripts when a rental starts and why it ended.

First release (v1.0). Report any issue and we fix it.

What you get

  • The rd_bikerental resource (v1.0) for QBCore, Qbox, ESX or standalone through rd_bridge.
  • Two sample stations (Legion Square and Vespucci Beach; sample coordinates, 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 locale files.

Features

Pricing and money

  • Two billing modes: per_minute (first minute upfront, then one per minute) or flat (one fee for 60 minutes by default).
  • Deposit of 100 by default, or set per bike. Refund percentages on return (100%), on expiry or abandonment (0%) and after a server restart (100%).
  • Flat fee refunded if the bike comes back within 120 s (configurable).
  • Charged from bank by default, falling back to cash.
  • Job discounts on the fare, not the deposit: police and ambulance pay 50% by default; 100 makes it free.
  • If a per-minute rider runs out of money, the deposit covers it; when that runs out, the bike is removed.

Limits and cleanup

  • Defaults: 1 active rental per player, 120 minutes max, 30 s cooldown. Optionally allow returns only at the origin station.
  • A warning 2 minutes before time runs out.
  • Bikes left more than 500 m away for 120 s, or lost or destroyed, close the rental.
  • Disconnected players keep the rental for 300 s, with no per-minute charges while offline.
  • Rentals still open at a restart are settled; refunds owed to offline players are stored and paid when the character loads.

Experience

  • Interaction through ox_target / qb-target (with a proximity prompt fallback) or a ground marker plus key (E by default).
  • Floating info card at each station with bikes, fare, deposit and key; while riding it shows elapsed time, time left and cost.
  • Optional row of decorative display bikes per station, each with its own card.
  • Keys handed out through rd_bridge.
  • Optional: floating holograms with rd_holo, sold separately.

How it works

The player picks a bike at a station. The server checks the station, distance, limits and funds, charges fare and deposit, spawns the bike and seats the player on it. Riding back into the orange return zone and pressing E ends the rental and refunds the deposit according to your settings.

Configuration

  • Pricing mode and flat minutes, charge account and fallback, job discounts, currency symbol.
  • Default deposit and per-bike overrides; refund percentages.
  • Limits, cleanup timings, info card, markers, blips and key.
  • Catalog: model, label, perMinute, flat, deposit. Stations: id, label, coords, spawn points, return radius, allowed models, optional display row.
  • Optional Discord webhook set in server.cfg.

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.

Exports & events

  • Server exports: GetActiveRental(src) and ForceReturn(src).
  • Server events: rd_bikerental:rentalStarted (owner, id, model) and rd_bikerental:rentalEnded (owner, id, reason). Reasons: returned, expired, abandoned, no_funds, lost, admin.
  • Commands: /bikestatus for players (time left, amount paid, deposit); /bikeclear [id] for admins closes every rental, or one player's, with a full deposit refund.

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? The bikes are gone, so open rentals close and the deposit is 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; you can also use marker mode.

🇪🇸 En español

Alquila una bici. Pedalea. Recupera la fianza.

Estaciones de alquiler de bicicletas que funcionan como un pequeño negocio. El jugador elige bici, paga, pedalea y la devuelve en cualquier estación. El servidor crea la bici, cobra y cierra cada alquiler; el cliente solo pide.

Por qué lo querrás

  • 💶 Cobra a tu manera. Por minuto o tarifa fija, con fianzas y reembolsos que tú controlas.
  • 🛡️ Cuentas limpias. Todas las comprobaciones y cobros se hacen en el servidor, y nadie acaba endeudado.
  • 🧹 Se limpia solo. Los alquileres abandonados, perdidos o de jugadores desconectados se cierran solos.
  • 🏷️ Ventajas por trabajo. Descuento para policía y EMS, o que monten gratis.
  • 🔌 Fácil de integrar. Exports y eventos avisan a tus scripts de cuándo empieza un alquiler y por qué termina.

Primera versión (v1.0). Si encuentras cualquier fallo, avísanos y lo arreglamos.

Qué incluye

  • El recurso rd_bikerental (v1.0) para QBCore, Qbox, ESX o standalone con rd_bridge.
  • Dos estaciones de ejemplo (Legion Square y Vespucci Beach; coordenadas de ejemplo, ajústalas a tu mapa) y un catálogo de siete bicis vanilla.
  • Instalación SQL automática (dos tablas) o manual con sql/install.sql.
  • Locales en español e inglés.

Funciones

  • Precios: dos modos, per_minute (primer minuto al alquilar y uno más cada minuto) o flat (una tarifa para 60 minutos por defecto). Fianza de 100 por defecto o por bici. Reembolso de la fianza al devolver (100 %), al caducar o abandonar (0 %) y tras un reinicio (100 %). La tarifa fija se devuelve si la bici vuelve antes de 120 s.
  • Dinero: se cobra del banco por defecto, con el efectivo de respaldo. Descuentos por trabajo sobre la tarifa, no sobre la fianza: policía y ambulancia pagan el 50 % por defecto; con 100 es gratis. Si al que paga por minuto se le acaba el dinero, tira de la fianza; cuando se agota, la bici se retira.
  • Límites y limpieza: por defecto 1 alquiler activo por jugador, 120 minutos como máximo y 30 s de cooldown; opcionalmente, devolución solo en la estación de origen. Aviso 2 minutos antes del final. Una bici a más de 500 m durante 120 s, perdida o destruida cierra el alquiler. Si el jugador se desconecta, conserva el alquiler 300 s sin cobros por minuto. Los alquileres abiertos al reiniciar se liquidan y los reembolsos de jugadores desconectados se pagan al cargar el personaje.
  • Experiencia: interacción con ox_target / qb-target (con prompt por proximidad de respaldo) o marcador en el suelo y tecla (E por defecto). Tarjeta flotante en cada estación con bicis, tarifa, fianza y tecla; durante el alquiler muestra tiempo transcurrido, tiempo restante y coste. Fila opcional de bicis de exposición con su propia tarjeta. Llaves mediante rd_bridge. Opcional: hologramas flotantes con rd_holo, a la venta por separado.

Cómo funciona

El jugador elige una bici en la estación. El servidor comprueba estación, distancia, límites y saldo, cobra tarifa y fianza, crea la bici y sube al jugador. Al volver a la zona naranja de devolución y pulsar E, el alquiler se cierra y la fianza se reembolsa según tu configuración.

Configuración

  • Modo de precios y minutos de la tarifa fija, cuenta de cobro y respaldo, descuentos por trabajo, símbolo de moneda.
  • Fianza por defecto y por bici; porcentajes de reembolso.
  • Límites, tiempos de limpieza, tarjeta informativa, marcadores, blips y tecla.
  • Catálogo: model, label, perMinute, flat, deposit. Estaciones: id, label, coords, puntos de aparición, radio de devolución, modelos permitidos y fila de exposición opcional.
  • Webhook de Discord opcional en server.cfg.

Requisitos

  • ox_lib, oxmysql y rd_bridge (rd_bridge debe arrancar antes; hace falta la versión del puente con soporte de Info).
  • Opcional: ox_target o qb-target.
  • Opcional: rd_holo para hologramas flotantes, a la venta por separado.
  • No usa ítems.

Instalación en 5 pasos

  • 1. Copia rd_bikerental a resources/ y asegúrate de que rd_bridge, ox_lib y oxmysql arrancan antes.
  • 2. La base de datos se instala sola (Config.AutoInstallSQL = true), o importa sql/install.sql.
  • 3. Añade ensure rd_bikerental a server.cfg después de rd_bridge.
  • 4. Edita config.lua: estaciones, catálogo, precios y límites.
  • 5. Reinicia y revisa la consola: avisa de cualquier problema de configuración.

Compatibilidad

QBCore, Qbox, ESX y standalone mediante rd_bridge (adaptadores revisados contra la documentación oficial de cada recurso). Targets: ox_target y qb-target. Protegido con Cfx.re Asset Escrow; config.lua, locales, SQL y la documentación siguen siendo editables.

Exports y eventos

  • Exports de servidor: GetActiveRental(src) y ForceReturn(src).
  • Eventos de servidor: rd_bikerental:rentalStarted (owner, id, model) y rd_bikerental:rentalEnded (owner, id, reason). Motivos: returned, expired, abandoned, no_funds, lost, admin.
  • Comandos: /bikestatus para jugadores (tiempo restante, importe pagado y fianza); /bikeclear [id] para admins cierra todos los alquileres, o los de un jugador, con reembolso completo de la fianza.

Preguntas frecuentes

  • ¿Puedo usar otras bicis? Sí. Añade modelos del juego base a Config.Catalog.
  • ¿Dónde están los textos? En locales/es.json y locales/en.json.
  • ¿Qué pasa tras un reinicio? Las bicis desaparecen, así que los alquileres abiertos se cierran y la fianza se reembolsa según Config.Refund.onRestartPercent.
  • ¿El cooldown sobrevive a un reinicio? No. Se guarda en memoria.
  • ¿Necesito un recurso de target? No. Sin él, rd_bridge muestra un prompt por proximidad; también puedes usar el modo marcador.
$12.99

RoviDev Studio

Apple PayGoogle PayMastercardVisaAmerican Express
© 2026 RoviDev Studio
The checkout process is owned & operated by Tebex Limited, who handle product fulfilment, billing support and refunds.
Impressum Terms & Conditions Privacy Policy