From b932d23f4378db7ebd4c98ea0e1d512cc7b48cfb Mon Sep 17 00:00:00 2001 From: bedoflex <101467711+bedoflex@users.noreply.github.com> Date: Sat, 13 Sep 2025 13:04:41 +0300 Subject: [PATCH] Update server.lua Player rob exploit fix. --- server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.lua b/server.lua index ca5cd3f34a..adf4837236 100644 --- a/server.lua +++ b/server.lua @@ -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