Configuration

Configuration Guide

This guide explains how to configure nn_cad (in-vehicle CAD) and nn_mdt (MDT system) for your FiveM server. Edit the config files before starting the resources.

Resource
Config File

nn_cad

nn_cad/config.lua

nn_mdt

nn_mdt/shared/config.lua

nn_mdt — MDT System Config

File: nn_mdt/shared/config.lua


Departments

Define which jobs can use the MDT and their theme/display.

Option
Description

Config.Departments

Job name → { label }. Only jobs listed here have MDT access.

Department fields:

  • label — Display name (e.g. 'LSPD', 'EMS').

Example: Add or edit entries in Config.Departments; the job name key must match your framework job (e.g. 'police', 'ambulance').


Avatar / Photos

Option
Description

Config.AvatarWebhook

Discord webhook URL for photo uploads.discord.com/api/webhooks/...". Requires screenshot-basic for uploads. Leave empty if you're not using discord webhooks

Config.FiveManage.enabled

If you're using FiveManage, set this to true.

Option
Description

Config.AvatarWebhook

Discord webhook URL for photo uploads.discord.com/api/webhooks/...". Requires screenshot-basic for uploads. Leave empty if you're not using discord webhooks

Config.FiveManage.enabled

If you're using FiveManage, set this to true.

Using nn_deparments?

Set Config.UsingNanoDepartmentsCreator = true

Timings (milliseconds)

Option
Description

Config.WarrantSyncDelay

Delay (ms) before refreshing profile after warrant toggle.

Config.DispatchUpdateInterval

Interval (ms) between officer location broadcasts.

Config.ChargeSeedDelay

Delay (ms) after server start before seeding default charges.


Note: Ensure every job that should use the MDT has an entry in Config.Departments; otherwise access is denied.

nn_cad — In-Vehicle CAD Config

File: nn_cad/config.lua


Identity & Display

Option
Description

Config.PoliceJobName

Job name used for police checks (e.g. "police"). Must match your framework.

Config.AgencyName

Label shown in the CAD unit list (e.g. "LSPD").

Config.HeaderLeftText

Left text in the UI header (e.g. "POLICE DEPT.").

Config.HeaderRightText

Right text in the UI header (e.g. "MDT SYSTEM V1.2").


Auto-Spawn & Access

Option
Description

Config.CadAutoSpawnOnlyPolice

true = only players with Config.PoliceJobName get CAD in vehicles. false = any player in a registered vehicle gets CAD.

Config.CadAutoSpawnMaxDistance

Meters from vehicle before the CAD despawns. Use 0 to despawn as soon as the player exits.


Optional / Advanced

Option
Description

Config.SeedTestCall

Set true to create one test call when the resource starts (useful for testing).

Config.DebugAdminCheck

Set true to print admin-check result in server console when someone runs /cadadmin.

Config.VehicleOffsets

Per-vehicle screen offsets. Key = vehicle model hash (number). Overridden by SQL if present. Example: [GetHashKey("police")] = { offset = vector3(-0.5, 0.38, 0.39), rot = vector3(0, 0, -25) }.

Config.LaptopScreen

DUI alignment on the laptop prop: offset, normal, up, rotateScreenDeg, tiltDeg, width, height, scale, zOffset. Tweak if the CAD screen does not match the laptop.

Last updated