Config
Instant, city-wide gunshot alerts for your server.
// Config
Config = {}
-- Debug prints server-side
Config.EnableDebug = false
-- How many shots within TimeWindow to trigger an alert
Config.ShotsRequired = 5
-- Milliseconds window where shots count toward the same "burst"
Config.TimeWindow = 3000 -- 3 seconds
-- Cooldown per client before they can report another burst
Config.LocalReportCooldown = 15000 -- 15 seconds
-- Server-side: how long before the same area can alert again
Config.ServerAreaCooldown = 20000 -- 20 seconds
-- Radius (in meters) of the alert circle blip
Config.AlertRadius = 120.0
-- Max distance allowed between player's actual position & reported coords.
-- Prevents mod menus from spoofing alerts across the map.
Config.MaxDistanceFromPlayer = 120.0
-- Per-player rate limit on server: max X alerts per Y seconds
Config.PlayerRateLimit = {
MaxReports = 4,
PerSeconds = 60
}
-- How long the blips stay on map (ms)
Config.BlipLifetime = 20000
-- Who gets alerts? For now: everyone.
-- If later you want "LEO only", you can change this to a job-based or ACE check.
Config.BroadcastToAll = true
Last updated