Skip to content
This page was translated from German using AI. If anything is unclear, the German version applies.

Installation & setup

Follow this guide to install and set up hm_Notrufsaeulen on your FiveM server.

  1. Copy the files:
    Copy the [hm_Notrufsaeulen-Pack] folder completely into the resources/ directory of your FiveM server.
    This folder contains two separate resources:

    • hm_Notrufsaeulen (logic, UI, data & adapters)
    • hm_Notrufsaeulen_stream (3D prop & archetype)
  2. Add them to server.cfg:
    Add the resources to your server.cfg in the following start order:

    ensure ox_lib
    ensure hm_Notrufsaeulen_stream
    ensure hm_Notrufsaeulen
  3. Check write permissions for data/:
    Make sure the FiveM server process has write permissions on the folder hm_Notrufsaeulen/data/.

    Terminal window
    chmod -R 775 resources/[hm_Notrufsaeulen-Pack]/hm_Notrufsaeulen/data/

    (See also our guide to file permissions).

  4. 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)

  5. Test in-game & place a call box:
    Connect to the server and open the tablet with the chat command:

    /notruf_config

    Click Place new call box (Neue Notrufsäule platzieren) to start the 3D placer.


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).

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.

The included archetype has the following values:

FieldValue
name / assetNamehm_notrufsaeule (hash 0xF8F41D63)
assetType2 = ASSET_TYPE_DRAWABLE
bbMin-0.2580, -0.6670, -0.7949
bbMax0.2669, 0.0048, 1.9344
bsCentre0.0044, -0.3311, 0.5698
bsRadius1.4297
lodDist200
flags32

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.


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 item

Add the item to ox_inventory/data/items.lua:

['nrs_tablet'] = {
label = 'Call box tablet',
weight = 800,
stack = false,
server = { export = 'hm_Notrufsaeulen.useTablet' },
},

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 in server.cfg.
  • 'json': only via the internal file data/permissions.json.
  • 'both' (default): both active – players have access if they are listed in ACE or in the JSON.
# 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 allow

2. 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" }
]
}

The safest way for the initial setup is the server console – it always has unrestricted admin rights:

Terminal window
notruf_grant 1 admin

(where 1 is the current server ID of your player).

Alternatively you can specify the identifier directly:

Terminal window
notruf_grant license:0a1b2c3d4e5f... admin

You find your own identifier in-game with the command /notruf_id. It is shown in the chat and also written to the server console.

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_grant with their own ID.
  • The ready-made ACE permission for their own identifier.
  • Suggestions for known groups (Config.Permissions.knownGroups, e.g. group.admin).
CommandPermissionDescription
notruf_grant <ID|identifier> [level]Admin / consoleGrants permissions (admin or editor).
notruf_revoke <ID|identifier>Admin / consoleRevokes granted permissions.
notruf_permsAdmin / consoleLists all permissions currently stored in the JSON.
/notruf_idEveryoneShows your own identifiers for copying.