> 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/installation.md).

# Installazione

La risorsa pronta in pochi minuti.

## 1. Aggiungi la risorsa

Metti la cartella `FC-LspdBadge` dentro la cartella delle risorse.

{% hint style="warning" %}
Non rinominare la cartella. L'export dell'item punta a `FC-LspdBadge`, con un altro nome ottieni l'errore `No such export useBadge`.
{% endhint %}

## 2. Aggiungi l'item

Apri `install/items.lua` e incolla l'item dentro `ox_inventory/data/items.lua`:

{% code title="ox\_inventory/data/items.lua" %}

```lua
['lspd_badge'] = {
    label = 'LSPD Badge',
    weight = 60,
    stack = false,
    close = true,
    description = 'Leather badge wallet with a Los Santos Police Department id card',
    client = {
        export = 'FC-LspdBadge.useBadge',
    },
},
```

{% endcode %}

`label`, `description` e `weight` puoi cambiarli come vuoi, per esempio mettendo `'Tesserino LSPD'`. La riga `export` invece deve restare esattamente così.

## 3. Aggiungi l'immagine

Copia `install/lspd_badge.png` in `ox_inventory/web/images/`.

## 4. server.cfg

Avvia la risorsa dopo tutte le sue dipendenze:

{% code title="server.cfg" %}

```properties
ensure oxmysql
ensure ox_lib
ensure es_extended  # or qb-core / qbx_core
ensure ox_target
ensure ox_inventory
ensure screenshot-basic
ensure FC-LspdBadge
```

{% endcode %}

## 5. Database

Qui non devi fare niente. La tabella `fc_lspdbadge` si crea da sola al primo avvio della risorsa. Se preferisci crearla a mano, importa `install/fc_lspdbadge.sql`.

## 6. Posiziona l'NPC

L'NPC di default si trova dentro Mission Row. Se usi un MLO personalizzato, cambia `ped.coords` in `config.lua` (vedi [Configurazione](/it/fc-lspdbadge/configuration.md)).

Riavvia il server e hai finito.


---

# 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/installation.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.
