Skip to content

Commit

Permalink
refactor(server): don't sent player name when opening inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jun 19, 2022
1 parent 3629ae0 commit 5210348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5210348

Please sign in to comment.