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

> Enables or disables the default GTA5 weapon wheel and related weapon settings. Useful for minigames.

Enables or disables the weapon wheel and related weapon settings. Useful for minigames where you want the GTA 5 weapon wheel.

<Warning>
  This function will prevent using weapons from the inventory, it's mainly for FFA minigames.
</Warning>

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

  ```lua Example theme={null}
  -- Disable GTA5 weapon wheel (default jaksam_inventory mode)
  exports['jaksam_inventory']:setWeaponWheel(false)

  -- Enable GTA5 weapon wheel (enable only for minigames)
  exports['jaksam_inventory']:setWeaponWheel(true)

  -- Enable default GTA 5 weapon wheel during FFA minigame
  exports['jaksam_inventory']:setWeaponWheel(true)
  -- ... minigame code ...
  exports['jaksam_inventory']:setWeaponWheel(false) -- Disable GTA5 wheel again, returning to normal jaksam_inventory
  ```
</CodeGroup>

### Parameters

| Name    | Data Type      | Description                                                                                                                                                                                                                                                |
| ------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `state` | boolean \| nil | If true, the default GTA5 weapon wheel will be enabled and weapons WON'T be handled by jaksam inventory. If false, the default GTA5 weapon wheel will be disabled and weapons WILL be handled by jaksam inventory. If nil, uses the current internal state |

### Return value

None. Automatically dequips the current weapon when called.


## Related topics

- [Client](/jaksam-inventory/functions/client/index.md)
- [Set jaksam weapon wheel](/jaksam-inventory/functions/client/set-jaksam-weapon-wheel.md)
- [Weapon Attachments](/jaksam-inventory/guides/weapon-attachments.md)
- [Set inventory disabled](/jaksam-inventory/functions/client/set-inventory-disabled.md)
- [Weapon Stolen](/jobs-creator/server/search-steal-action/weapon-stolen.md)
