Skip to content

Extremely advanced car rental system for QBCore. (NoPixel Style)

Notifications You must be signed in to change notification settings

NaorNC/nc-rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video of the script:

Installation

  • Download the script and put it in the [resource] folder.
  • Download nh-context and put it in the [resource] or [standalone] folder. (it doesn't really matter) Add the following code to your server.cfg/resouces.cfg
ensure nh-context
ensure nc-rental

Dependencies

Put this line on shared.lua in your core.

["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."},

Inventory image

rentalpapers

  • Add the rentalpapers.png to your - inventory -> html -> images

Adding the RentalPapers to qb-inventory

  • Go to qb-inventory -> html -> js -> app.js and between lines 500-600 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>');

About

Extremely advanced car rental system for QBCore. (NoPixel Style)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages