LogoLogo
Sonoran StoreSupportSonoran ONEServer Hosting
  • 🏠Home
  • General
    • â„šī¸Information
    • ✅Accessing Tebex Assets
    • đŸ”ĢGun Placement System Guide
  • đŸ’ĨFive Bundle
  • Resource Documentation
  • 🏧ATM Robbery
    • Getting Started
    • Advanced Documentation
  • 📸Evidence Camera
    • Getting Started
    • Advanced Documentation
  • 🚛Mobile Command Center
    • Getting Started
    • Advanced Documentation
  • ⚡Power Grid
    • Getting Started
    • Advanced Documentation
  • đŸ“ļRadar Detector / Jammer
    • Getting Started
  • 📟Radar Display
    • Getting Started
  • đŸ“ģRadio Display
  • đŸ”ĢShot Spotter
    • Getting Started
    • Shot Spotter - Advanced Documentation
  • đŸ›Ŗī¸Smart Signs
  • 📹Speed Cameras / ALPR
    • Getting Started
    • Advanced Documentation
  • Our Products & Links
    • đŸ–Ĩī¸Sonoran CAD
    • đŸ—ƒī¸Sonoran CMS
    • đŸ“ģSonoran Radio
    • đŸ—„ī¸Sonoran Servers
    • 👨‍đŸ’ģSonoran Software Website
    • âš”ī¸Sonoran Discord Server
    • đŸ’ŦCustomer Support
  • Other
    • 📜Terms and Policies
Powered by GitBook
On this page
  • Sonoran Shot Spotter - Advanced Documentation
  • Developer Documentation
  • Example Handler

Was this helpful?

Edit on GitHub
  1. Shot Spotter

Shot Spotter - Advanced Documentation

Developer Documentation and other Advanced Configuration Topics for the Shot Spotter system.

Sonoran Shot Spotter - Advanced Documentation

Developer Documentation

When a shot spotter is triggered it will fire the following event:

Sonoran:ShotSpotter:Server

This event will pass the following data:

Index
Description
Example

serverid

The server ID of the player that triggered the spotter

43

street

The name of the closest street to the spotter

Vespucci Blvd.

spotter

The array of spotter data

See below

Spotter Data

Index
Description
Example

Label

The label (name) of the spotter

Grove St.

Disabled

The state of the shot spotter

false

ID

The ID of the shot spotter

2

Position.x

The X coordinate

326

Position.y

The Y coordinate

1200

Position.z

The Z coordinate

128

Rotation.pitch

The pitch value

12

Rotation.roll

The roll value

6

Rotation.yaw

The yaw value

177

Example Handler

AddEventHandler("Sonoran:ShotSpotter:Server", function(serverid, street, spotter)
    print("player: " .. serverid .. " triggered shot spotter " .. spotter.Label .. " on " .. street)
end)
PreviousGetting StartedNextSpeed Cameras / ALPR

Last updated 1 year ago

Was this helpful?

đŸ”Ģ