> 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/how-it-works.md).

# Come funziona

Cosa vedono e fanno gli agenti in game.

## Registrare la matricola

1. Vai dall'NPC dell'ufficio matricole e interagisci con ox\_target. Solo i lavori in `Config.Jobs` vedono l'opzione.
2. Scegli **Registra matricola**, scrivi il numero (solo in modalità manuale) e scegli la divisione.
3. La fotocamera si apre davanti al tuo volto. Nome, data di nascita e sesso vengono presi dal personaggio.
4. Scatta la foto, controlla l'anteprima e usala oppure rifalla.
5. Il tesserino arriva nel tuo inventario.

### Comandi della fotocamera

| Tasto                           | Azione               |
| ------------------------------- | -------------------- |
| `A` / `D`                       | Ruota il personaggio |
| `W` / `S` o rotellina del mouse | Zoom                 |
| `E`                             | Scatta la foto       |
| `Backspace` / `Esc`             | Annulla              |

Nell'anteprima puoi usare i pulsanti, oppure `Backspace` per rifare la foto ed `Esc` per annullare.

## Usare il tesserino

Usa l'item dall'inventario e scegli:

* **Guarda il tesserino**: apre il porta-distintivo solo per te.
* **Mostra al più vicino**: il giocatore più vicino entro `Config.ShowDistance` vede il tuo tesserino per `Config.DisplayTime` millisecondi.

Si chiude con `Backspace` o `Esc`, e si chiude da solo se muori. L'animazione non parte se sei dentro un veicolo.

## Di nuovo all'ufficio

Una volta registrato, l'NPC mostra matricola, grado e divisione, più queste opzioni:

* **Richiedi duplicato**: un nuovo tesserino se il tuo è stato perso o rubato. Costa `Config.Duplicate.price` e le copie vecchie diventano VOID.
* **Aggiorna grado sul tesserino**: compare solo se il tuo grado è cambiato. Stampa un nuovo tesserino con il grado nuovo.
* **Rifai la foto**: scatta una nuova foto. Tutte le copie del tuo tesserino mostrano subito quella nuova.

{% hint style="info" %}
Il tesserino appartiene all'agente, non a chi lo tiene in tasca. Un tesserino rubato mostra comunque nome e foto del vero proprietario, proprio come nella realtà.
{% endhint %}

## Timbri

| Timbro      | Quando compare                                                                                                  |
| ----------- | --------------------------------------------------------------------------------------------------------------- |
| **VOID**    | Una copia vecchia, dopo un duplicato o un aggiornamento del grado (solo con `Config.InvalidateOldCards = true`) |
| **REVOKED** | La matricola è stata revocata da un admin                                                                       |


---

# 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/how-it-works.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.
