# WLabs Tablet

**WLabs Tablet** is a project I started for my personal FiveM server, I've decided to release it for free because I feel it has some unique features that other free tablets/phones don't seem to have. This script is usable on **Qbox** (`qbx_core`), **QB-Core** (`qb-core`), or **ESX** (`es_extended`) frameworks.

## Important when updating

Do **not** delete or overwrite your existing `wlabs-tablet/data/` folder when updating. This folder stores player tablet data such as gallery/app storage and the applied email domain.

Before updating:

1. Stop the resource or server.
2. Back up your existing `wlabs-tablet/data/` folder.
3. Back up your existing `config.lua` and any custom app/icon changes.
4. Upload the new script files.
5. Restore your saved `data/` folder and merge your config changes.
6. Start the resource again.

Never drop the existing `wlabs_tablet_*` database tables during an update unless you intentionally want to erase player tablet mail/accounts/contacts.

## Common problems

### Tablet profiles or settings are not saving

If tablet profiles, wallpapers, gallery/app storage, or saved settings are not saving after a restart, the JSON files in `wlabs-tablet/data/` may be corrupt.

1. Stop `wlabs-tablet`.
2. Delete `wlabs-tablet/data/tablet_storage.json`.
3. Delete `wlabs-tablet/data/wlabs_tablet_email_domain.json`.
4. Start `wlabs-tablet` again.

Only do this when the data files are broken or profiles are not saving. Deleting these files resets the file-based tablet storage and email-domain state, but it does not drop your `wlabs_tablet_*` database tables.

## Requirements

* `ox_lib`, `oxmysql`
* `qbx_core`, `qb-core`, **or** `es_extended`
* Optional: `pma-voice` for voice to work in video calls.

See [Dependencies](/w-labs-docs/scripts/wlabs-tablet/getting-started/dependencies.md).


---

# Agent Instructions: 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:

```
GET https://w-labs.gitbook.io/w-labs-docs/scripts/wlabs-tablet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
