Files
overextended.github.io/pages/ox_inventory/Functions/Client/Statebags/invBusy.mdx
T
2023-06-04 15:15:21 +02:00

18 lines
289 B
Plaintext

---
title: invBusy
---
Returns whether the player's inventory is currently running an action (i.e. using an item)
* invBusy: `boolean`
```lua
local isInventoryBusy = LocalPlayer.state.invBusy
if isInventoryBusy then
-- Do stuff when busy
else
-- Do stuff when not busy
end
```