> For the complete documentation index, see [llms.txt](https://docs.fivemcustoms.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fivemcustoms.com/it/fc-lspdbadge/troubleshooting.md).

# Risoluzione problemi

I problemi più comuni e come risolverli.

### No such export useBadge in resource ...

L'export in `items.lua` deve essere esattamente `FC-LspdBadge.useBadge` e la cartella della risorsa deve chiamarsi `FC-LspdBadge`. Dopo aver modificato `items.lua` riavvia ox\_inventory (o tutto il server).

### Non vedo l'opzione sull'NPC

Il tuo lavoro non è in `Config.Jobs` oppure il tuo grado è più basso di quello impostato. Controlla anche che ox\_target parta prima di FC-LspdBadge.

### "screenshot-basic non è avviato"

screenshot-basic deve partire prima di FC-LspdBadge nel `server.cfg`.

### "No framework found" in console

Avvia il framework prima di FC-LspdBadge, oppure imposta `Config.Framework` a mano.

### La foto è inquadrata male

Regola `camDistance`, `camHeight`, `aimOffset` e `fov` in `Config.Photo`, oppure imposta un `photoSpot` davanti a un muro chiaro.

### L'item non ha l'immagine nell'inventario

`lspd_badge.png` non è in `ox_inventory/web/images/`, oppure il nome del file non corrisponde al nome dell'item.

### I testi sono nella lingua sbagliata

`Config.Locale` deve corrispondere al nome di un file dentro `locales/`. Se non corrisponde, la console mostra un avviso e viene usato l'inglese.

### Il tesserino dice che non corrisponde a nessuna matricola registrata

Quella matricola è stata eliminata con `/badgedelete`. L'agente deve registrarsi di nuovo dall'NPC.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fivemcustoms.com/it/fc-lspdbadge/troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
