# Shot Spotter

![Sonoran Software - Shot Spotter Promotional Image](https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-136497ea8262fd7acbc28742d8ef91eaa9cb2739%2Fss-final.png?alt=media)

{% embed url="<https://www.youtube.com/watch?v=ng12Pimxev0>" %}
Sonoran Software - Shot Spotter Promotional Video
{% endembed %}

## Shot Spotter

### Features

* Ability to operate standalone
* Support for AcePerms, ESX, QBCore, and custom permissions systems

<figure><img src="https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-2fc7e513b222e966351eb23be1351597b52dca53%2Fss-cad-integration.png?alt=media" alt=""><figcaption><p>Sonoran Software - Shot Spotter Promotional Image</p></figcaption></figure>

<figure><img src="https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-059f856f4f13e09caebc84f63dae5a89b108a751%2Fss-in-game-blips.png?alt=media" alt=""><figcaption><p>Sonoran Software - Shot Spotter Promotional Image</p></figcaption></figure>

<figure><img src="https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-d5ad55ad26c185a409a5b6b0c7255d38458b8628%2Fss-gun-placement-system.png?alt=media" alt=""><figcaption><p>Sonoran Software - Shot Spotter Promotional Image</p></figcaption></figure>

<figure><img src="https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-f2351037ac34910992e7235ef8689f5a256a06fd%2Fss-discord-webhooks.png?alt=media" alt=""><figcaption><p>Sonoran Software - Shot Spotter Promotional Image</p></figcaption></figure>

<figure><img src="https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-cf90c38ea1ecf7f98828f74d88ddef6dc72fccf2%2Fss-translate-feature.png?alt=media" alt=""><figcaption><p>Sonoran Software - Shot Spotter Promotional Image</p></figcaption></figure>

<figure><img src="https://954277862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA1LA3ay59CDyDKnfXPfc%2Fuploads%2Fgit-blob-3d771eeb392778ad8df2fca70773564524ff7f62%2Fss-highly-configurable.png?alt=media" alt=""><figcaption><p>Sonoran Software - Shot Spotter Promotional Image</p></figcaption></figure>

### Commands

| Command Name              | Command Description                                                                                                 | Required Permission  |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------- |
| `/shotspot`               | This command will toggle the user's shot spotter status, either enabling or disabling shot spotter alerts and blips | LEO or as configured |
| `/showspotterid`          | Show the ID above the shot spotters                                                                                 | Admin                |
| `/showspotterpos`         | Show the position of the shot spotters                                                                              | Admin                |
| `/changepositiondata`     | Change the position data of the shot spotter                                                                        | Admin                |
| `/reloadspotters`         | Reload all spotters and positions                                                                                   | Admin                |
| `/spawnnewspotter`        | Activate the placement gun [SEE HERE](https://docs.sonoransoftware.com/store/general/gun-placement)                 | Admin                |
| `/cancelspotterplacement` | Cancels the placement gun                                                                                           | Admin                |
| `togglespotter`           | Toggle the spotter with the specified ID                                                                            | Admin                |

### Changelog

#### v1.3.1

**Bug Fix**

* `Fixed "TRIGGER_CLIENT_INTERNAL" bug on player joining`

#### v1.3.0

**Feature**

* `Add postals to shot spotter 911 calls`

#### v1.2.9

**Improvements**

* `Handle pole breaking and disabling of spotters`

#### v1.2.8

**Hotpatch**

* `Add restart handling to prevent crashing`

#### v1.2.6

**Bug Fixes**

* `Fixed bug creating multiple 911 calls for single shooting event`
* `Fixed blips not going away when toggling off shot spotting`
* `Fixed core shot spotter not sending alerts to ALL on duty officers`
* `Fixed core shot spotter sending alerts to shooting source`

**Refactor**

* `Added discord.lua config file for security`
* `Removed Discord configuration from config.lua for security`
* `Update FxManifest.lua to only pass discord.lua to server side`
* `Revamped config.lua file (See key changes below)`
* `Move Utilities to shared scripts`
* `Optimize CAD API calls`
* `Remove reduntant/ unused loops and threads`

**`config.lua` Changes**

* `Moved network_latency, notifications, commands, check_dispatch to standalone sections`
* `Changed notifications.type to be string | Available types: native, pNotify, okokNotify`
* `Remove all Discord options`
* `Bump version to 1.3`

#### v1.2.5

**Hotpatch**

* `Fixed a startup failure when the Sonoran CAD integration option was disabled`

#### v1.2.4

**Hotpatch**

* `Fixed QB Core & ESX permissions on "spawnnewspotter" command`
* `Change deafult values for webhooks to false`

#### v1.2.2

**Hotpatch**

* `Fixed notifications not working on spotter alerts`

#### v1.2.1

**Hotpatch**

* `Fixed Livemap Icons`

#### v1.2.0

**Bugfixes, Improvements & Features**

* `Disabling of Shot Spotters`
* `"Network Time" / "Latency"`
* `QB/ ESX Admin Permissions`
* `Standalone Option`
* `Livemap Radius`
* `Powergrid Integration`
* `Dispatcher Check`
* `Separate Webhook Options`
* `OkOk Notify/pNotify Integration`
* `Numerous Bug Fixes`

#### v1.1.0

**Bugfixes and Improvements**

* `Fixes CAD livemap bugs, typos & more misc. bugs`

#### v1.0.0

* `Inital Release`
