> For the complete documentation index, see [llms.txt](https://nayzeee-dev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nayzeee-dev.gitbook.io/docs/nayzeee-scripts/nayzeee-carwipe/installation.md).

# Installation

1. **Extract Files**\
   \&#xNAN;*Extract `nayzeee-carwipe` into your server resources folder.*

   Example:

   ```
   resources/[nayzeee]/nayzeee-carwipe
   ```
2. **Configure Script**\
   \&#xNAN;*Configure the script to your liking inside `config.lua`.*

   Example configuration:

   ```lua
   Config.EnableAutoWipe = true
   Config.AutoWipeTimer = 30 -- minutes
   Config.MinimumVehicleThreshold = 15
   ```
3. **Add to Server Config**\
   \&#xNAN;*Ensure the resource is started after dependencies.*

   ```cfg
   ensure nayzeee-carwipe
   ```

This script will automatically monitor vehicle population and wipe vehicles when the threshold is met.

***

### Troubleshooting

| Issue                     | Solution                                     |
| ------------------------- | -------------------------------------------- |
| Vehicles not wiping       | Ensure vehicle count meets minimum threshold |
| Notifications not showing | Configure notification system in config      |
| Occupied vehicles deleted | This should not happen — report as bug       |
