> 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/available-plugins/locations.md).

# Unit Locations

The Unit Locations submodule automatically sends a unit's current street, coordinates, vehicle type, and emergency-light state to Sonoran CAD. Dispatchers and other supported CAD panels can then see the unit's current location.

This submodule is included with the core Sonoran CAD FiveM resource and is enabled by default. Players only need to [link their in-game user to Sonoran CAD](/cad/integration-plugins/in-game-integration/link-user-in-game.md). No separate installation is required.

## Automatic Street Names

By default, the integration uses FiveM's native street-name lookup. Standard GTA street names work automatically.

Some custom HUD resources replace FiveM's game-wide text entries with their custom street names. These custom names also work automatically because the native lookup returns the updated name.

Other HUD resources keep custom names inside their own configuration. Those names are only visible to that HUD and cannot be detected automatically by other resources. For these HUDs, copy the HUD's street hash and name pairs into the Unit Locations configuration.

## Custom Street Names

Open `/sonorancad/configuration/locations_config.lua` and enable `customStreetNames`. Add the same hash and display-name pairs used by your HUD:

```lua
customStreetNames = {
    enabled = true,
    names = {
        [0xAC9F694E] = "Custom Freeway Name",
        ["0x10A6E7C9"] = "Custom Street Name"
    }
}
```

Both the primary street and the nearest crossing can be replaced. Numeric hashes, signed decimal hashes, and quoted hexadecimal hashes are supported.

If a street hash is not listed, the integration falls back to the normal FiveM street name. If `customStreetNames` is disabled or is not present in an older configuration file, unit locations continue working normally with native street names.

{% hint style="info" %}
If your HUD has an option to update custom names game-wide or update game text entries, enable that option instead. The Unit Locations submodule will then receive those names automatically, without duplicating the list in both configurations.
{% endhint %}

## Configuration

| Option                      | Description                                                                            | Default  |
| --------------------------- | -------------------------------------------------------------------------------------- | -------- |
| `clientCheckTime`           | How often the client checks whether location data changed.                             | `250` ms |
| `prefixPostal`              | Prefixes the location with the nearest postal when the Postals submodule is available. | `true`   |
| `customStreetNames.enabled` | Enables the custom street hash override list.                                          | `false`  |
| `customStreetNames.names`   | Maps FiveM street hashes to custom display names.                                      | Empty    |


---

# 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/available-plugins/locations.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.
