RD Black market
Last updated
Last updated
['laptop'] = {['name'] = 'laptop', ['label'] = 'Laptop', ['weight'] = 4000, ['type'] = 'item', ['image'] = 'laptop.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Expensive laptop'},RegisterNetEvent("inventory:server:addtotrunk", function(plate, toSlot, fromSlot, item, amount, info)
local itemInfo = QBCore.Shared.Items[item:lower()]
if Trunks[plate] then else Trunks[plate] = {items = {},} end
Trunks[plate].items[#Trunks[plate].items + 1] = {
name = itemInfo["name"],
amount = amount,
info = info ~= nil and info or "",
label = itemInfo["label"],
description = itemInfo["description"] ~= nil and itemInfo["description"] or "",
weight = itemInfo["weight"],
type = itemInfo["type"],
unique = itemInfo["unique"],
useable = itemInfo["useable"],
image = itemInfo["image"],
slot = #Trunks[plate].items + 1,
}
end)