# Why is the Spy Detector not working?

## Why is the Spy Detector not working?

If your Spy Detector (Digiscanner) is not working, the most common reason is that your inventory system is **blocking or hiding the weapon**.

Many inventory systems (including **ox\_inventory**) automatically filter out certain weapons to prevent misuse, confusion, or clutter. Unfortunately, this can also affect the Digiscanner, since it may be treated as a restricted or unusual weapon.

***

### 🔧 For `ox_inventory` users

By default, **ox\_inventory blocks the Digiscanner**, which prevents it from functioning properly.

#### How to fix it:

1. Navigate to your `inventory.cfg` file
2. Add the Digiscanner as an ignored weapon:

```
setr inventory:ignoreweapons ["WEAPON_DIGISCANNER"]
```

This ensures the Digiscanner is **not filtered out** and can be used correctly in-game.

***

### 📦 Using a different inventory system?

Even if you are **not using ox\_inventory**, the issue may still occur.

Many inventory systems:

* Hide certain weapons automatically
* Flag uncommon items as illegal or restricted
* Prevent specific weapons from being equipped or used

#### What you should check:

* Make sure the Digiscanner is **not blacklisted**
* Ensure it is **allowed to be equipped**
* Disable any filters that treat it as an illegal or hidden weapon

👉 In short:\
If your inventory system interferes with weapons, you will likely need to **whitelist or explicitly allow the Digiscanner**.

***

### ✅ Summary

If the Spy Detector is not working:

* It’s usually **not a script issue**
* Your **inventory is blocking the Digiscanner**
* Fix it by **whitelisting or ignoring the weapon** in your inventory config

***

If you're unsure how to configure your specific inventory, check its documentation or look for options related to:

* weapon filtering
* ignored weapons
* blacklists / whitelists
