# Tablet & Mini-CAD

<figure><img src="/files/3TV1kelAh5IJ2HW1QSrW" alt=""><figcaption><p>Sonoran CAD - Mini-CAD</p></figcaption></figure>

## Activation Guide

### 1. Download and Install the Resource

{% hint style="info" %}
This resource is already **enabled by default** inside of the `sonorancad.cfg` when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation.md).
{% endhint %}

### 2. Ensure Players are Linked

Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game.md) for this integration to work.

## Configuration

<details>

<summary>Optional: URL Convar</summary>

If you wish to use a custom login page, you can set a convar in your server.cfg.\
\
The easiest way to show your [custom login page](/cad/tutorials/customization/custom-login-page.md) is to use a query string.

`"https://sonorancad.com/?comid=YOUR_COMMUNITY_ID_HERE"`

Simply replace `YOUR_COMMUNITY_ID_HERE` in the URL with your [community ID](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code.md).\
EX: `https://app.sonorancad.com/?comid=midwestrp`

Add the following to your server.cfg **before** starting the tablet resource:

```
setr sonorantablet_cadUrl "YOUR_URL_HERE"
```

Fill in with your actual URL above with the comid you want.

</details>

## Keybinds

Users can customize a keybinds for the tablet and mini-cad.

Navigate to **Settings** > **Keybinds** > **FiveM** and look for the keybinds under the resource `tablet`.

<figure><img src="/files/NaCE4nbf6pvneWkqQoyk" alt=""><figcaption></figcaption></figure>

## Commands

In-game commands can be used to

* `/tablet open` Opens the in-game tablet
* `/tablet size [width] [height]` Resize the tablet to best fit your screen. This size persists on reload of the client.
* `/tablet checklink` Refreshes your account link
* `/tablet refresh` Force-refresh the page when it's not loading properly.
* `/tablet mini open` Opens the mini-CAD
* `/tablet mini help` Displays a list of commands for the mini-CAD
* `/tablet mini prev` Pages to the previous dispatch call on the mini-CAD
* `/tablet mini next` Pages to the next dispatch call on the mini-CAD
* `/tablet mini attach` Attaches to the dispatch call on the mini-CAD
* `/tablet mini detail` Toggles expanded information on the mini-CAD
* `/tablet mini refresh` Manually refresh the call information on the mini-CAD
* `/tablet mini size [width] [height]` Resize the mini-CAD to best fit your screen. This size persists on reload of the client.

<figure><img src="/files/jBMZGqPiYYI6EbHVbiQ2" alt=""><figcaption></figcaption></figure>

## Mini-CAD Usage

The mini-CAD displays as an overlay in-game.

<figure><img src="/files/Gshl0GZylKFYgOjp0OvR" alt="" width="184"><figcaption></figcaption></figure>

#### Move and Close

You can close or move the Mini-CAD by opening the tablet, and interacting with the Mini-CAD window.

#### Controls

* Use the `Left Arrow Key` to display the previous call.
* Use the `Right Arrow Key` to display the next call.
* Use the `K` key to attach or detach to/from the displayed call.
* Use the `L` key to toggle display of the call details.
* **All these commands can be edited from the Keybinds menu.**

## Tablet Usage

<figure><img src="/files/KjfzN0PZG9wTI91qhrz9" alt="" width="375"><figcaption></figcaption></figure>

When in-game, the tablet can be used to view your unit's Sonoran CAD police, fire, ems, or dispatch panel.

The tablet will show your real CAD screen to everyone else nearby when using the [CAD Display submodule](/cad/integration-plugins/in-game-integration/available-plugins/cad-display.md).

## Auto User Link

When a user signs into the CAD using the in-game tablet, their account will be [automatically linked](/cad/integration-plugins/in-game-integration/link-user-in-game.md).

## Known Issues

### Timeout SonoranCAD::mini:CallSync

<details>

<summary>Timeout SonoranCAD::mini:CallSync</summary>

Some users may see `SonoranCAD::mini:CallSync` listed multiple times after recieving a timeout.

When your client recieves a timeout from the server for any reason, it will display a list of the most recent requests. Because Sonoran's Mini-CAD runs frequent sync requests, these will consequenty be displayed.

**This is not an issue with or related to Sonoran CAD**. This is a general timeout between the client and server listing all recent calls as diagnostic information.

![Sonoran CAD Mini - Timeout Debug](/files/vMKgGkACHngCw2i2PbhF)

</details>

### Tablet Showing Grey

<details>

<summary>Tablet Showing Grey</summary>

Some users may get a grey, black or blank screen when using the Sonoran Login method before and then opening the tablet and it just being a grey screen.

To resolve this, close FiveM, then to go to your `FiveM Application Data` folder then to `data` and then delete the `nui-storage` folder.

If you still are having issues reach out to our [support team](https://support.sonoransoftware.com).

![Sonoran CAD Tablet - Blank Screen Issue](/files/6CPaIJaMeE6rHwWJAwJ9)

</details>


---

# 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://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/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.
