Skip to content

Hamster-Systems/hsDevelopment-911

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hsDevelopment-911

What is it?

hsDevelopment-911 is a simple, yet efficient 911 system for your server.

When someone calls /911, the call is only relayed to on-duty responders or anyone in an emergency vehicle.

This script also supports a Discord webhook to log all 911 transmissions, including a preset image for better visibility.

Unlike other scripts, responding to calls is easy and precise. You don’t need a postal code or additional info — you get the exact location of the 911 call.

Using the command /call <call number> will set your waypoint on the map to the exact location the call was made from, and responders will also see a temporary map blip showing the call location.


Features

  • /911 call system for emergencies
  • Automatic Discord webhook logging with preset image
  • Waypoint system: respond to calls instantly
  • Map blips for all eligible responders (on-duty or in emergency vehicle)
  • /duty command to toggle on/off-duty status for receiving 911 calls when on foot
  • Only eligible responders receive notifications and blips
  • Configurable: blip appearance, webhook, prefixes, and more

Dependency

  • None, fully standalone
  • Optional: Discord webhook for logging

Screenshots

Webhook example
Using /911
Setting waypoint via /call <call number> 911 Blip Icon


Commands

  • /911 <info> — Call 911 for a situation
  • /call <call number> — Respond to a 911 call and set waypoint
  • /duty — Toggle on/off-duty status for receiving 911 calls when on foot

Configuration

All options are located in config.lua:

--- CONFIG ---
Config = {}

-- 🧭 Webhook Settings
Config.HammityWebhookURL = 'https://api.hammity.app/webhooks/'

-- Preset image URL for all 911 notifications - set to blank '' to disable
-- NOTE: Image Not Currently Supported in Hammity
Config.presetImageURL = ''


-- 911 Call Map Blip Settings REFRENCE: https://docs.fivem.net/docs/game-references/blips/
Config.MapBlip = {
    Enabled = true,             -- If false, no blips are created
    Sprite = 817,               -- Blip icon (use FiveM/GTAV blip IDs)
    Color = 1,                  -- Blip color
    Scale = 1.0,                -- Size of the blip
    Text = "911 Call"           -- Label when you hover over the blip
}

-- 📢 Message Prefix
Config.Prefix = '^5[^1911^5] ^3'

How it Works

  1. Caller uses /911 <info> → message sent to eligible responders.
  2. Eligible responders (on-duty or in emergency vehicle) receive:
    • Chat notification
    • Waypoint to the call location
    • Temporary map blip
  3. Responding: use /call <call number> to set your waypoint exactly where the call was made.
  4. Webhook logs the call automatically with the preset image.

Download

GitHub - hsDevelopment-911

About

Simple and lightweight 911 script for FiveM that sends call information to Hammity.app via webhook.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages