QBCore
You will need the latest version of .
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
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)