> For the complete documentation index, see [llms.txt](https://docs.privalo.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.privalo.dev/scripts/essentials/banking/installation.md).

# INSTALLATION

1. Copia `pv-banking` a `resources`.
2. **Importa las tablas** (archivo `pv-banking.sql`). Incluye `bank_cards`, `bank_accounts`, `bank_transactions` y **`bank_statements`** (esta última es la del historial — imprescindible):

   ```sql
   CREATE TABLE IF NOT EXISTS `bank_statements` (
     `id` int(11) NOT NULL AUTO_INCREMENT,
     `citizenid` varchar(50) DEFAULT NULL,
     `account_name` varchar(50) DEFAULT 'checking',
     `amount` int(11) DEFAULT 0,
     `reason` varchar(255) DEFAULT NULL,
     `statement_type` varchar(50) DEFAULT NULL,
     `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
     PRIMARY KEY (`id`), KEY `citizenid` (`citizenid`)
   );
   ```
3. **Item de tarjeta** en `ox_inventory/data/items.lua`:

   ```lua
   ['bank_card'] = { label = 'Tarjeta Bancaria', weight = 10, stack = false, close = true },
   ```

   (o cambia `Config.BankItem` por el item que uses).
4. `ensure pv-banking` en `server.cfg`.
5. Idioma: `Config.Locale = 'es'` · Framework: `Config.Framework = 'auto'`.
6. Reinicia.

> **ESX:** el "IBAN" se muestra como el identificador del jugador (ESX no trae número de cuenta).


---

# 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.privalo.dev/scripts/essentials/banking/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.
