# Getting Started

## Linking your ER:LC Server

### 1. Create an ER:LC API Key

<details>

<summary>ER:LC API Key</summary>

ER:LC grants API access as a paid upgrade.

Once in-game, select the **Menu** button at the top right > **Servers** > **Owned Servers** > Select your private server > **Upgrade Packs** > **API Pack**.

<div><figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2Fl1K8RQdtsZ6UyYZ56r6g%2Fimage.png?alt=media&#x26;token=39e6342c-87dd-40af-9fb7-c343d8111cf9" alt=""><figcaption></figcaption></figure> <figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FsjVMsHBYKCAsCzSQZaG7%2Fimage.png?alt=media&#x26;token=9db7ddea-de26-4fe5-8ab2-32fe49e72348" alt=""><figcaption></figcaption></figure></div>

Once in your private ER:LC server, open the **Server Info** tab.

Select **Edit Server Settings** > Navigate To **ER:LC API** > Select **Edit** to Copy.

<div><figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FCEsVp9iFSTfnZTVPx5Vj%2Fimage.png?alt=media&#x26;token=7cd11156-d6ba-44ac-b555-7ce006aec64f" alt=""><figcaption></figcaption></figure> <figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FGk6rI9KmAOI6GLnDkdkM%2Fimage.png?alt=media&#x26;token=8269a4b6-1819-476a-b22f-0b3b42154eb5" alt=""><figcaption></figcaption></figure> <figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FyNcGcOAY6UoiEBTT8W8Q%2Fimage.png?alt=media&#x26;token=f1167a78-4dfa-400f-93c9-f7223621c18b" alt=""><figcaption></figcaption></figure></div>

</details>

### 2. Link ER:LC to Sonoran CAD

<details>

<summary>Linking ER:LC to Sonoran CAD</summary>

In the CAD, navigate to **Admin** > **Advanced** > **In-Game Integration** > **ER:LC**

Paste your **ER:LC API Key** into your configured server.

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FUG7vAlHumZd8SfBfjq9L%2Fimage.png?alt=media&#x26;token=d742016d-df60-4e93-a66d-2de9d8c3b5e1" alt=""><figcaption></figcaption></figure>

</details>

### 3. Link ER:LC Event Webhooks to Sonoran CAD

<details>

<summary>Link ER:LC Event Webhooks to Sonoran CAD</summary>

ER:LC sends Sonoran CAD events for custom commands like traffic stops and vehicle registrations. Additionally, in-game events for robberies, fires, etc. are also sent.

1. Open the **Server Info**
2. Select **Edit Server Settings**
3. Under **ER:LC API** > **Event Log Webhook** > **Edit**
   1. Paste: `https://events.sonoransoftware.com/erlc`

<div><figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FRaZzoo7zLXth5fzuPdUM%2Fimage.png?alt=media&#x26;token=adbc4c19-a58a-40e3-8bef-1c14f42f24b6" alt=""><figcaption></figcaption></figure> <figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2F3ot1wFhJuKEpnXd9nAMN%2Fimage.png?alt=media&#x26;token=736c1a47-70a5-4f0a-a21f-241c2f340f6a" alt=""><figcaption></figcaption></figure> <figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FkA4m1xWwu6h4swDxuSZ6%2Fimage.png?alt=media&#x26;token=d20a1768-4dcf-490a-af86-554fc6771c2f" alt=""><figcaption></figcaption></figure></div>

</details>

## Linking your Roblox Account

Players must link their Roblox account to their Sonoran account in order to use in-game integrations.

Once linked, the Sonoran account can be used for ER:LC integrations across Sonoran CAD, CMS, and radio.

<details>

<summary>Linking Roblox to Sonoran</summary>

If a user in an ER:LC linked community does not have their Roblox account linked, a red banner will display at the top of the screen. Press the **Link** button to redirect to Roblox and link your account.

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FByZC69xwejwVRJL7zBoe%2Fimage.png?alt=media&#x26;token=ebddc802-8f97-49b1-82dc-3c6043fd769b" alt=""><figcaption></figcaption></figure>

Pressing **Link** will open up a window to login and link with Roblox:

<figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FJqqzGNHyrEgPC9DKIXU7%2Fimage.png?alt=media&#x26;token=d49102de-0b9d-48d7-93ea-05373fbc5193" alt=""><figcaption></figcaption></figure>

Once linked, refresh and you're finished!

</details>
