mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
add inventory client statebags
This commit is contained in:
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
|
||||
Reference in new issue
Block a user