Player Owned Vehicle Rentals

Player Owned QB Vehicle Rentals

This script allows players to rent from a list of vehicles defined in the config.
It’s a complete rewrite to the qb-rentals with added functionality.

You can run this as a player owned business that deposits money into a management account (qb-management) or a renewed banking account. Or as a standalone rental store.

Once a vehicle has been hired it is bound to that player, the player will be able to access the vehicle from garages that you can define in the config.

Link

Preview

How do I rent to a player?

When you want to rent to a player, the player and you must be inside the rental boxzone (set in config)
You can then third eye the player and select Hire Vehicle

How do I return a vehicle?

A player can return the vehicle by spawning it from the garage and select return vehicle from the renting menu.

The player will be charged extra if they don’t manually return the vehicle (last vehicle they were in was the rental)

How does it charge the player?

Each time the player joins the city and loads that character it will do a lookup in the database to see when the last time the player paid, if a payment is due it will automatically take the amount owed from their account.
The charge will always be 1 day’s rent, even if the player does not fly in for a week.

How does a player access their rental?

In the config you can set up rental garages, the script looks in the database for a list of their rental vehicles and returns them to the player. Clicking on the item will spawn the vehicle in the spawn location and warp them into the vehicle.

How do I prove the vehicle is mine?

Each time a rental agreement is taken out a player will be given a rental paper, this can be used to prove their agreement and that they have authority to drive that vehicle.

Dependencies:
QBCore

Qb-input

Oxymysql

Polyzone

Special Mentions

The NUI was inspired by OKOKContracts

Code is accessible No
Subscription-based No
Lines (approximately) 700
Requirements QBCore, qb-input, qb-target, oxymysql, Polyzone
Support Yes

Sorry but it’s okok’s script
@okokokok

Hello, it seems that you are using content that is already paid and I guess without authorization from the developer. Before publishing a script with such code I would check with the developer if they allow you to use their interface with modifications.

On the other hand, apart from the menu of a basic VehicleShop which is different, the okokContact is still there.

1 Like

which differences ? 4 @okokokok

This is literally okokContract. You just took it and added a rental functionality to it. C’mon bro.

@TheIndra Delete this post pls

The UI is inspired by okok because it was a good looking UI.
The UI was written in Vue so completely different to okokContracts. I believe theirs is JQuery

okokContracts allows players to sell their own vehicles, this script doesn’t do that at all, it doesn’t even touch the player vehicles table, it has its own.

The contract page is only sent to the hire not sent between clients like okokContracts.

so no, the UI look is the only thing similar to his work, even that work uses a free library vara to do the text to SVG.

Also a guy that still makes vmenu scripts wouldn’t know the different between Vue & JQuery, so I can see how you’re confused.

Unlisting due to multiple reports, and we are unable to compare due to the asset not being on your keymaster account. Please message moderation with the keymaster asset id.

@TheIndra
Asset id is 136593

@TheIndra
Any update on this? I don’t know who to message to resolve it

Contains code from other resources