Installation & setup
Follow this guide to install and set up hm_Notrufsaeulen on your FiveM server.
Quick installation
Section titled “Quick installation”-
Copy the files:
Copy the[hm_Notrufsaeulen-Pack]folder completely into theresources/directory of your FiveM server.
This folder contains two separate resources:hm_Notrufsaeulen(logic, UI, data & adapters)hm_Notrufsaeulen_stream(3D prop & archetype)
-
Add them to server.cfg:
Add the resources to yourserver.cfgin the following start order:ensure ox_libensure hm_Notrufsaeulen_streamensure hm_Notrufsaeulen -
Check write permissions for
data/:
Make sure the FiveM server process has write permissions on the folderhm_Notrufsaeulen/data/.Terminal window chmod -R 775 resources/[hm_Notrufsaeulen-Pack]/hm_Notrufsaeulen/data/(See also our guide to file permissions).
-
Grant admin rights:
Run the following command in the server console to give yourself administrator rights:Terminal window notruf_grant <your-server-ID> admin(Example:
notruf_grant 1 admin) -
Test in-game & place a call box:
Connect to the server and open the tablet with the chat command:/notruf_configClick Place new call box (Neue Notrufsäule platzieren) to start the 3D placer.
3D model & streaming
Section titled “3D model & streaming”Prop and archetype are in their own resource hm_Notrufsaeulen_stream:
stream/hm_notrufsaeule.ydr(3D mesh & textures)stream/hm_notrufsaeule.ytyp(archetype definition)
They are registered in fxmanifest.lua via data_file 'DLC_ITYP_REQUEST' 'stream/hm_notrufsaeule.ytyp'. The model name matches the file name: hm_notrufsaeule (in Config.Prop.default).
Why is the model in a separate resource?
Section titled “Why is the model in a separate resource?”In addition, the logic resource cleans up automatically when stopped: all spawned call box objects and temporary preview objects from the placer and prop editor are deleted and the model hashes released.
Archetype values
Section titled “Archetype values”The included archetype has the following values:
| Field | Value |
|---|---|
name / assetName | hm_notrufsaeule (hash 0xF8F41D63) |
assetType | 2 = ASSET_TYPE_DRAWABLE |
bbMin | -0.2580, -0.6670, -0.7949 |
bbMax | 0.2669, 0.0048, 1.9344 |
bsCentre | 0.0044, -0.3311, 0.5698 |
bsRadius | 1.4297 |
lodDist | 200 |
flags | 32 |
The model is 0.53 × 0.67 × 2.73 m in size. The origin is 0.79 m above the bottom of the model – when placed, this foundation part sits in the ground (intended for a concrete foundation). In Y the geometry sits on one side of the origin (−0.67 to 0.00), so the model stands about 0.33 m offset from the placement point.
Troubleshooting: “Model ist nicht geladen oder ungültig” (model not loaded or invalid)
Section titled “Troubleshooting: “Model ist nicht geladen oder ungültig” (model not loaded or invalid)”New files in stream/ only reach the client after a full server restart, and the client has to reconnect (a plain restart is not enough for stream assets in FiveM).
Check the status in-game with:
/notruf_model hm_notrufsaeule- If the command reports
IsModelInCdimage: false, the prop is not loaded in the game client yet. - Until the restart, the script automatically falls back to
Config.Prop.fallback(default:prop_parknmeter_02), so the placer and already placed call boxes remain usable without crashing.
If you want to add more props of your own, put the files in stream/, add them to Config.Prop.list and make sure the collision is embedded in the .ydr.
Tablet as an inventory item (optional)
Section titled “Tablet as an inventory item (optional)”By default the tablet opens with the chat command /notruf_config. You can also bind it to an item:
Set in config/config.lua:
Config.Tablet.item = 'nrs_tablet'Config.Tablet.itemRequired = true -- tablet opens ONLY via the itemAdd the item to ox_inventory/data/items.lua:
['nrs_tablet'] = { label = 'Call box tablet', weight = 800, stack = false, server = { export = 'hm_Notrufsaeulen.useTablet' },},If Config.Tablet.item is set, the script automatically registers the item as usable with ESX or QBCore. You only need to create the item in your item table or items config.
Permissions & administration
Section titled “Permissions & administration”The script distinguishes two permission levels:
editor: create, edit, move and delete call boxes.admin: full rights – may additionally edit emergency services, adjust in-game settings and manage permissions.
Which level may perform which actions is defined in Config.Permissions.actions.
With Config.Permissions.mode you define how permissions are checked:
'ace': only via FiveM ACE permissions inserver.cfg.'json': only via the internal filedata/permissions.json.'both'(default): both active – players have access if they are listed in ACE or in the JSON.
1. Permissions via ACE (server.cfg)
Section titled “1. Permissions via ACE (server.cfg)”# Full admin rights (services, call boxes, settings, permissions)add_ace group.admin hm_notrufsaeule.admin allow
# Editor rights (only place/edit call boxes)add_ace group.mod hm_notrufsaeule.manage allow
# Or directly for a specific FiveM licence:add_ace identifier.license:0a1b2c3d4e5f hm_notrufsaeule.admin allow2. Permissions via JSON (data/permissions.json)
Section titled “2. Permissions via JSON (data/permissions.json)”The JSON list is conveniently maintained in-game via the tablet (“Permissions” tab → select an online player or enter an identifier):
{ "entries": [ { "identifier": "license:0a1b2c...", "label": "Max", "level": "admin" } ]}Adding yourself (first admin)
Section titled “Adding yourself (first admin)”The safest way for the initial setup is the server console – it always has unrestricted admin rights:
notruf_grant 1 admin(where 1 is the current server ID of your player).
Alternatively you can specify the identifier directly:
notruf_grant license:0a1b2c3d4e5f... adminYou find your own identifier in-game with the command /notruf_id. It is shown in the chat and also written to the server console.
Protection against unauthorised access
Section titled “Protection against unauthorised access”If a player without permission opens the tablet, they see an informative “Access denied” (Zugriff verweigert) window. It contains ready-to-copy lines for the administrators:
- The console command
notruf_grantwith their own ID. - The ready-made ACE permission for their own identifier.
- Suggestions for known groups (
Config.Permissions.knownGroups, e.g.group.admin).
Permission management commands
Section titled “Permission management commands”| Command | Permission | Description |
|---|---|---|
notruf_grant <ID|identifier> [level] | Admin / console | Grants permissions (admin or editor). |
notruf_revoke <ID|identifier> | Admin / console | Revokes granted permissions. |
notruf_perms | Admin / console | Lists all permissions currently stored in the JSON. |
/notruf_id | Everyone | Shows your own identifiers for copying. |