Giter Club home page Giter Club logo

shotspotter's Introduction

ShotSpotter - Gunshot Detection System

ShotSpotter

๐Ÿ“‘ Description

This is a simple standalone ShotSpotter script made for FiveM.

The script will detect when gunshots are fired and will put out a sound and text alert to all of the Law Enforcement patrol vehicles with an approximate location. No permissions are being used, you just have to be inside a police car to receive the gunshot alert.

To be realistic, the ShotSpotter has a default delay of 20 seconds to put out an alert after gunshots are detected.
Throwables, melees, fire extinguishers, stunguns, flareguns, and suppressed weapons won't be detected by the ShotSpotter.
These last two parameters can be configured in the config.lua as well as a couple of other options (see config options).

๐Ÿ’ก Features

  • Simple and clean
  • Highly customizable
  • Sound effect
  • Animated map blip
  • Suppressed weapons won't be detected
  • Ability to blacklist weapons

๐Ÿ‘€ Preview

Video demo

Youtube

Gunshot alerts

gunshot alert 1 gunshot alert 2

Map blip

map blip

Config options

config options

๐Ÿ“Š Resmon

Context CPU
Idle 0.03 ms
Peak 0.04 ms

๐Ÿ“ฅ Installation

  • Rename the folder from ShotSpotter-main to ShotSpotter
  • Drag the folder to your server resource folder
  • Add start ShotSpotter or ensure ShotSpotter to your server.cfg

โœ… Changelog

v1.4

  • Added version checker

v1.3

  • Removed useless AddEventHandler
  • Used pre-hashed string to remove GetHashKey
    (Thanks to Ekinoxx0)

v1.2

  • Reduced resource impact on performance (0.26ms to 0.08ms)

v1.1

  • Updated InvokeNative to the actual Get StreetNameAtCoord native
  • Replaced outdated GetPlayerPed with PlayerPedId
    (Thanks to MichaelCoding25)

v1.0

  • Initial Release

shotspotter's People

Contributors

ekinoxx0 avatar lama-development avatar mehdi-mmo avatar michaelcoding25 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shotspotter's Issues

[Recommendation] Multi Map Postal Support

Amazing script but could you possibly add support for postals as well? Would really take it to that next level you could also added a new section in the config.lua for different postal maps ex: New Postals = true/false, Old Postals true/false. Either way wonderful script thank you for this!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.