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

# INSTALLATION

#### 1.1 Requisitos

* [`ox_lib`](https://github.com/overextended/ox_lib)
* [`oxmysql`](https://github.com/overextended/oxmysql)
* [`xsound`](https://github.com/Xogy/xsound) — imprescindible para el audio 3D
* (Opcional pero recomendado) [`ox_target`](https://github.com/overextended/ox_target)

#### 1.2 Pasos

1. Copia la carpeta `pv_dj` en `resources/[pv]/` (o donde tengas tus scripts).
2. En `server.cfg`, después de `ox_lib`, `oxmysql` y `xsound`:

   ```cfg
   ensure ox_lib
   ensure oxmysql
   ensure xsound
   ensure ox_target
   ensure pv_dj
   ```
3. **No hace falta importar SQL.** Al iniciar, crea sus tablas automáticamente:
   * `pv_dj_stations` (mesas creadas desde `/djadmin`)
   * `pv_dj_playlists` (canciones por mesa)
   * `pv_dj_fx` (FX pads)
4. Los admins (ACE `group.admin`) reciben automáticamente el ACE `pv_dj.admin`. Puedes cambiar el nombre en `config.lua → PVConfig.AdminAce`.
5. Entra al juego, sitúate cerca de una mesa configurada y pulsa **E** (o usa `/djadmin` si eres staff).

#### Para jugadores

| Acción                | Cómo                                                     |
| --------------------- | -------------------------------------------------------- |
| Abrir mesa            | **E** cerca de la mesa o ox\_target                      |
| Cargar canción en A/B | Click en `A` / `B` en la playlist, o `/dj` → escribe URL |
| Play / Pause / Stop   | Botones bajo el vinilo de cada deck                      |
| Volumen deck          | Slider vertical al lado del vinilo                       |
| Crossfader            | Slider central, o botones `SOLO A / 50-50 / SOLO B`      |
| Master                | Slider superior del centro                               |
| FX Pads               | Click en cualquier pad (grid derecho del centro)         |

Los cambios son **live y sincronizados** con todos los que están dentro del radio.

#### Para admins (`/djadmin`)

| Acción            | Cómo                                                                  |
| ----------------- | --------------------------------------------------------------------- |
| Crear mesa        | Pestaña **Mesas** → `Nueva mesa`                                      |
| Editar mesa       | Botón `Editar` en la tarjeta                                          |
| Borrar mesa       | Botón rojo (solo mesas creadas en `/djadmin`, no las de `config.lua`) |
| Fijar coordenadas | Botón `Usar mi posición` dentro del editor                            |
| Añadir FX Pad     | Pestaña **FX Pads** → `Nuevo FX` (o `Editar` en un slot vacío)        |
| Borrar FX Pad     | Botón rojo en la tarjeta                                              |

Los cambios se ven **instantáneamente** en todas las mesas abiertas.


---

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