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

# Set hotbar disabled

> Enables or disables the hotbar functionality. Useful for example during minigames.

Enables or disables the hotbar functionality. Useful for example during minigames. Don't forget to re-enable the hotbar when finished.

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

  ```lua Example theme={null}
  -- Disable the hotbar
  exports['jaksam_inventory']:setHotbarDisabled(true)

  -- Enable the hotbar
  exports['jaksam_inventory']:setHotbarDisabled(false)

  -- Disable hotbar during a cutscene
  exports['jaksam_inventory']:setHotbarDisabled(true)
  -- ... cutscene code ...
  exports['jaksam_inventory']:setHotbarDisabled(false)
  ```
</CodeGroup>

### Parameters

| Name       | Data Type | Description                                                                                                                                |
| ---------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `disabled` | boolean   | If true, the hotbar will be disabled and `showHotbar()` calls will be ignored. If false, the hotbar will be enabled and will work normally |

### Return value

None.


## Related topics

- [Client](/jaksam-inventory/functions/client/index.md)
- [Set inventory disabled](/jaksam-inventory/functions/client/set-inventory-disabled.md)
- [Show hotbar](/jaksam-inventory/functions/client/show-hotbar.md)
- [Set hotkeys enabled](/jaksam-inventory/functions/client/set-hotkeys-enabled.md)
- [Is inventory disabled](/jaksam-inventory/functions/client/is-inventory-disabled.md)
