add inventory client statebags

This commit is contained in:
Luke committed 2022-11-30 19:18:01 +01:00
1 parent 59aef169cd
commit 0a7cb24a2a
3 files changed
+48

No files matched your search

@@ -0,0 +1,16 @@
---
title: invOpen
---
Returns whether the player's inventory is currently open or not.
* invOpen: `boolean`
```lua
local isInventoryOpen = LocalPlayer.state.invOpen
if isInventoryOpen then
-- Do stuff when open
else
-- Do stuff when closed
end