> For the complete documentation index, see [llms.txt](https://meadow-development.gitbook.io/meadow-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://meadow-development.gitbook.io/meadow-development-docs/skripte/it_blitzersystem/config.md).

# Config

## IT\_BlitzerSystem

#### config.lua

{% code lineNumbers="true" %}

```lua
Config = {}

Config.Framework = 'auto' -- auto, standalone, esx, qb
Config.DevAce = 'blitzer.dev'
Config.DefaultDevIdentifiers = {}

Config.Database = {
    useOxMySQL = true,
    fallbackToJson = false,
    tablePrefix = 'blitzer_'
}

Config.Commands = {
    admin = 'Blitzeradmin',
    staff = 'Blitzer',
    job = 'Blitzerjob',
    vehicleMeasure = 'BlitzerMessanlage'
}

-- Jeder eingetragene Job darf das Personal-UI nutzen, stornieren und innerhalb der Frist löschen.
-- Im UI werden nur name, label und minGrade gepflegt.
Config.DefaultJobs = {
    police = { label = 'Polizei', minGrade = 0 },
    sheriff = { label = 'Sheriff', minGrade = 0 },
    ordnungsamt = { label = 'Ordnungsamt', minGrade = 0 }
}

Config.DefaultObjects = {
    { id = 'prop_cctv_pole_01a', label = 'Fester Mast-Blitzer', model = 'prop_cctv_pole_01a' },
    { id = 'prop_cctv_cam_06a', label = 'Wandkamera', model = 'prop_cctv_cam_06a' },
    { id = 'prop_cctv_cam_04a', label = 'Mobiler Blitzer klein', model = 'prop_cctv_cam_04a' },
    { id = 'prop_cctv_cam_01a', label = 'Mobiler Blitzer Stativ', model = 'prop_cctv_cam_01a' },
    { id = 'prop_trafficdiv_02', label = 'Messanlage Einheit', model = 'prop_trafficdiv_02' }
}

Config.DefaultVehicles = {
    { id = 'police', label = 'Police Cruiser', model = 'police' },
    { id = 'police2', label = 'Police Buffalo', model = 'police2' },
    { id = 'fbi', label = 'FIB Buffalo', model = 'fbi' },
    { id = 'sheriff', label = 'Sheriff Cruiser', model = 'sheriff' }
}

Config.Models = {
    fixedCamera = 'prop_cctv_pole_01a',
    mobileCamera = 'prop_cctv_cam_04a',
    measuringUnit = 'prop_trafficdiv_02',
    trunkCamera = 'prop_cctv_cam_01a'
}

Config.DefaultItems = {
    mobileAuto = 'mobile_blitzer_auto',
    mobileManual = 'mobile_blitzer_manual',
    measuring = 'messanlage',
    carTrunkAuto = 'kofferraum_blitzer_auto',
    carTrunkManual = 'kofferraum_blitzer_manual'
}

-- Nur noch Steuerung/Setup-Hilfe; UI-Öffnung läuft ausschließlich über Commands.
Config.DefaultKeybinds = {
    confirm = { key = 191, label = 'Enter / Platzieren oder speichern' },
    cancel = { key = 177, label = 'Backspace / Abbrechen' },
    rotateWheelUp = { key = 241, label = 'Mausrad hoch / Links drehen oder Zoom' },
    rotateWheelDown = { key = 242, label = 'Mausrad runter / Rechts drehen oder Zoom' },
    moveForward = { key = 32, label = 'W / Punkt oder Objekt vor' },
    moveBack = { key = 33, label = 'S / Punkt oder Objekt zurück' },
    moveLeft = { key = 34, label = 'A / Punkt oder Objekt links' },
    moveRight = { key = 35, label = 'D / Punkt oder Objekt rechts' },
    moveDown = { key = 44, label = 'Q / runter' },
    moveUp = { key = 38, label = 'E / hoch' },
    camUp = { key = 172, label = 'Pfeil hoch / Kamera hoch' },
    camDown = { key = 173, label = 'Pfeil runter / Kamera runter' },
    camLeft = { key = 174, label = 'Pfeil links / Kamera links' },
    camRight = { key = 175, label = 'Pfeil rechts / Kamera rechts' },
    vehicleMeasure = { key = 74, label = 'J / Fahrzeug-Messanlage starten' }
}

Config.DefaultFineCatalog = {
    { over = 1, fine = 15, points = 0, banWeeks = 0 },
    { over = 11, fine = 30, points = 0, banWeeks = 0 },
    { over = 16, fine = 70, points = 1, banWeeks = 0 },
    { over = 21, fine = 115, points = 1, banWeeks = 0 },
    { over = 26, fine = 180, points = 1, banWeeks = 0 },
    { over = 31, fine = 260, points = 2, banWeeks = 4 },
    { over = 41, fine = 400, points = 2, banWeeks = 4 },
    { over = 51, fine = 560, points = 2, banWeeks = 8 },
    { over = 61, fine = 700, points = 2, banWeeks = 12 },
    { over = 71, fine = 800, points = 2, banWeeks = 12 }
}

Config.DefaultSettings = {
    jobs = Config.DefaultJobs,
    objects = Config.DefaultObjects,
    vehicles = Config.DefaultVehicles,
    items = Config.DefaultItems,
    commands = Config.Commands,
    keybinds = Config.DefaultKeybinds,

    defaultSpeedLimit = 50,
    detectionRange = 42.0,
    staffNearbyRange = 95.0,
    liveFocusRange = 45.0,
    fixedVisibleForJobAlways = true,
    scanIntervalMs = 900,
    duplicateCooldownSec = 12,
    screenshotMaxBytes = 120000,
    screenshotQuality = 0.06,
    screenshotImageRetentionDays = 7,
    archivedScreenshotImageRetentionDays = 0,
    screenshotCaptureEnabled = true,
    toleranceKmh = 5,
    pendingDeleteSeconds = 300,
    manualReviewSeconds = 180,
    paidRetentionDays = 14,
    createInvoiceOnAuto = true,
    createInvoiceOnManualConfirm = true,
    caseOwnerMode = 'owner', -- owner oder driver

    vehicleMeasuring = {
        startupSeconds = 4,
        minFollowSeconds = 10,
        maxDistance = 50.0
    },

    cancelReasons = { 'Falschmessung', 'Einsatzfahrt/Sonderrechte', 'Kennzeichen nicht erkennbar', 'Doppelte Erfassung', 'Technischer Fehler', 'Sonstiges' },

    -- Firmenfahrzeuge: Label, Job und Society. Zuordnung erfolgt über erkannte Fahrzeugdaten/Job-Society der Integrationen/DB.
    companyVehicles = {
        { label = 'Polizei', job = 'police', society = 'society_police' },
        { label = 'Feuerwehr', job = 'fire', society = 'society_fire' },
        { label = 'Taxi', job = 'taxi', society = 'society_taxi' }
    },

    -- Zugriff auf das Blitzerjob-UI. Bosse dürfen immer öffnen; hier können zusätzlich Ränge/Mitarbeiter freigeschaltet werden.
    jobUiAccess = {},

    fineCatalog = Config.DefaultFineCatalog,
    pointsEnabled = true,
    drivingBanEnabled = true,
    pointsLicenseLossAt = 8,
    licenseLossMode = 'entry', -- fest: Nur Eintrag/Führerscheinabgabe

    mask = {
        enabled = true,
        -- GTA-Komponente 1 ist Maske. drawables='1-999' heißt: jeder sichtbare Masken-Drawable zählt als maskiert.
        components = {
            { component = 1, drawables = '1-999' }
        }
    },

    integration = {
        billingSystem = 'auto', -- auto oder eines der erkannten Systeme
        plateSystem = 'auto', -- auto, gta, it_licenseplate
        garageSystem = 'auto', -- auto, none, vms_garagesV2
        vinSource = 'auto' -- auto, none, plateSystem, garageSystem
    },

    billing = {
        societyPrefix = 'society_',
        label = 'Blitzer-Bußgeld',
        reasonPrefix = 'Geschwindigkeitsverstoß'
    },

    placement = {
        distance = 2.15,
        rotateStep = 3.0,
        groundOffset = 0.0,
        playAnimation = true,
        animationScenario = 'WORLD_HUMAN_CLIPBOARD'
    },

    fixedSetup = {
        areaWidth = 4.0,
        objectMoveStep = 0.035,
        pointMoveStep = 0.08,
        rotationStep = 0.45,
        cameraOrbitStep = 1.7,
        cameraPitchStep = 0.8,
        cameraZoomStep = 0.25,
        cameraDistance = 5.5,
        cameraMinDistance = 2.0,
        cameraMaxDistance = 14.0,
        cameraHeightOffset = 0.75
    },

    debug = false
}

```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://meadow-development.gitbook.io/meadow-development-docs/skripte/it_blitzersystem/config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
