MrNewbVehicleRentals [QB/QBX/ESX]

:red_car: MrNewb Vehicle Rentals

mrnewbvehiclerentals

A vehicle rental system for FiveM servers featuring cars, boats, and expandable support for any vehicle type. Built with Lua metatables for enhanced code organization and performance.

:star2: Features

  • Multi-Vehicle Support: Pre-configured for cars and boats, easily expandable for any vehicle type
  • Flexible Entity System: Supports both ped NPCs and interactive props/objects
  • Rental Paperwork: Includes in-game items with detailed rental information
  • Dynamic Spawn Points: Multiple configurable spawn locations for each rental station
  • Money Integration: Built-in payment system with configurable prices
  • Blip System: Customizable map blips for each rental location
  • Return System: Easy vehicle return functionality with distance validation
  • Localization Support: Multi-language support system

:clipboard: Requirements

  • FiveM Server: Build 6116 or higher
  • OneSync: Required for proper synchronization
  • community_bridge: Bridge dependency

:video_game: How to Use

For Players:

  1. Find a Rental Station: Look for rental blips on your map
  2. Interact: Walk up to the ped/prop and target to interact
  3. Select Vehicle: Choose from available vehicles in the rental menu
  4. Pay & Drive: Complete payment and your vehicle will spawn nearby
  5. Return: Return to any rental station to return your vehicle

Rental Paperwork Item:

Players receive rental paperwork items containing:

  • Vehicle model and details
  • License plate number
  • Renter information

Entity Types

  • “ped”: Spawns an interactive NPC
  • “object”: Spawns an interactive prop/object

:open_book: Documentation

For detailed installation and configuration instructions, please visit our documentation:

Official Documentation

:speech_balloon: Support

Need help? We’re here to assist you!

:shopping_cart: More Scripts

Check out our other scripts:

MrNewb Scripts Store

Preview

Youtube

Get it


Made with :heart: by MrNewb Scripts – Also just because im trying to get better with metatables.

9 Likes

Banger :heart:

1 Like

tyty :slight_smile:

Awesome as ever :heart:

1 Like

Good! :heart:

1 Like

gif

1 Like

tytyty :slight_smile:

niccce thanks

1 Like

Why can’t I perform a warm reboot?
When I returned the vehicle at another rental location, the vehicle and documents were not deleted; only my car keys were removed.

because its based around player loaded events you can relog instead though, documents will not be removed if the vehicle isnt in proximity normally. Also please be sure to verify start order for bridge is somewhere after inventory etc

Returning the car at the original rental location works fine, and the files and car keys are deleted normally. However, when returning the car at other locations, only the car keys are deleted; the files and the car itself are not. This is clearly a problem. I’m certain I have correctly installed the dependencies and configured the correctly, and I have started the script.

Never thought about returning to the other locations, I assume it would have prevented it but I havent looked at this code in weeks. Submit a pr to fix whatever issue you are having or go buy a paid one. If not wait for me to have time to reproduce what you are running into and resolve. (no eta)

So not sure if I missed anything. But from your Vehicle Rental and pawnshop script, every time I try to ensure my resource in game, I have to do a full restart.

Not sure if its related to the community bridge / script order. But when I try to ensure while configuring it, it will go blank, needing a restart to re-activate.

Any guidance?

This also is occurring, not sure if you have any guidance on this issue.
https://streamable.com/fm0san

The player loaded events are what triggers most of the client sided code. It is not designed to be actively restarted, some of my free scripts have a debug mode to help you with this to restart. Alternatively if you do /logout or /relog and load back in after restarting the script you should be able to make live changes. As far as any distance despawns make sure if you are editing the config you have the appropriate distance set, you may use the default values as a config option.

There aren’t any options for the distance in config

support is offered in the community support part of the discord. Post in there and someone will help you