> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Is inventory disabled

> Returns whether inventory opening is currently disabled.

Returns whether inventory opening is currently disabled.

<CodeGroup>
  ```lua Export theme={null}
  exports['jaksam_inventory']:isInventoryDisabled()
  ```

  ```lua Example theme={null}
  -- Check if inventory is disabled before doing something
  local disabled = exports['jaksam_inventory']:isInventoryDisabled()

  if disabled then
      print('Inventory is currently disabled')
  end

  -- Guard a custom action
  if not exports['jaksam_inventory']:isInventoryDisabled() then
      exports['jaksam_inventory']:openInventory('my_stash')
  end
  ```
</CodeGroup>

### Parameters

None.

### Return value

| Name       | Data Type | Description                                                      |
| ---------- | --------- | ---------------------------------------------------------------- |
| `disabled` | boolean   | True if inventory opening is currently disabled, false otherwise |


## Related topics

- [Set inventory disabled](/jaksam-inventory/functions/client/set-inventory-disabled.md)
- [Client](/jaksam-inventory/functions/client/index.md)
- [Set hotbar disabled](/jaksam-inventory/functions/client/set-hotbar-disabled.md)
- [Are hotkeys enabled](/jaksam-inventory/functions/client/are-hotkeys-enabled.md)
- [Set hotkeys enabled](/jaksam-inventory/functions/client/set-hotkeys-enabled.md)
