# Troubleshooting

{% hint style="info" %}

## 🔧 Troubleshooting

***

### Common Issues

#### Items not appearing in inventory

**Problem:** Parts are chopped but items don't appear.

**Solution:**

1. Make sure items are added to your inventory system
2. Check if inventory has enough weight capacity
3. Set `Config.Debug = true` and check server console
4. Look for `[CHOP SHOP] GiveItem:` messages

***

#### NPC not spawning

**Problem:** No NPC at chop shop location.

**Solution:**

1. Check `Config.ChopLocations` coordinates
2. Make sure `enabled = true`
3. Check if the ped model exists: `g_m_y_mechanic_02`

***

#### Target not working

**Problem:** Can't interact with NPC or vehicle.

**Solution:**

1. Check if ox\_target or qb-target is running
2. Set `Config.Target = 'ox'` or `Config.Target = 'qb'` explicitly
3. If no target system, it falls back to DrawText (press E)

***

#### Mission vehicle not spawning

**Problem:** Accept mission but no vehicle appears.

**Solution:**

1. Check spawn point coordinates in `Config.Missions.vehicleSpawnPoints`
2. Make sure vehicle model exists (e.g., 'sultan', 'zentorno')
3. Check server console for error messages

***

#### Database errors

**Problem:** SQL errors in console.

**Solution:**

1. Import `chop_shop.sql` manually
2. Make sure `oxmysql` is running
3. Check database connection in `server.cfg`

***

#### Police alerts going to everyone

**Problem:** All players receive police alerts, not just cops.

**Solution:** This is fixed in latest version. Alerts only go to players with jobs listed in:

```lua
Config.PoliceAlert.policeJobs = {
    'police', 'lspd', 'bcso',
}
Debug Mode
Enable debug mode to see detailed logs:

Lua

Config.Debug = true
Check both server console (F8) and client console for [CHOP SHOP] messages.
```

{% endhint %}

### Support

* 📧 Discord: \[<https://discord.gg/elena>]
* 🎫 Tebex: \[<https://lenastore.tebex.io/>]
* 📝 Issues: Open a ticket on Discord


---

# 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://elena-scripts.gitbook.io/elenascripts/jobs-and-activities/chop-shop-v1/troubleshooting.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.
