> 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/radio-car/config.md).

# CONFIG

| Clave               | Por defecto | Descripción                                                        |
| ------------------- | ----------- | ------------------------------------------------------------------ |
| `Framework`         | `'auto'`    | Multi-framework                                                    |
| `Locale`            | `'es'`      | Idioma                                                             |
| `Command`           | `'radio'`   | Comando `/radio`                                                   |
| `KeyMapping`        | `'F9'`      | Tecla por defecto (el jugador la puede rebindear)                  |
| `OpenMode`          | `'both'`    | `inside` \| `closest` \| `both`                                    |
| `NearRadius`        | `3.0`       | m para modo `closest`/`both`                                       |
| `MaxDistance`       | `25.0`      | m: alcance del audio                                               |
| `MaxVolume`         | `0.7`       | Volumen tope global (0..1)                                         |
| `ClosedFactor`      | `0.35`      | Factor al estar todo cerrado (0..1)                                |
| `DoorsCount`        | `true`      | Puertas cuentan para oclusión                                      |
| `DistanceCurve`     | `'inverse'` | `linear` \| `inverse` \| `sqrt`                                    |
| `MaxPlaylistSize`   | `40`        | Canciones por matrícula                                            |
| `MaxFavorites`      | `60`        | Favoritos por usuario                                              |
| `ControlWho`        | `'inside'`  | Quién puede controlar: `anyone` \| `inside` \| `driver` \| `owner` |
| `AllowedDomains`    | *(lista)*   | Dominios permitidos                                                |
| `AllowedExtensions` | *(lista)*   | Extensiones de archivo permitidas                                  |

#### Curvas de distancia

* `linear` — cae de forma constante con la distancia.
* `inverse` (default) — más volumen cerca, cae más suave lejos. Realista.
* `sqrt` — se mantiene más de cerca, cae fuerte al final.

#### Permisos `ControlWho`

| Valor                  | Quién puede controlar                                   |
| ---------------------- | ------------------------------------------------------- |
| `anyone`               | Cualquiera que esté cerca puede pausar/cambiar canción  |
| `inside` (recomendado) | Solo pasajeros dentro del vehículo                      |
| `driver`               | Solo el conductor                                       |
| `owner`                | Conductor u owner (statebag `pv_owner_cid = citizenId`) |

#### URLs

Solo se aceptan URLs de `AllowedDomains` (YouTube, SoundCloud, Discord CDN, Dropbox, Catbox) o con `AllowedExtensions` (mp3, ogg, wav, aac, m4a).

| Acción                               | Cómo                                                    |
| ------------------------------------ | ------------------------------------------------------- |
| Abrir                                | **F9** o `/radio`                                       |
| Reproducir URL                       | Pestaña **Reproductor** → escribe URL → *Reproducir*    |
| Añadir a playlist del coche          | Botón `📋` junto a la URL                               |
| Añadir a favoritos                   | Botón `♡` junto a la URL                                |
| Play / Pause / Stop / Next           | Botones grandes centrales                               |
| Volumen                              | Slider (afecta a todos los que están cerca)             |
| Playlist continua                    | Switch: si activado y termina una, arranca la siguiente |
| Cambiar canción desde playlist       | Pestaña **Playlist del vehículo** → botón ▶             |
| Añadir favorito a la playlist actual | Pestaña **Mis favoritos** → botón 📋                    |

**El audio sigue sonando aunque bajes del coche**. Otros players cerca (max 25 m) lo escuchan al momento.

**Oclusión**: si el coche tiene todas las ventanas y puertas cerradas, se oye apagado (35% por defecto). Rompe una ventana o abre una puerta → volumen normal.


---

# 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/radio-car/config.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.
