Installation
How to install VehicleRentals. Start this after ox_lib, your framework, your inventory, and Newb_Bridge.
Start this after ox_lib, your framework, your inventory, and Newb_Bridge. The bridge looks at what’s already running. If this script starts first, it can miss them.
Dependencies
Newb_Bridge, ox_lib, your framework, and your inventory. Vehicle keys and fuel come through the bridge (auto-detect).
Add items and images
The only item is rental_paperwork. Paste the def from Item setup. Copy [INSTALL]/images/rental_paperwork.png into:
| Inventory | Image folder |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | html/images/ |
| one_inventory | one_inventory/web/images/ |
The paperwork is a token; return is from the rental menu.
Configure
Edit configs/config.lua (Config.Agencies, Config.BlipCategory, Config.BlipCategoryLabel). Location fields, platePrefix, blip categories, stock price, and spawn pads are documented on the resource page. There is no deposit; price is charged from bank and refunded to bank on a valid return.
Add to server.cfg
Swap qbx_core / ox_inventory for whatever you actually run.
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure Newb_Bridge
ensure MrNewbVehicleRentals