Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ end
---@param invType string
---@param data string|number|table
lib.callback.register('ox_inventory:openInventory', function(source, invType, data)
if invType == 'player' and source ~= data then
if invType == 'player' or invType == 'otherplayer' and source ~= data then
local serverId = type(data) == 'table' and data.id or data

if source == serverId or type(serverId) ~= 'number' then return end
Expand Down