Skip to main content

πŸš” Adding a New Police Unit

This step-by-step guide walks you through adding a new police faction (e.g. SASP, FIB, Rangers) to the XR-MDT system.

πŸ“‹ Prerequisites

Before you begin, make sure you have:
  • βœ… A job defined in your framework (qb-core/shared/jobs.lua or ESX jobs table)
  • βœ… A logo file ready (.webp format recommended, 256Γ—256 px)
  • βœ… Access to configs/config.police.lua and configs/config.main.lua

πŸ”§ Step 1 β€” Define the Faction in config.police.lua

Open configs/config.police.lua and add a new entry to the Config.PoliceJobs table. The key must match the job name from your framework.

πŸ”§ Step 2 β€” Activate the Faction

In the same file (configs/config.police.lua), add the new job to Config.EnablePoliceJobs:
[!IMPORTANT] If you don’t add the job to Config.EnablePoliceJobs, the faction will not register any commands or tablet keybinds β€” even if it’s defined in Config.PoliceJobs.

πŸ”§ Step 3 β€” Logo & Assets

  1. Prepare a logo in .webp format (recommended 256Γ—256 px)
  2. Place the file in:
  3. The filename must match the LogoFile value in your config:

πŸ”§ Step 4 β€” Bodycam Access (optional)

To allow your SASP officers to use bodycams, add 'sasp' to the lists in configs/config.main.lua:

πŸ”§ Step 5 β€” Helicopter Spawn (optional)

To add a helicopter spawn point for SASP, add an entry in configs/config.main.lua:

πŸ”§ Step 6 β€” Map Blips (optional)

Add a blip for the SASP headquarters:

πŸ”§ Step 7 β€” Printer (optional)


πŸ”§ Step 8 β€” Restart & Verify

[!WARNING] You must fully restart the resource (ensure xr-mdt), a simple refresh is not enough. Config files are loaded at startup.

βœ… Checklist


πŸ“ Permissions Reference


Β© XR-Core Systems | Professional FiveM Resources