Returns whether the player's inventory is currently open or not.
- invOpen:
boolean
local isInventoryOpen = LocalPlayer.state.invOpen
if isInventoryOpen then
-- Do stuff when open
else
-- Do stuff when closed
endReturns whether the player's inventory is currently open or not.
booleanlocal isInventoryOpen = LocalPlayer.state.invOpen
if isInventoryOpen then
-- Do stuff when open
else
-- Do stuff when closed
end