HM Notrufsäulen - Overview
The hm_Notrufsaeulen script brings fully functional emergency call boxes (like the ones along German motorways) to your FiveM server. Call boxes are placed directly in-game with a 3D placer, managed through an extensive config tablet and, when used, trigger real dispatch messages (e.g. to dispatch centres or emergency crews).
The system runs completely standalone. Frameworks such as ESX or QBCore are detected automatically and used for player names, duty checks (jobs) and optional tablet items.
Features at a glance
Section titled “Features at a glance”- Config tablet as NUI (
/notruf_config, item or keybind): Its own interface in the modern hm_ELSPlus look (tabs, cards, modals, search) to create, edit, move and delete call boxes. - Permissions via ACE or JSON list: Both at the same time are possible (
both). Permissions can be granted to online players directly in the tablet. - In-game placer: Align props to the millimetre with the camera, rotate them, fine-tune height and distance, and toggle ground snapping.
- Templates instead of individual props: Define prop, orientation and range of services once as a template – new call boxes inherit all properties at the push of a button.
- Freely configurable emergency services: Name, phone number, jobs, dispatch adapter, report code, cooldown and individual SVG logos per agency/organisation.
- Interactive map with satellite image: Call boxes as icons, your own position tracked live, and an in-game calibration function (alignment without guessing coordinates).
- Settings in the tablet (admin only): Adjust cooldowns, connection setup, redundancy and prop selection directly in-game without file access.
- Dispatch integration: A default adapter for Emergency Dispatch (LoveRP Scripts) is built in. Further interfaces can be connected flexibly via your own adapters; automatic job notification as redundancy.
- Dedicated control panel on the call box: Authentic NUI in the look of real motorway call boxes, including a sign for motorway, kilometre, call box number, location display and buttons per emergency service. Replies from the dispatch centre are shown in a speech bubble.
- Flexible interaction: Either via
ox_targetorTextUI(automatic fallback to TextUI ifox_targetis not present). - Security & performance: Server-side distance and cooldown checks, support for anonymous reports, and DE/EN locales.
Dependencies
Section titled “Dependencies”| Resource | Required | Purpose |
|---|---|---|
| ox_lib | Yes | Callbacks, points, notifications, TextUI |
| ox_target | Optional | 3D interaction at the call box (otherwise falls back to TextUI) |
| ox_inventory / ESX / QBCore | Optional | Using the config tablet as an inventory item |
| Dispatch resource | Optional | Forwarding emergency calls (e.g. Emergency Dispatch, Roadphone, etc.) |
Files & folder structure
Section titled “Files & folder structure”The package is split into two resources:
[hm_Notrufsaeulen-Pack]/├── hm_Notrufsaeulen/ # Logic, UI, data & adapters└── hm_Notrufsaeulen_stream/ # Prop & archetype (do not restart while the server is running)The main resource hm_Notrufsaeulen is structured as follows:
hm_Notrufsaeulen/├── config/│ ├── config.lua # Main configuration│ └── services.lua # Default emergency services (seed for data/services.json)├── data/ # Runtime data (JSON, server-only)│ ├── pillars.json # Placed call boxes│ ├── templates.json # Templates│ ├── services.json # Configured emergency services│ ├── permissions.json # Permission list│ ├── settings.json # Settings changed in the tablet│ └── map.json # Map bounds after calibration├── html/ # NUI files for tablet & call box│ ├── saeule.svg # Call box icon (tablet & map)│ ├── eigen_gps.svg # Own location marker│ └── map.jpg # Satellite map├── locales/ # de.json / en.json language files├── server/│ ├── adapters/ # Active dispatch adapters (e.g. emergencydispatch.lua)│ │ └── beispiele/ # Templates for other systems (roadphone.lua, custom.lua)│ ├── bridge.lua / storage.lua / permissions.lua / dispatch.lua / main.lua├── shared/│ ├── settings.lua # Schema for tablet settings│ └── utils.lua└── client/Known pitfalls & notes
Section titled “Known pitfalls & notes”Please note
- Write permissions for
data/: Thedata/folder must be writable on the server (chmod -R 775 data/) and must not be deleted, because FiveM (SaveResourceFile) does not create missing directories. - Do not overwrite when updating: Always back up the
data/folder before updating your resource, because all placed call boxes, templates, permissions and calibrations are stored there. Copy it back after the update. - Do not restart
hm_Notrufsaeulen_stream: Do not restart the stream resource while players are connected. Unloading.ytyparchetypes in a running FiveM client causes game crashes. The logic resourcehm_Notrufsaeulen, on the other hand, can be restarted safely at any time. - Match job names with Emergency Dispatch: If the call box reports “Meldung weitergeleitet” (report forwarded) even though staff are online, the job names stored in the emergency services do not match the assignments registered in Emergency Dispatch. Use the command
notruf_dutyin the server console to compare them. config.luavs.data/settings.json: Changes toconfig/config.luarequire a resource restart (restart hm_Notrufsaeulen). The console commandnotruf_reloadonly reloads the dynamic JSON files indata/.