Skip to content

Inventories

Server-side inventory adapters for Aurora HUD, for inventories other than ox_inventory.

config/server.lua is only needed for an inventory that is neither ox_inventory nor the framework’s own.

Call Feeds
GetCount Reserve ammo and consumable counts
Remove Widget locks set to Consume, and stress items
OnUse (optional) Item use, when your inventory registers usable items itself

Without OnUse, item use goes through your framework’s usable items instead.

The first of these found running wins:

Resource Count Remove Usable items
qs-inventory GetItemTotalAmount RemoveItem CreateUsableItem
jaksam_inventory getTotalItemAmount removeItem registerUsableItem
tgiann-inventory GetItemCount RemoveItem —
ak47_inventory GetAmount RemoveItem —
ak47_qb_inventory GetAmount RemoveItem —

Another inventory following the same pattern is one line in that table: the resource name and the three export names.

An inventory that does not fit the table replaces it with the adapter directly:

config/server.lua
Custom.Inventory = {
GetCount = function(src, itemName)
return 0
end,
Remove = function(src, itemName, count)
return true
end,
}

Restart the resource after editing:

server console
ensure aurora_hud