Functions
Client
Statebags
invOpen

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
end