# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.otherplanet.dev/scripts/op-gangs/tutorials/why-is-the-spy-detector-not-working.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
