Scripts/Rentals
FreeQboxQBCoreESX

Rentals

Vehicle rental desks. Players pay a deposit and get it back based on the condition the vehicle is in when they return it. Desks, parking bays, vehicles and refund rules are all set up in game.

Rent a car, then return it to see the refund for the damage it took.

The demo is made for a computer screen. On a phone it shows small.

What's in it

Rental desk

  • Vehicles grouped by type
  • Speed, acceleration, braking and grip
  • Deposit paid from bank or cash
  • Keys and a full tank on pickup

Fair refunds

  • Full refund above a condition you set
  • Nothing back below another
  • A sliding refund in between
  • Condition read on the server

Returns

  • Return at any rental desk
  • Report it lost to close the rental
  • Collected when a player logs off
  • Earned refunds paid on next login

Admin panel

  • Add desks and parking bays where you stand
  • Pick which vehicles each desk offers
  • Add your own vehicles and prices
  • Accent color and refund rules

Licenses

  • Mark vehicles as needing a license
  • Car, motorcycle or commercial
  • Checked with vexxd_dmv when it runs
  • Ignored when it doesn't

For other scripts

  • HasRental and GetRental exports
  • Rented cars carry a state bag
  • Optional Discord log
  • Works on OneSync

Picks up what you run

Worked out once when the resource starts. Anything can be forced in the config.

Vehicle keys

qbx_vehiclekeys, qb-vehiclekeys, MrNewbVehicleKeys, wasabi_carlock, Renewed-Vehiclekeys, qs-vehiclekeys

Fuel

ox_fuel, LegacyFuel, ps-fuel, lj-fuel, cdn-fuel, okokGasStation

Target

ox_target, qb-target, or an [E] prompt when neither is running

Prompts and notifications

jg-textui, okokTextUI or ox_lib prompts. okokNotify, your framework's own, or ox_lib

Install

  1. Drop vexxd_rentals into your resources folder.
  2. Ensure it after your framework, ox_lib and oxmysql.
  3. Restart. The database tables are created for you.
  4. Run /rentaladmin to add a desk and its bays.
ensure vexxd_rentals
add_ace group.admin vexxd_rentals.admin allow

Works with

FrameworkQbox, QBCore, ESX
Requiredox_lib, oxmysql, OneSync
Targetox_target, qb-target or [E] prompts
NotificationsokokNotify, framework, ox_lib
LicenseFree · CC BY-NC-SA 4.0