diff --git a/fxmanifest.lua b/fxmanifest.lua index 4ba2948e13..0ae2fdd5f7 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -7,9 +7,9 @@ game 'gta5' --[[ Resource Information ]]-- name 'ox_inventory' author 'Overextended' -version '2.8.7' +version '2.8.8' repository 'https://github.com/overextended/ox_inventory' -description 'What even is an "ESX.Items" anyway?' +description 'Slot-based inventory with item metadata support' --[[ Manifest ]]-- dependencies { diff --git a/server.lua b/server.lua index bb3a26c998..fd55c176c6 100644 --- a/server.lua +++ b/server.lua @@ -129,7 +129,7 @@ lib.callback.register('ox_inventory:openInventory', function(source, inv, data) else left.open = true end - return {id=left.id, label=left.label, type=left.type, slots=left.slots, weight=left.weight, maxWeight=left.maxWeight}, right and {id=right.id, label=right.label, type=right.type, slots=right.slots, weight=right.weight, maxWeight=right.maxWeight, items=right.items, coords=right.coords, distance=right.distance} + return {id=left.id, label=left.label, type=left.type, slots=left.slots, weight=left.weight, maxWeight=left.maxWeight}, right and {id=right.id, label=right.type == 'otherplayer' and '' or right.label, type=right.type, slots=right.slots, weight=right.weight, maxWeight=right.maxWeight, items=right.items, coords=right.coords, distance=right.distance} end) local Licenses = data 'licenses'