mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user