> For the complete documentation index, see [llms.txt](https://docs.sonoransoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/link-user-in-game.md).

# Link User In-Game

## Linking FiveM to Sonoran CAD

Sonoran CAD requires players to link their in-game identity to a CAD account in order to match units and other integration features correctly.

Players can do this by running the `/link` command in-game and selecting the **Link CAD** button. This opens an external browser to `sonorancad.com/id`, where the link code is automatically applied.

<div><figure><img src="/files/9hcghJkfBe6gDFwSGeEU" alt=""><figcaption></figcaption></figure> <figure><img src="/files/mdI8ntLulNF6uQ1ZwwS6" alt=""><figcaption></figcaption></figure></div>

<details>

<summary>Developer Information</summary>

Once completed, the player’s FiveM license ID (or the configured `primaryIdentifier`) is associated with the `communityUserId` field via the API.

Learn more about [mapping players to CAD users](/cad/api-integration/getting-started/setting-your-api-id.md).

</details>

### Enforce Player Links

Communities can optionally configure the [**Force Register**](/cad/integration-plugins/in-game-integration/available-plugins/forcereg.md) submodule to help remind, or even force, users to link their CAD before playing.

The [tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet.md) can also be used to automatically link the user when they login.


---

# 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.sonoransoftware.com/cad/integration-plugins/in-game-integration/link-user-in-game.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.
