Revert qs-inv server inv grab

Found the real issue that was causing the scripts to not think you had items, basically reverting this change as i didn't like having it in the first place
This commit is contained in:
Jim Shield
2025-05-15 19:59:51 +01:00
parent 9198068a19
commit ada724069b

View File

@@ -103,8 +103,7 @@ function getPlayerInv(src)
if src then
grabInv = exports[QSInv]:GetInventory(src)
else
--grabInv = exports[QSInv]:getUserInventory()
grabInv = triggerCallback(getScript()..":getServerInvData", GetPlayerServerId(PlayerId()))
grabInv = exports[QSInv]:getUserInventory()
end
elseif isStarted(OrigenInv) then
@@ -176,11 +175,6 @@ function getPlayerInv(src)
return grabInv, foundInv
end
createCallback(getScript()..":getServerInvData", function(source)
local src = source
return getPlayerInv(src)
end)
function isInventoryOpen()
if isStarted(OXInv) then
return LocalPlayer.state.invBusy