From 52103487a2056a20c328886f425b3306a39b6aa1 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 19 Jun 2022 22:19:14 +1000 Subject: [PATCH] refactor(server): don't sent player name when opening inventory --- fxmanifest.lua | 4 ++-- server.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'