How the config works
How Eleven Police MDT is configured on FiveM: your config.lua versus config/defaults.lua, flags one by one, Config.Overrides and what can and cannot be changed.
Three files
The load order is the system:
| File | What it is | Overwritten by updates |
|---|---|---|
config/bootstrap.lua | Internal start-up. Do not touch it | Yes |
config.lua | Yours. Only what you change | No, never |
config/defaults.lua | The default values, explained. Loaded last and only fills in what is missing | Yes |
The rule
To change something: find it in config/defaults.lua, copy that key to your config.lua and change it there. As soon as it exists in yours, the default stops applying. Do not copy the whole file: just the key.
config.lua ships almost empty, with the usual blocks commented out and ready to uncomment.
Warning
Do not edit config/defaults.lua or the other files in config/: the next update overwrites them and your change is lost.
Flags go one by one
Config.FeatureFlags is not replaced as a whole: it is filled in flag by flag. If you name two, the rest keep their defaults, and a new flag in a future version starts working on its own.
Config.FeatureFlags = {
dispatch = false, -- I already have my own dispatch
bodycams = false, -- I already have my own body cameras
}
The full list is in Feature flags.
Config.Overrides: per-module files
Config.Shop (config/shop.lua), Shared (config/shared.lua), Config.Contracts (config/contratos.lua) and Config.EstudioFoto (config/estudio_foto.lua) load after your config.lua, so setting them there does nothing. Adjust them with the path of what you want to change:
Config.Overrides = {
['Config.Shop.JobName'] = 'police',
['Config.Shop.Approval.Enabled'] = false,
['Shared.CommandRadio'] = { label = 'COMMAND' },
}
- It is applied last of all, so it always wins.
- It merges per key: naming one does not wipe its neighbours.
- A list is replaced as a whole.
- A path that does not exist prints a warning in the console on start.
What you can and cannot change
| Where | What |
|---|---|
config.lua | Flags, stations and cells, departments and grades, callsigns, frequencies, call categories, durations, prices, integrations with your systems, branding… |
| The tablet (database) | Penal code, permissions per grade, shop catalogue, divisions, internal licences, agreements, decorations, diploma and contract templates |
locales/en.lua and locales/es.lua | Every on-screen text: translate, adapt terminology or rename labels. For another language, copy locales/en.lua |
You cannot change the interface logic (tabs, columns, mitigating and aggravating percentages) or add new screens. The code is protected and the interface compiled. If you need any of this, open a ticket on our Discord: requests decide what moves into the config in future versions.
If you overwrite your config by accident
Nothing breaks: the tablet starts with the default values. You lose your settings, not the functionality.