Page cover image

💻Installation

Dependencies

QBCore

You will need the latest version of qb-core.

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.

Inventories

QB-INVENTORY

Add item to shared items.lua :

        ["zat-rentalpaper"] 					= {["name"] = "zat-rentalpaper", 						["label"] = "Rental Paper", 					["created"] = nil, 	["decay"] = 999.0,	['weight'] =  50, 		["type"] = "item", 		["image"] = "zat-rentalpaper.png", 			["unique"] = true, 				["useable"] = true, 	["shouldClose"] = true, 	   ["combinable"] = nil,  ["description"] = ""},
OX-INVENTORY

Add this to ox_inventory/data/itemslua

	["zat-rentalpaper"] = {
		label = "zat-rentalpaper",
		weight = 1,
		stack = true,
		close = true,
	},

Add this to ox_inventory\modules\items\client.lua:

Item('zat-rentalpaper', function(data, slot)
    TriggerEvent("zat-carrental:client:UseRentalPaper", slot.metadata)
end)

Installing the resource

  • Make sure you have the dependencies listed above installed.

  • Extract the contents of the archive to your resources folder.

  • Ensure zat-carrental on the server.cfg.

Last updated