A Advanced Car Rental for QBCore (Nopixel Inspired) Originally Made by NaorNC. and enhanced by Teezy Core.
- Download the script from the source.
- Place the script in the
resources
folder of your FiveM server. - Add the following line to your server.cfg file:
cfx-tcd-carRental
- Start your FiveM server and enjoy!
qb-target
qb-core
qb-menu
qb-input
- optional: menu used in the video jixel-menu
- optional: nh-context
Put this on qb-core > shared > items.lua
["rentalpapers"] = {["name"] = "rentalpapers", ["label"] = "Rental Papers", ["weight"] = 50, ["type"] = "item", ["image"] = "rentalpapers.png", ["unique"] = true, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "This car was taken out through car rental."},
Download the Item Image
here:
rentalpapers.png
Put it inside your qb-inventory > html > images
same if you are using lj-inventory
Inside your qb-inventory > js > app.js
NOTE: Go between Line 500-600 and add the following code
} else if (itemData.name == "rentalpapers") {
$(".item-info-title").html('<p>' + itemData.label + '</p>')
$(".item-info-description").html('<p><strong>Plate: </strong><span>'+ itemData.info.label + '</span></p>');
If you did follow this correct you will see the info
on the rentalpapers
item
That's all for the Installations.
Preview 1 Preview 2 Preview 3 Preview 4
Debug Mode
Some print thingy for debugging purposes and forDebug Poly
Enable/Disable Blips for Rentals
Setup menu:
currently supported menus(qb-menu, nh-context)
Rental Plate Mark
a mark on a Vehicle plate which will be the indicator of the vehicle was only for rented.Unlimited Vehicle to rent
just follow the instructions inside theconfig.lua
Configurable Rental Time
just follow the instructions inside theconfig.lua
Configurable Locations for Rent
just follow the instructions inside theconfig.lua
Custom Ped, and Scene for Each Rental Stations
just follow the instructions inside theconfig.lua
Configurable Vehicle Spawn
just follow the instructions insideVehicle Nearby Detection
wither there is an vehicle near the spawn point of the vehicle it will notice the playerAutomatic Vehicle Deletion upon the Rental Time
Vehicle will be Automatically deleted if Rental Time was already done.
- Add more menus support
- might be supported with ESX in the future
- Add Discord Logs
- Add more info on the
rentalpapers
item
MIT License
Copyright (c) 2023 Lester
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
If you have any feedback, please reach out to me through discord Ternology#6508