911 Script for Community CAD
- Download the Latest Version
- Rename the folder to
cc-911 - Drag Into your
resourcesFolder - Start
cc-911
The resource includes one config file to get you up and running!
nearestPostalResourceName: Name of your Nearest Postal Folder Name (Example:nearest-postal)cadURL: The URL of your CAD (Example:https://community.communitycad.app)api_key: Your CAD API KeyenableDispatcherCheck: Enable or disable dispatcher checking (trueorfalse)enableAttachDetach: Enable or disable attach and detach commands (trueorfalse)messages: Custom messages for different scenarioscallerReceived: Message sent to the caller when the call is receivedcallerError: Message sent to the caller if there is an errordispatcherMessage: Message format for dispatch notifications
colors: Custom colors for messagescallerReceived: Color for the caller received message (RGB format)callerError: Color for the caller error message (RGB format)dispatcherMessage: Color for the dispatcher message (RGB format)
nearest-postal: This resource is required to obtain the nearest postal code. Ensure it is installed and running on your server for the postal code feature to function properly.
To report an incident, use the /911 command followed by a description of the incident. For example:
/911 There is a fire at my location
If you are an active unit, you can attach to a call using the /attach command followed by the call ID. For example:
/attach 2400025
If you are an active unit, you can detach from a call using the /detach command followed by the call ID. For example:
/detach 2400025
When enableDispatcherCheck is set to true, the script will check if a dispatcher is active before processing a 911 call. If a dispatcher is active, the call will only be sent to the CAD system. If no dispatcher is active, the call will be sent to the CAD system and also notify active units in the game.
- When a 911 call is made, the script checks if dispatcher checking is enabled.
- If enabled, it makes an API request to check for active dispatchers.
- If a dispatcher is active, the call is sent to the CAD system.
- If no dispatcher is active, the call is sent to the CAD system and active units are notified in the game.
- The caller is always notified that their call has been received, regardless of the dispatcher status.
By using this feature, you can ensure that 911 calls are handled appropriately based on the availability of dispatchers.