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.
This submodule utilizes API endpoints that require the plus version of Sonoran CAD or higher. For more information, view our pricing page.
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 Core
If you haven't already, be sure to install and configure the Sonoran CAD Core first.
2. Activate the Submodule and all Dependencies
Follow the submodule activation guide for the required submodules.
3. Configuration
3a. Main Configuration
callTypeDirectory
Location of the call type JSON file
submodules/calltemplates/calltypes
defaultOrigin
Call origin used if the template does not specify one
Default: 2
Options:
- 0: Caller
- 1: Radio Dispatch
- 2: Observed
- 3: Walk Up
defaultStatus
Call status used if the template does not specify one
Default: 1
Options:
- 0: Pending
- 1: Active
- 2: Closed
defaultPriority
Call priority used if the template does not specify one
1
reloadTemplatesOnEachUse
When true, templates are re-read every command execution (useful while editing files)
false
3b. Call Type 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.
command
String
The name of the command
callTypeFile
String
The name of the associated JSON file for the call type
descriptionPrefix
String
The prefix of the call description
suggestionText
String
The command suggestion text
includeWraithPlate
Boolean
Attach locked plate from wraithv2 if available
includePlayerUnit
Boolean
Attach the player's unit to the call
useAcePermissions
Boolean
Require an ace permission to utilize the command. The ace permission is command.commandName | Ex. comand.ts
3c. 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.
4. Set Your API ID
Don't forget to set your account API ID to properly link your in-game user to the CAD.
Usage
By default, this submodule comes with a /ts (traffic stop) and /towrq (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 x1to the description.Pre-fills the call's address and postal location with your in-game location.
Last updated
Was this helpful?

