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.
What it feeds
Section titled “What it feeds”| Call | Feeds |
|---|---|
GetCount |
Reserve ammo and consumable counts |
Remove |
The stress items configured in /hud → Admin |
OnUse (optional) |
Item use, when your inventory registers usable items itself |
Without OnUse, item use goes through your framework’s usable items instead.
Already recognised
Section titled “Already recognised”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.
Writing it out yourself
Section titled “Writing it out yourself”An inventory that does not fit the table replaces it with the adapter directly:
Custom.Inventory = { GetCount = function(src, itemName) return 0 end,
Remove = function(src, itemName, count) return true end,}Restart the resource after editing:
ensure aurora_hud