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.
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
Requirements
FiveM Server: Build 6116 or higher
OneSync: Required for proper synchronization
community_bridge: Bridge dependency
How to Use
For Players:
Find a Rental Station: Look for rental blips on your map
Interact: Walk up to the ped/prop and target to interact
Select Vehicle: Choose from available vehicles in the rental menu
Pay & Drive: Complete payment and your vehicle will spawn nearby
Return: Return to any rental station to return your vehicle
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.
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.