ox_inventory
Slot-based inventory with metadata.
Setup guide
Install the resource
Download and add the resource to your server ox_inventory (opens in a new tab)
Follow setup/configuration guide
Overextended Documentation (opens in a new tab)
Create inventory items
items.lua
["keys"] = {
label = "Car keys",
weight = 50,
stack = false,
close = true,
allowArmed = true,
server = {
export = "ND_Core.keys"
},
buttons = {
{
label = "Trunk",
action = function(slot)
exports["ND_Core"]:keyControl("trunk", slot)
end
},
{
label = "Disable key",
action = function(slot)
exports["ND_Core"]:keyControl("disable", slot)
end
}
}
},
["lockpick"] = {
label = "Lockpick",
weight = 160,
consume = 1,
stack = true,
close = true,
client = {
export = "ND_Core.lockpick"
}
},
["tools"] = {
label = "Tools",
description = "Can be used to hotwire vehicles.",
weight = 800,
consume = 1,
stack = true,
close = true,
client = {
export = "ND_Core.hotwire"
}
},