> ## 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

> Devuelve si la apertura del inventario está actualmente deshabilitada.

Devuelve si la apertura del inventario está actualmente deshabilitada.

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

  ```lua Example theme={null}
  -- Comprueba si el inventario está deshabilitado antes de hacer algo
  local disabled = exports['jaksam_inventory']:isInventoryDisabled()

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

  -- Protege una acción personalizada
  if not exports['jaksam_inventory']:isInventoryDisabled() then
      exports['jaksam_inventory']:openInventory('my_stash')
  end
  ```
</CodeGroup>

### Parámetros

Ninguno.

### Valor de retorno

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `disabled` | boolean | True si la apertura del inventario está actualmente deshabilitada, false en caso contrario |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.