Skip to main content

Call Templates

This submodule lets communities export custom dispatch call templates from the CAD, define a custom in-game command, and generate dispatch calls using that command.

Activation Guide

  1. Download and Install the Resource

This submodule is already enabled by default when installing the Sonoran CAD FiveM resource.
The locations submodule includes required logic to send location data and is already enabled by default. Keep this submodule enabled to maintain functionality.

The postals submodule is optional and also enabled by default. Keep this submodule enabled if you wish to include postal code information with emergency calls.

  1. Adjust the Configuration

The CAD display settings are stored inside of the /configuration/calltemplates_config.lua file.

  1. Ensure Players are Linked

Ensure the player has already linked their CAD for this integration to work.

Configuration

In the calltemplates_config.lua file you will find a section named commands . In here, you can configure each custom command that will be used to create a call. Below you will find the options you can use during configuration.

ACE Permissions

The shipped commands entries enable useAcePermissions, so grant the exact command nodes to a role that should be able to create those calls:
The node follows the configured command value. If useAcePermissions is omitted, the current resource defaults the registration to restricted; setting it to false removes the command ACE requirement for that entry.

c. Add Call Type JSON Files

Each call type requires a JSON file to be added to the directory submodules/calltemplates/calltypes. You can either configure this file yourself or you can download it from Sonoran CAD. This guide will explain how to create and export call types.

Usage

By default, this submodule comes with a /ts (traffic stop) and /towreq (tow request) commands. Example: /ts Blue four door sedan, occupied x1
  • Creates a dispatch call with the presets for a traffic stop.
  • Adds Blue four door sedan, occupied x1 to the description.
  • Pre-fills the call’s address and postal location with your in-game location.