Skip to main content
Sonoran CAD x ERS

What is Emergency Response Simulator?

Emergency Response Simulator is a paid, third-party script for FiveM. This advanced (co-op) PVE roleplay game mode simulates emergency service calls, where you as emergency service worker have to respond to. Whether you are a medic, firefighter, tow service operator or police officer, there is always something to do. With finetuned callouts you’ll never get bored of driving around in your service vehicle. Rush to high-priority, dangerous calls, or handle routine tasks like warning a speeder. Each callout is unique, with random outcomes that keep you curious and engaged every time you respond to an emergency. ERS can be purchased from Nights Software.

Activation Guide

  1. Download and Install the Resource

This submodule is included with the Sonoran CAD FiveM resource. Enable it using the configuration step below.
Night ERS 1.8.16 or newer is required. Start night_ers before sonorancad where possible. If ERS starts later or is restarted, the integration reconnects automatically.

  1. Adjust the Configuration

Open sonorancad/configuration/ersintegration_config.lua and set enabled = true, then restart sonorancad after saving your changes. The main options are whether to create 911 calls (create911Call), create dispatch calls when players accept ERS callouts (createEmergencyCall), and automatically attach additional accepting units (autoAddCall).

  1. Ensure Players are Linked

Players must link their CAD account and have an active CAD unit before accepting callouts. To receive ERS callouts assigned from CAD, they must also be on an ERS shift with a service selected.

  1. Update CAD Record Templates

The ERS submodule comes with three record templates (character, license and vehicle registration). Importing and using these record templates will ensure ERS callout character, license, and vehicle registration records are automatically generated. These records can be located in the /sonorancad/submodules/ersintegration/SonoranCAD Records directory. ERS Integration - SonoranCAD Custom Records
The Civilian and Vehicle Registration are default records. If you’ve modified them, it’s recommended to replace them with the provided versions to ensure proper data import.
To import in Sonoran CAD, navigate to Admin -> Customization -> Custom Records -> Import.
Open each JSON file and copy/paste the contents into the CAD.
Sonoran CAD - Import Record

  1. Check the Connection

Run sonorancad ers in the server console. It shows whether ERS is running, whether its callout list has reached CAD, and the reason for the most recent failure. Check that the integration is running and the callout catalog says synced to CAD before testing callouts from the live map. If a check fails, use the troubleshooting steps below. The integration retries loading and sending the callout list automatically.

Configuration

ERS Integration is highly configurable to allow for custom records and calls. All default configuration will work with the provided CAD records seamlessly. It is only recommended to edit if you are experienced with custom records.

Default Configuration

Configuration Values

Features

Live Map Callout Generation

Dispatchers can use the live map to create a new ERS callout at a specific location. Drag-and-drop the ERS icon from the toolbar to a location on the map. Clicking the new ERS map icon will allow you customize the callout and settings. Sonoran CAD: ERS Callout Creation

Record Lookups

Use ERS to request a person’s information or a vehicle’s information. When ERS returns that information, the integration creates the corresponding CAD records for lookups. Accepting a callout alone does not create every person and vehicle record for that call.

Automatic Call Generation and Assignment

ERS to CAD

  1. With create911Call enabled, an ERS callout offer creates a mapped 911 call in CAD.
  2. A linked player with an active CAD unit accepts the callout inside ERS.
  3. With createEmergencyCall enabled, Sonoran CAD creates the dispatch call and attaches that player’s unit. With autoAddCall enabled, additional players who accept the same callout are attached to that call too.
Using /dn respond on a Sonoran dispatch notification does not accept the callout inside ERS. Use ERS’s own callout controls to accept it.

CAD to ERS

  1. A dispatcher attaches another online unit to that ERS-generated dispatch call in Sonoran CAD.
  2. The integration sends the matching callout to that player’s ERS session.
  3. The player can see and continue the callout in-game.
This only applies to dispatch calls generated by the ERS integration. The player must be online, linked to Sonoran CAD, and on an ERS shift with a service selected.

Call Locations and Postals

ERS calls use your Sonoran CAD postals when available, including custom postal files. If that lookup is unavailable, the integration tries your postal resource when using resource mode, then a postal supplied by ERS. A call can still be created with Unknown postal if none are available. If postals differ between CAD and the game, check that the CAD postal settings use the map data your community expects.

Troubleshooting

Start with sonorancad ers in the server console. It shows enabled features, connection status, callout-list status, and the last failure so you can check the part that is failing. If the issue continues, give Sonoran support the action that failed and the error code shown. When support supplies an ID, run sonorancad support <id> in the server console. The report includes ERS connection and failure details. Support may also request sonorancad getclientlog <playerId> for a player who did not receive a callout.

Limitations

Database Sync

When a community uses database sync, all record lookups run against that community’s external database. The ERS integration automatically creates characters and vehicles in the CAD database through the API, so these records must be included alongside the external database results. To enable this, turn on Include CAD API records in DB Sync lookups.