Dispatch Notify
Notify officers of incoming calls, allow them to attach to them, notify the caller, and route units via GPS in real-time to calls and the lead pursuit officer...all in one!
This submodule utilizes API endpoints that require the plus version of Sonoran CAD or higher. For more information, view our pricing page.
Looking for VPS, web, or dedicated hosting? Check out our official server hosting!
This submodule:
Notifies officers of incoming calls
Automatically routes attached units to the postal code
Unit GPS routing is updated whenever the dispatch postal is updated
Notifies the civilian making the emergency call when an officer is en-route.
Video Showcase
Check out our video showcase of this submodule here.
Activation Guide
1. Download and Install the Core
If you haven't already, be sure to install and configure the SonoranCAD Core first.
2. Activate the Submodule and all Dependencies
Dispatch Notify requires you to enable the following submodules:
callcommands
locations
postals
3. Add your Game Server IP and Port
Be sure to have your game server IP and port set in the admin panel under Advanced
> In-Game Integration
> Server Events and Integrated Live Map
4. Set Your API ID
Don't forget to set your account API ID to properly link your in-game user to the CAD.
5. Configuration
Review the dispatchnotify_config.lua
file to configure the submodule to behave how you like. The file is well documented. Please review all the settings!
Commands
/rcall
Respond/Attach to the new dispatch call
/togglegps
Toggle the GPS auto-lock when dispatch updates the postal code
Configuration
enableUnitNotify
Enable incoming 911 call notifications
emergencyCallType
Specifies what emergency calls are displayed as. Some countries use different numbers (like 999)
civilCallType
Specifies non-emergency call types. If unused, set to blank ("")
dotCallType
Some communities use 511 for tow calls. Specify below, or set blank ("") to disable
respondCommandName
Command to respond to calls with
enableUnitResponse
Enable call responding (self-dispatching)
If disabled, running commandName will return an error to the unit
dispatchDisablesSelfResponse
If a dispatcher is detected to be online, automatically disable the response command.
enableCallerNotify
Enable "units are on the way" notifications
unitNotifyMethod
chat: Sends a message in chat
pnotify: Uses pNotify to show a notification
custom: Use the custom event SonoranCAD::dispatchnotify:IncomingCallNotify
instead (Provides single parameter) - The message.
notifyMessage
NotifyMessage: Message template to use when sending to the player
You can use the following replacements:
{officer} - officer name
incomingCallMessage
How should officers be notified of a new 911 call? Parameters: {location} - location of call (street + postal) {description} - description as given by civilian {caller} - caller's name {callId} - ID of the call so LEO can respond with /r911 {command} - The command to use
unitDutyMethod
How to detect if units are online? incad: units must be logged into the CAD permissions: units must have the "sonorancad.dispatchnotify" ACE permission (see docs) esxjob: requires esxsupport submodule, use jobs instead for on duty detection custom: Use custom function (defined below as unitDutyCustom)
esxJobsAllowed
What jobs should count as being on duty?
waypointType
Customise the title of a call made in the CAD postal: set gps to caller's postal (less accurate, more realistic) - REQUIRES CONFIGURED POSTAL SUBMODULE exact: set gps to caller's position (less realistic) none: disable waypointing
waypointFallbackEnabled
Fall back to postal if exact coordinates cannot be found (for self-generated calls)
callTitle
Type of waypoint to use when officer is attached Default: OFFICER RESPONSE
sendNotesToUnits
Enable "the sending of notes to units" notifications
noteNotifyMethod
chat: Sends a message in chat
pnotify: Uses pNotify to show a notification
custom: Use the custom event SonoranCAD::dispatchnotify:NewCallNote
instead (Provides single parameter) - The message.
notifyMessage
NotifyMessage: Message template to use when sending to the player
You can use the following replacements:
{callid} - The CAD Call ID
{note} - The Note Added
enableAddNote
Enable "the adding of the notes" notifications
addNoteCommand
Command to add notes to a call with
enableAddPlate
Enable "the adding of plates that are locked" notifications - REQUIRES CONFIGURED WRAITHV2 SUBMODULE
addPlateCommand
Command to add plates to a call with
Dispatch Call Responding
1. Civilian Places a 911 Call
This call can be placed from the Civilian menu of the CAD, or via the /911
command in-game, supplied by the callcommands submodule.
2. Officer Attaches to the Call
All on-duty officers get a notification (if configured) and can use the attach command to respond to the call.
A. Call Attach Command
By default, this command is /rcall <callid>
, where callid is the ID shown in the call notification.
B. GPS Toggle Command
Units can optionally choose to disable the postal updating when dispatch updates the call (or primary unit tracking) by using the /togglegps
command. This is a toggle and will be shown in chat what it gets changed to. This is ON
by default.
Primary Unit Tracking (Pursuit)
Dispatch notify can also be used to track the primary unit on a call. This will auto route attached units via GPS to the primary unit in real-time. Additionally, the postal code on the call will be continually updated for dispatchers to easily view. This is highly useful for pursuits, where additional units need to catch up and join the chase.
1. Toggle Unit Tracking for the Primary Unit
A. Via the CAD UI:
Dispatchers can set the primary unit to any unit currently attached to the call. The slider next to the Primary Unit box will toggle tracking mode. When enabled, the postal will automatically update based on the primary unit's location and be sent to all attached units.
A unit can also designate themselves as primary, but only if Self Dispatch is enabled.
Troubleshooting
No notifications for 911 calls
Units must be logged into the CAD (by default) or meeting the requirements depending on how the submodule is configured.
If using pNotify notifications, ensure that resource is running.
Units do not automatically attach to calls
Ensure their API ID is set so the server knows who they are.
Caller is not notified when units attach to the call
If the caller ever leaves the server and rejoins, this feature does not work.
If dispatch created the call within the CAD, there is no way to notify a caller.
Ensure you are not overriding the 911 command (default
/911
) with another resource.
Last updated