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

> Enables or disables the hotkeys functionality (slots 1-5). Useful for example during minigames or cutscenes.

Enables or disables the hotkeys functionality (slots 1-5). Useful for example during minigames or cutscenes. Don't forget to re-enable the hotkeys when finished.

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

  ```lua Example theme={null}
  -- Disable the hotkeys
  exports['jaksam_inventory']:setHotkeysEnabled(false)

  -- Enable the hotkeys
  exports['jaksam_inventory']:setHotkeysEnabled(true)

  -- Disable hotkeys during a minigame
  exports['jaksam_inventory']:setHotkeysEnabled(false)
  -- ... minigame code ...
  exports['jaksam_inventory']:setHotkeysEnabled(true)
  ```
</CodeGroup>

### Parameters

| Name      | Data Type | Description                                                                                                                          |
| --------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `enabled` | boolean   | If true, the hotkeys will be enabled and will work normally. If false, the hotkeys will be disabled and pressing 1-5 will be ignored |

### Return value

None.


## Related topics

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