Configuration
The base configuration is in the file config/config.lua.
1. Basics
Section titled “1. Basics”Config.Debug = falseConfig.Locale = 'de'Config.Framework = 'auto'| Key | Default | Description |
|---|---|---|
Config.Debug | false | Enables detailed debug messages in the server console. |
Config.Locale | 'de' | Language of the user interface and messages (de or en). |
Config.Framework | 'auto' | Framework detection: 'auto', 'esx', 'qb' or 'standalone'. |
2. Interaction at the call box (Config.Interaction)
Section titled “2. Interaction at the call box (Config.Interaction)”Controls how players can interact with the call box:
Config.Interaction = { mode = 'ox_target', targetDistance = 2.0, textUiDistance = 1.6, textUiKey = 38, textUiKeyLabel = 'E', textUiPosition = 'left-center', renderDistance = 150.0, icon = 'fa-solid fa-phone', label = 'Notrufsäule benutzen', edit = { enabled = true, editLabel = 'Säule bearbeiten', moveLabel = 'Säule versetzen', }}| Key | Default | Description |
|---|---|---|
mode | 'ox_target' | Interaction mode: 'ox_target' or 'textui'. If ox_target is missing, the script automatically falls back to TextUI. |
targetDistance | 2.0 | Maximum interaction distance for ox_target (in metres). |
textUiDistance | 1.6 | Distance from which the TextUI is shown. |
textUiKey | 38 | Control code of the TextUI key (38 corresponds to E). |
textUiKeyLabel | 'E' | Text label of the key in the display. |
textUiPosition | 'left-center' | Screen position of the TextUI via ox_lib. |
renderDistance | 150.0 | Distance from which the call box prop is streamed client-side. |
icon / label | Phone icon | Icon and text for the main entry in the interaction menu. |
edit.enabled | true | Shows additional options (Edit / Move) to authorised players. |
edit.editLabel / moveLabel | Text | Labels of the quick edit options. |
3. Props & default values (Config.Prop & Config.TemplateDefaults)
Section titled “3. Props & default values (Config.Prop & Config.TemplateDefaults)”Config.Prop = { default = 'hm_notrufsaeule', fallback = 'prop_parknmeter_02', list = { 'hm_notrufsaeule' }, freeze = true, invincible = true,}| Key | Default | Description |
|---|---|---|
Config.Prop.default | 'hm_notrufsaeule' | Default model if a template does not define a prop. |
Config.Prop.fallback | 'prop_parknmeter_02' | Emergency substitute object if the custom model is not streamed; false aborts. |
Config.Prop.list | {'hm_notrufsaeule'} | List of available props to choose from in the template drop-down. |
Config.Prop.freeze | true | Freeze the call box prop physically (prevents it from sliding away on collisions). |
Config.Prop.invincible | true | Make the call box prop indestructible. |
Config.TemplateDefaults.offset | {0, 0, 0} | Default offset (X, Y, Z) for new templates. |
Config.TemplateDefaults.rotation | {0, 0, 0} | Default rotation (pitch, roll, yaw). |
Config.TemplateDefaults.snapToGround | true | Snap to the ground automatically. |
4. Config tablet (Config.Tablet)
Section titled “4. Config tablet (Config.Tablet)”Config.Tablet = { command = 'notruf_config', item = 'nrs_tablet', itemRequired = false, keybind = false, animation = true, iconMaxBytes = 48 * 1024,}| Key | Default | Description |
|---|---|---|
command | 'notruf_config' | Chat command to open the tablet; false disables the command. |
item | 'nrs_tablet' | Name of the item (e.g. in ox_inventory); false disables item use. |
itemRequired | false | If true, the tablet can only be opened via the item (command locked). |
keybind | false | Optional keyboard keybind (e.g. 'F7') via ox_lib. |
animation | true | Plays a tablet animation on the character when opening the tablet. |
iconMaxBytes | 49152 (48 KB) | Maximum file size for uploaded agency SVGs. |
5. Console and chat commands (Config.Commands)
Section titled “5. Console and chat commands (Config.Commands)”All commands can be configured with a common prefix:
Config.Commands = { prefix = 'notruf_', -- prefix (gives notruf_grant, notruf_perms, etc.; '' omits it) grant = 'grant', revoke = 'revoke', perms = 'perms', id = 'id', map = 'map', duty = 'duty', reload = 'reload', seed = 'seed', model = 'model',}| Key | Default | Function |
|---|---|---|
grant | 'grant' | Grant permissions (notruf_grant <ID> <level>). |
revoke | 'revoke' | Revoke permissions (notruf_revoke <ID>). |
perms | 'perms' | List registered permissions (notruf_perms). |
id | 'id' | Print your own FiveM identifiers in the chat (/notruf_id). |
map | 'map' | Print the current map bounds for config.lua to the console (notruf_map). |
duty | 'duty' | Shows the staff on duty in Emergency Dispatch and compares jobs (notruf_duty). |
reload | 'reload' | Reloads all JSON files in data/ (notruf_reload). |
seed | 'seed' | Re-creates the default services from config/services.lua in data/ (notruf_seed). |
model | 'model' | Checks on the client whether a model is loaded and valid (/notruf_model <name>). |
6. Permissions (Config.Permissions)
Section titled “6. Permissions (Config.Permissions)”Config.Permissions = { mode = 'both', ace = { admin = 'hm_notrufsaeule.admin', editor = 'hm_notrufsaeule.manage', }, actions = { open = { 'editor', 'admin' }, pillars = { 'editor', 'admin' }, services = { 'admin' }, permissions = { 'admin' }, settings = { 'admin' }, }, identifierTypes = { 'license', 'steam', 'discord', 'xbl', 'live', 'fivem' }, knownGroups = { 'admin', 'mod', 'superadmin' },}| Key | Default | Description |
|---|---|---|
mode | 'both' | Permission mode: 'ace', 'json' or 'both' (both at the same time). |
ace.admin | 'hm_notrufsaeule.admin' | FiveM ACE permission for full administrator rights. |
ace.editor | 'hm_notrufsaeule.manage' | FiveM ACE permission for editors (only place/change call boxes). |
actions.* | Role array | Defines which permission level may perform which action in the tablet. |
identifierTypes | List | Types of player identifiers considered when matching. |
knownGroups | List | Groups suggested in the “Access denied” window. |
7. Emergency call & call flow (Config.Call)
Section titled “7. Emergency call & call flow (Config.Call)”Config.Call = { maxDistance = 4.0, cooldownPlayer = 60, cooldownPillar = 20, connectTime = 6000, askMessage = true, messageMaxLength = 200, allowAnonymous = true, animation = { dict = 'cellphone@', clip = 'cellphone_call_listen_base' }, sound = true, showLabels = true,}| Key | Default | Description |
|---|---|---|
maxDistance | 4.0 | Maximum distance to the call box during the call (checked server-side). |
cooldownPlayer | 60 s | Cooldown between two emergency calls by the same player. |
cooldownPillar | 20 s | Lock time after an emergency call at the same call box. |
connectTime | 6000 ms | Ringing time before the dispatch centre answers. |
askMessage | true | Shows the free-text input field in the control panel. |
messageMaxLength | 200 | Maximum number of characters allowed in the free-text report. |
allowAnonymous | true | Allows the caller to make the emergency call anonymously. |
animation | Dict / clip | Animation of the character while interacting with the call box. |
sound | true | Acoustic feedback when pressing the buttons. |
showLabels | true | Shows text labels below the buttons of the call box control panel. |
8. Blips & incident markers (Config.Blips & Config.ResponderBlip)
Section titled “8. Blips & incident markers (Config.Blips & Config.ResponderBlip)”Config.Blips = { enabled = false, sprite = 459, color = 47, scale = 0.55, label = 'Notrufsäule', shortRange = true,}
Config.ResponderBlip = { enabled = true, duration = 120, flash = true,}| Key | Default | Description |
|---|---|---|
Blips.enabled | false | Switches permanent map blips for all call boxes on the main map on/off. |
Blips.sprite / color / scale | Various | Appearance of the call box blip on the world map. |
Blips.shortRange | true | Call box blips are only shown when the player is nearby. |
ResponderBlip.enabled | true | Creates a temporary incident location blip for emergency crews on an emergency call. |
ResponderBlip.duration | 120 s | How long the emergency call blip stays for alerted crews (in seconds). |
ResponderBlip.flash | true | Makes the incident blip pulse on the minimap. |
9. Dispatch system (Config.Dispatch)
Section titled “9. Dispatch system (Config.Dispatch)”Config.Dispatch = { default = 'emergencydispatch', fallback = true, adapters = { { value = 'emergencydispatch', label = 'Emergency Dispatch' }, },}| Key | Default | Description |
|---|---|---|
default | 'emergencydispatch' | Default adapter if no specific adapter was chosen for a service. |
fallback | true | Redundancy: additionally notifies the jobs stored in the service directly in-game. |
adapters | List | Selection list of dispatch systems in the tablet’s emergency service form. |
For details on configuring Emergency Dispatch, phone hooks and your own adapters, see the page Dispatch & extending.
10. Map & storage locations (Config.Map & Config.Files)
Section titled “10. Map & storage locations (Config.Map & Config.Files)”Config.Map = { image = 'map.jpg', bounds = { minX = -5732.48, maxX = 6763.05, minY = -4086.21, maxY = 8409.32 },}
Config.Files = { pillars = 'data/pillars.json', templates = 'data/templates.json', services = 'data/services.json', permissions = 'data/permissions.json', settings = 'data/settings.json', map = 'data/map.json',}Config.Map.image: File name of the satellite image in thehtml/folder.Config.Map.bounds: World coordinate bounds of the map image. (Overwritten automatically indata/map.jsonby an in-game calibration).Config.Files.*: Relative paths to the internal storage locations of the JSON files.