[RELEASE] [Free] QBCore Extremely Advanced Car Rental System

Obviously, when a new version of this script comes out (with a few more updates and features - I will update here)
If you still want help regarding the peds at the moment, feel free to send me a message, I would be happy to help you with that.

is there any version without qb-target?

It is possible to do this even without QB-Target.
Send me a message, I’ll see how I can help you.

Hey, just config the ped on qb-target-> init.lua inside this:

Config.Peds = {

}

That’s fine, I’ve already helped him with that.
But thanks for the response and the attempt to help him.

1 Like

Sure no problem :wink:

Good job. It would be great if the rental paper could be used as an item, which would give you the veh key of accessing and driving the vehicle

1 Like

replace the second line of code with
local QBCore = exports[‘qb-core’]:GetCoreObject()

Hi i installed your script for rentals Into my server and i had the nil value error i changed the get object to TriggerEvent(“vehiclekeys:client:SetOwner”, QBCore.Functions.GetPlate(veh), veh) and that fixed it but still nothing is loading no ped and no 3rd eye menu even though it says the resource did load this time

Whenever I “rent” a vehicle, the car spawns locked and I don’t have keys to it

i have the same problem, u fixed it?

no sir

go to line 89 and change
TriggerEvent(“vehiclekeys:client:SetOwner”, GetVehicleNumberPlateText(veh), veh)
to
TriggerEvent(“vehiclekeys:client:SetOwner”, QBCore.Functions.GetPlate(veh), veh)

the way around i done Was qb-target/init.lua
line 125 add this chage Your Coords Config.Peds = {
{ ------------Rentals-----Integrity--------
model = ‘s_m_y_casino_01’,
coords = vector4(245.9, -677.74, 36.74, 72.75),
gender = ‘female’,
freeze = true,
invincible = true,
blockevents = true,
},
}

line 84 Add this
Config.TargetModels = {
[“nc-rental-guy”] = {
models = {
“s_m_y_casino_01”
},
options = {
{
type = “client”,
event = “nc-rental:vehiclelist”,
icon = “fa-solid fa-handshake-angle”,
label = “Rent vehicle”,
},
{
event = “nc-rental:returnvehicle”,
icon = “fas fa-circle”,
label = “Return Vehicle (Receive Back 50% of original price)”,
},
},
job = {“all”},
distance = 3.5,
},

}

Sorted :orange_heart:


New update! [V1.2]

  • Change from old QBCore to the new version of QBCore.
  • Added qb-menu support + refactor
  • New locations have been added and you can edit them in cfg.
  • Errors & bugs that people reported have been fixed.

After vehicle return cant remove rented paper beacuse qb-core has removed QBCore:Server:UseItem, QBCore:Server:RemoveItem, QBCore:Server:AddItem and replace for all this is QBCore.Functions.HasItem please fix i canot create report on github idk why

Hope there is going to be an update for this, it seems to not be working now.

You can do it yourself, you have the explanation in the comment above you (really easy).
And of course I will update the script soon.