mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
17 lines
257 B
Plaintext
17 lines
257 B
Plaintext
---
|
|
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
|