mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 22:36:04 +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
|
if src then
|
||||||
grabInv = exports[QSInv]:GetInventory(src)
|
grabInv = exports[QSInv]:GetInventory(src)
|
||||||
else
|
else
|
||||||
--grabInv = exports[QSInv]:getUserInventory()
|
grabInv = exports[QSInv]:getUserInventory()
|
||||||
grabInv = triggerCallback(getScript()..":getServerInvData", GetPlayerServerId(PlayerId()))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif isStarted(OrigenInv) then
|
elseif isStarted(OrigenInv) then
|
||||||
@@ -176,11 +175,6 @@ function getPlayerInv(src)
|
|||||||
return grabInv, foundInv
|
return grabInv, foundInv
|
||||||
end
|
end
|
||||||
|
|
||||||
createCallback(getScript()..":getServerInvData", function(source)
|
|
||||||
local src = source
|
|
||||||
return getPlayerInv(src)
|
|
||||||
end)
|
|
||||||
|
|
||||||
function isInventoryOpen()
|
function isInventoryOpen()
|
||||||
if isStarted(OXInv) then
|
if isStarted(OXInv) then
|
||||||
return LocalPlayer.state.invBusy
|
return LocalPlayer.state.invBusy
|
||||||
|
|||||||
Reference in New Issue
Block a user