> For the complete documentation index, see [llms.txt](https://juguitostudio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://juguitostudio.gitbook.io/docs/js_loadingscreen/faq.md).

# Preguntas Frecuentes

Aquí encontrarás respuesta a las dudas más comunes sobre **js\_loadingscreen**.

***

### ¿Por qué mi vídeo no se reproduce o no tiene sonido?

1. Verifica que hayas configurado `Mode = 'video'` en `config.lua` y `web/config.js`.
2. Para activar el sonido directo del vídeo, asegúrate de colocar `EnableAudio = true` dentro de `Config.Background`. Si está en `false`, el vídeo permanecerá silenciado y se reproducirá la playlist de canciones de `Config.Audio`.
3. Comprueba que el archivo de vídeo exista dentro de la carpeta `web/assets/video/` en formato MP4 compatible. Si un vídeo falla, el script saltará automáticamente al siguiente de la lista.

***

### ¿Cómo cambio las canciones de música?

En `config.lua` y `web/config.js`, edita la tabla `Playlist`:

* Puedes usar URLs directas a archivos `.mp3` (que terminen en `.mp3`).
* O puedes guardar los archivos `.mp3` dentro de `web/assets/audio/` y poner la ruta relativa (por ejemplo: `assets/audio/cancion1.mp3`).

***

### ¿Cómo desactivo que el jugador tenga que presionar espacio para entrar?

Cambia la siguiente opción en `config.lua` y `web/config.js`:

```lua
Config.Shutdown = {
    RequireKeyPress = false, -- Entrará automáticamente cuando la carga llegue al 100%
}
```

***

### ¿Cómo cambio el logo y las imágenes locales?

1. Coloca tu archivo de imagen dentro de `js_loadingscreen/web/assets/images/`.
2. En `config.lua` y `web/config.js`, ajusta la ruta:

   ```lua
   Config.Server.Logo = 'assets/images/tu_logo.png'
   ```

***

### ¿Cómo agrego un nuevo idioma?

1. Duplica el archivo `locales/es.json`.
2. Nómbralo con el código ISO de tu idioma (ejemplo: `locales/pt.json`).
3. Traduce los textos dentro de ese archivo.
4. En `config.lua` cambia:

   ```lua
   Config.Locale = 'pt'
   ```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://juguitostudio.gitbook.io/docs/js_loadingscreen/faq.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
