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

Configuration

The base configuration is in the file config/config.lua.


Config.Debug = false
Config.Locale = 'de'
Config.Framework = 'auto'
KeyDefaultDescription
Config.DebugfalseEnables 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',
}
}
KeyDefaultDescription
mode'ox_target'Interaction mode: 'ox_target' or 'textui'. If ox_target is missing, the script automatically falls back to TextUI.
targetDistance2.0Maximum interaction distance for ox_target (in metres).
textUiDistance1.6Distance from which the TextUI is shown.
textUiKey38Control 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.
renderDistance150.0Distance from which the call box prop is streamed client-side.
icon / labelPhone iconIcon and text for the main entry in the interaction menu.
edit.enabledtrueShows additional options (Edit / Move) to authorised players.
edit.editLabel / moveLabelTextLabels 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,
}
KeyDefaultDescription
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.freezetrueFreeze the call box prop physically (prevents it from sliding away on collisions).
Config.Prop.invincibletrueMake 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.snapToGroundtrueSnap to the ground automatically.

Config.Tablet = {
command = 'notruf_config',
item = 'nrs_tablet',
itemRequired = false,
keybind = false,
animation = true,
iconMaxBytes = 48 * 1024,
}
KeyDefaultDescription
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.
itemRequiredfalseIf true, the tablet can only be opened via the item (command locked).
keybindfalseOptional keyboard keybind (e.g. 'F7') via ox_lib.
animationtruePlays a tablet animation on the character when opening the tablet.
iconMaxBytes49152 (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',
}
KeyDefaultFunction
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>).

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' },
}
KeyDefaultDescription
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 arrayDefines which permission level may perform which action in the tablet.
identifierTypesListTypes of player identifiers considered when matching.
knownGroupsListGroups 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,
}
KeyDefaultDescription
maxDistance4.0Maximum distance to the call box during the call (checked server-side).
cooldownPlayer60 sCooldown between two emergency calls by the same player.
cooldownPillar20 sLock time after an emergency call at the same call box.
connectTime6000 msRinging time before the dispatch centre answers.
askMessagetrueShows the free-text input field in the control panel.
messageMaxLength200Maximum number of characters allowed in the free-text report.
allowAnonymoustrueAllows the caller to make the emergency call anonymously.
animationDict / clipAnimation of the character while interacting with the call box.
soundtrueAcoustic feedback when pressing the buttons.
showLabelstrueShows 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,
}
KeyDefaultDescription
Blips.enabledfalseSwitches permanent map blips for all call boxes on the main map on/off.
Blips.sprite / color / scaleVariousAppearance of the call box blip on the world map.
Blips.shortRangetrueCall box blips are only shown when the player is nearby.
ResponderBlip.enabledtrueCreates a temporary incident location blip for emergency crews on an emergency call.
ResponderBlip.duration120 sHow long the emergency call blip stays for alerted crews (in seconds).
ResponderBlip.flashtrueMakes the incident blip pulse on the minimap.

Config.Dispatch = {
default = 'emergencydispatch',
fallback = true,
adapters = {
{ value = 'emergencydispatch', label = 'Emergency Dispatch' },
},
}
KeyDefaultDescription
default'emergencydispatch'Default adapter if no specific adapter was chosen for a service.
fallbacktrueRedundancy: additionally notifies the jobs stored in the service directly in-game.
adaptersListSelection 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 the html/ folder.
  • Config.Map.bounds: World coordinate bounds of the map image. (Overwritten automatically in data/map.json by an in-game calibration).
  • Config.Files.*: Relative paths to the internal storage locations of the JSON files.