# Live Map

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2Fg0BaLWB2Lnsind1iNpBH%2Fmap_promo.png?alt=media&#x26;token=694271ef-9710-4079-b75f-c446174b2a87" alt=""><figcaption><p>Sonoran CAD - Live Map</p></figcaption></figure>

{% hint style="info" %}
This submodule is built into the Sonoran CAD FiveM resource and requires no additional configuration.
{% endhint %}

### 1. 2D Map Selection

In the admin panel, navigate to **Advanced** > **In-Game Integration** > **Live Map**

Here, you can enable and select a default map option for GTA, Roblox, or others. Additionally, pro communities can [upload a custom map](#using-a-custom-map-fivem).

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2Fyng67s5CP6GrYsSueN9I%2FScreenshot%202024-11-08%20at%203.11.55%E2%80%AFPM.png?alt=media&#x26;token=2afd2a00-8f74-483a-8ded-7285042da296" alt=""><figcaption><p>Sonoran CAD - Live Map Type Selection</p></figcaption></figure>

### 2. Set Your API ID

Don't forget to have each community member set their account [API ID](https://docs.sonoransoftware.com/cad/api-integration/getting-started/setting-your-api-id) to properly link their in-game user to the CAD.

### 3. User Access Permission

Users will need to be granted access to view the live map. This can be done via [Discord role sync](https://docs.sonoransoftware.com/cad/integration-plugins/discord-bot-integration), [permission key](https://docs.sonoransoftware.com/cad/tutorials/getting-started/permissions#permission-keys), or by [manually granting permissions](https://docs.sonoransoftware.com/cad/tutorials/getting-started/permissions#manually-granting-permissions) in the admin menu.

### **4. Enjoy!**

In the Police, Fire, EMS, or Dispatch window you can now click the "Live Map" button to view your new live map! Selecting a blip will show it's updated position and unit information.

This is found in the task bar's start menu under **Unit Management** > **Live Map**\
You can also [pin the live map button to your taskbar](https://docs.sonoransoftware.com/cad/tutorials/customization/customizing-your-layout#7-tab-system) for easy access.

{% hint style="info" %}
The live map will only show units that are in your server and also actively logged into the police, fire, or EMS panel in the CAD. Be sure to have your [API ID](https://docs.sonoransoftware.com/cad/api-integration/getting-started/setting-your-api-id) set.
{% endhint %}

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FfoBPOKOZObZAHXVNyuJy%2Fimage.png?alt=media&#x26;token=9435a6ab-9f8e-4fdc-8880-ed8f49e1c860" alt="" width="191"><figcaption></figcaption></figure>

## **Using the Live Map**

### **Map Controls**

#### **Postal and Location Search**

{% hint style="warning" %}
The postal search functionality requires the **Pro** version of Sonoran CAD.

For more information, view our [pricing](https://docs.sonoransoftware.com/cad/pricing/faq) page.
{% endhint %}

With the [postals](https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation/available-plugins/postals) submodule configured, you can manually enter and search for a postal code on the live map.

Units, emergency calls, and dispatch calls with locations will also display a red pin icon. Clicking the icon will open the map and zoom to the location.

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FscV9bF9sjqVqcUwJhYy1%2FRecording%202026-02-26%20121354.gif?alt=media&#x26;token=1d198b87-9982-468d-bebc-865132eceb61" alt=""><figcaption></figcaption></figure>

#### Blip Customization

You can toggle specific blips visibility and outline colors for police, fire, EMS, and dispatch.

![Live Map - Blip Customization](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FsLPhvJ8WQ9sbLw5jp9aH%2Fimage.png?alt=media\&token=238622c3-7221-4c6a-9e0e-0347b5374604)

### **Unit Blips**

Unit blips display the live location of all police, fire, EMS, and dispatch units in-game. You can hover over a unit for brief details, or click on one for more options.

You can also easily filter the map to specific units by selecting them in the active units panel.

![Live Map - Unit Filter](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2Fcvk6YT0YT0WkOi9gVm5t%2Fmap_filter.gif?alt=media\&token=0ce9170f-e142-444a-9b3c-7220d2d58c2a)

#### Menu Options

Clicking on a unit blip allows you to add the unit to a call, add the unit to a group, send the unit lookup results, edit the unit's information, toggle their panic state, and more.

![Live Map - Unit Blip Options](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2F9Eip2pv1TcRfamGgAJm1%2Fimage.png?alt=media\&token=e6964a43-3aad-48b1-aedd-d07ced2d1d5e)

#### Drag-and-Drop

{% tabs %}
{% tab title="Roblox 2D" %}
Unit Blips Support:

* Drag to the call editor
* Drag to an active call
* Drag to a unit group
* Drag to the unit group header to create a new group
* Drag to the lookup window or minimized tab
* Drag to the timer window or minimized tab
* Drag to the tone board window or minimized tab
  {% endtab %}

{% tab title="FiveM 2D" %}

* Drag-and-drop an ERS Callout
* Drag-and-drop a dispatch call to a location
* Drag-and-drop a dispatch call to the editor
  {% endtab %}

{% tab title="FiveM 3D" %}

* Drag-and-drop an ERS Callout
* Drag-and-drop a dispatch call
  {% endtab %}
  {% endtabs %}

### Emergency Call Blips

Emergency calls placed in-game will also appear on the live map. You can hover over the blip for the call details.

#### Menu Options

Clicking on the emergency blip allows you to import the call to your editor or remove the emergency call.

![Live Map - Emergency Call Blip](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FBRsB7pNGz9FuE9WjrVye%2Fimage.png?alt=media\&token=a891bb98-3d49-4b50-a2a2-5b1a333ca629)

### Smart Sign Blips

[Smart signs](https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation/available-plugins/smart-signs) will also appear as blips on the map. You can click on these to edit the signs in-game.

![Live Map - Smart Signs](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FreA8OFHWhvcneGktpZlQ%2Fimage.png?alt=media\&token=85929450-31e2-4a02-9188-da131998729d)

## FiveM Custom Map

{% hint style="danger" %}
This feature requires the **pro** version of Sonoran CAD.\
For more information, view our [pricing](https://docs.sonoransoftware.com/cad/pricing) page.
{% endhint %}

Sonoran CAD allows communities to upload custom map images to the integrated, hosted live map. If your community does not use one of the map types provided, you can upload the images manually.

<details>

<summary>Extract Images</summary>

Extract the images from the YTD files with a program like OpenIV.\
**You will need six files named exactly as follows:**\
`minimap_sea_0_0.png`\
`minimap_sea_0_1.png`\
`minimap_sea_1_0.png`\
`minimap_sea_1_1.png`\
`minimap_sea_2_0.png`\
`minimap_sea_2_1.png`

![OpenIV - Extract Images](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4pGN81fb4R6zFhodcu%2F-MRvn6qizfxTQPcqrdSk%2F-MRvof1xjMlUMUYpHVfk%2Fimage.png?alt=media\&token=09cfd9eb-7001-4fc7-abd7-824e21b8bde5)

![OpenIV - Save Images](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4pGN81fb4R6zFhodcu%2F-MRvn6qizfxTQPcqrdSk%2F-MRvokn9iWuW34CIH-pR%2Fimage.png?alt=media\&token=a79309aa-fe78-4a96-b156-ac9d3150cbfa)

</details>

<details>

<summary>Upload Images</summary>

Navigate to Admin > Advanced > In-Game Integration > Live Map and Push Events\
Select "Upload Custom" and upload all six correctly named files.

![Live Map - Custom Map Uploader](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4pGN81fb4R6zFhodcu%2F-MRvn6qizfxTQPcqrdSk%2F-MRvpLt01Ox4owEPe6Go%2Fimage.png?alt=media\&token=2224c68e-4752-4b0d-b0a5-9cb20d38d767)

</details>

<details>

<summary>File Size</summary>

Custom map images are limited to 30MB each. **However, if you are uploading more than 100MB of images total, you will need to upload in separate batches.**

</details>

### Roxwood Expansion

<details>

<summary>Roxwood Expansion</summary>

If your community is utilizing the Roxwood map expansion, there will be additional tiles to upload.

* `minimap_sea_-1_-1.png`
* `minimap_sea_-1_0.png`
* `minimap_sea_-1_1.png` (Optional, blank tile to the right)

Additionally, two existing map tiles will need to be updated, as they contain parts of both the main island and the Roxwood expansion.

* `minimap_sea_0_-1.png`
* `minimap_sea_0_0.png`
* `minimap_sea_0_1.png`

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FFsmarnds2GDZ9pKkSWKb%2FDiagram.png?alt=media&#x26;token=cc598f22-d3d9-4f25-8f5c-5285a1a7a876" alt=""><figcaption></figcaption></figure>

</details>

### Cayo Perico Expansion

<details>

<summary>Cayo Perico Expansion</summary>

If your community is utilizing the Cayo Perico map expansion, there will be extra tiles to upload. Ensure these are named as:

* `minimap_sea_2_1.png`&#x20;
  * Bottom right of the main island + top right of Cayo Perico
* `minimap_sea_2_2.png`&#x20;
* `minimap_sea_3_1.png`&#x20;
* `minimap_sea_3_2.png`&#x20;

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FyBd2yK6C0HwaXDFWByeY%2Fimage.png?alt=media&#x26;token=03881737-9c9d-4245-ad42-ad9bd744187b" alt="" width="375"><figcaption></figcaption></figure>

</details>

## Roblox Custom Maps

{% content-ref url="../../../erlc/3d-live-map" %}
[3d-live-map](https://docs.sonoransoftware.com/cad/integration-plugins/erlc/3d-live-map)
{% endcontent-ref %}

## Troubleshooting

### 3D Live Map not Loading

The 3D live map uses WebGL, an open source something.

In Chrome, navigate to `chrome://gpu/` and check if `WebGL` is **Disabled**. If so, try the following steps:

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FvHCJu8Q29SEZkx50Pym6%2Fimage.png?alt=media&#x26;token=5cb6eb77-c23d-4f13-bceb-0b49e9b90659" alt="" width="316"><figcaption></figcaption></figure>

* **Chrome** > **Settings** > **System** > **Use Graphics Acceleration When Available**
* Ensure Graphics Drivers are Up-to-Date
* Fully restart your web browser
