# AR Fire Mode Toggle (Auto / Single) — FiveM
A lightweight FiveM client-side script that lets players toggle assault rifles between FULL AUTO and SINGLE FIRE.
“Single fire” is simulated by allowing one shot, then briefly blocking the fire control for a short cooldown to prevent automatic spray (no weapon meta edits required).
---
## Features
- Toggle ARs between AUTO and SINGLE fire
- Supports addon weapons (WEAPON_DD11_B included by default)
- Additional addon weapons can be added via the config (client.lua)
- Configurable cooldown for realistic semi-auto feel
- Optional vehicle support
- Lightweight and easy to customize
---
## Installation
1. Download and extract the resource folder:
- nzt_firemode
2. Place it into your server’s resources directory:
- resources/nzt_firemode
3. Add to your server.cfg: ensure nzt_firemode
4. Restart the server (or start the resource).
---
## Usage
- Default toggle key: J
- command /togglefiremode
When holding an AR, pressing the key/command will switch between:
- AUTO
- SINGLE
If the current weapon is not in the configured AR list, it will notify: “not an AR”.
---
## Configuration
Edit client.lua:
To Increase the speed of the "Single Fire" edit ----> in Client.lua (SingleShotCooldownMs = 140) (Higher = Slower Lower = Faster)
##