Skip to content

BerlinDev-Five/qb-rentals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script Working With Only QBCore Framework Latest Version

Dependencies

Preview

Setup

  • Find this in qb-target/init
  • Put this in "Config.TargetModels"
    ["VehicleRental"] = {
        models = {
            `a_m_y_business_03`,
        },
        options = {
            {
                type = "client",
                event = "qb-rental:openMenu",
                icon = "fas fa-car",
                label = "Rent Vehicle",
            },
        },
        distance = 2.0
    },

}

Rental Papers Item - qb-core/shared/items.lua

["rentalpapers"]				 = {["name"] = "rentalpapers", 					["label"] = "Rental Papers", 			["weight"] = 0, 		["type"] = "item", 		["image"] = "rentalpapers.png", 		["unique"] = true, 		["useable"] = true, 	["shouldClose"] = true, 	["combinable"] = nil, 	["description"] = "It's Rental Vehicle Proof!"},

Rental Papers Item Description - qb-inventory/html/js/app.js (Line 546)

        } else if (itemData.name == "stickynote") {
            $(".item-info-title").html('<p>' + itemData.label + '</p>')
            $(".item-info-description").html('<p>' + itemData.info.label + '</p>');
        } else if (itemData.name == "rentalpapers") {
            $(".item-info-title").html('<p>' + itemData.label + '</p>')
            $(".item-info-description").html('<p><strong>Name: </strong><span>'+ itemData.info.firstname + '</span></p><p><strong>Last Name: </strong><span>'+ itemData.info.lastname+ '</span></p><p><strong>Plate: </strong><span>'+ itemData.info.plate + '<p><strong>Model: </strong><span>'+ itemData.info.model +'</span></p>');
  • Credits - itsHyper

  • Any problem related this script join our discord server and contact with admin

  • Discord

About

qb-rentals This script is rewritten.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages