> For the complete documentation index, see [llms.txt](https://docs.yeistudios.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yeistudios.com/scripts/car-wipe-1/troubleshooting.md).

# Troubleshooting

Resolve common database, vehicle delivery, framework, and permission issues.

"La base de datos todavía no está lista"

{% hint style="warning" %}
El resource intentó procesar un reclamo o un reset antes de que `oxmysql` terminara de conectarse, o `oxmysql` no está iniciado.
{% endhint %}

**Solución:**

1. Confirma que `ensure oxmysql` está **antes** de `ensure yei-starterpack` en el `server.cfg`.
2. Revisa que las credenciales de tu base de datos en `oxmysql` sean correctas.
3. Espera unos segundos tras el arranque del server — el resource crea la tabla automáticamente.

### El NPC no aparece

* Verifica que `NPC.enabled` esté en `true`.
* Revisa que las `coords` correspondan a un punto válido del mapa.
* Chequea la consola del cliente (F8) por errores de carga de modelo.

### El menú no abre al interactuar

* Confirma que `ox_target`/`qb-target` está iniciado **antes** que `yei-starterpack`.
* Si no usas ninguno: el fallback nativo requiere estar dentro del `interactionRange` configurado.
* Revisa la consola del navegador NUI (F8) por errores de `index.html`/`app.js`.

### El jugador no recibe el vehículo en su garage

* Confirma que `GiveVehicleInDatabase` esté en `true`.
* Verifica que el framework se detectó correctamente (mensaje de consola al iniciar).
* En ESX, confirma que la tabla `owned_vehicles` existe con la estructura estándar.

### El comando `/resetstarterpack` no funciona

* Confirma el ACE: `add_ace group.admin yei-starterpack.admin allow`.
* Si el jugador está offline, pasa el identifier completo (`license:...`).
* Desde la consola del servidor no se requiere ACE.

### Los logs de Discord no llegan

{% hint style="info" %}
Verifica que `Logs.enabled = true` **y** que `Logs.webhookURL` no esté vacío — si está vacío, no se envía nada aunque esté habilitado.
{% endhint %}

### Los ítems de recompensa no llegan

* Confirma que los `name` en `Rewards.items` existen exactamente igual en tu sistema de inventario.
* Si usas `ox_inventory`, revisa que esté `started` antes que `yei-starterpack`.

### Un jugador dice que "ya reclamó" pero nunca lo hizo

* Es probable que su identifier ya exista en la tabla `yei_starterpack_claims` de una prueba anterior.
* Usa `/resetstarterpack [identifier]` para limpiar ese registro puntual.

### ¿Sigues con problemas?

{% hint style="success" %}
Contacta soporte de Yei Studios con: el mensaje de consola exacto, tu `config.lua` (sin datos sensibles como el webhook), y el framework/versión que estás usando.
{% endhint %}


---

# 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.yeistudios.com/scripts/car-wipe-1/troubleshooting.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.
