Updating
How to update Eleven Police MDT on your FiveM server without losing your config.lua, what the database does on update and what changes coming from 3.1 or 4.1.
The rule
Replace everything except your config.lua.
Careful: it is the file config.lua, not the config/ folder.
| What it is | On update | |
|---|---|---|
config.lua | Yours. What your server changes | Keep it and put it back |
config/ (folder) | Factory files: defaults and per-module files | Replace it, like everything else |
Keeping your old config/ folder is the one thing that can break an update: the new code expects keys that only exist in the new config/defaults.lua.
Step by step
- Download the new version from Keymaster (see Install with Keymaster).
- Back up your database and your
config.lua(andlocales/if you changed any texts). - Delete the
eleven-policefolder and drop in the new one. - Put your
config.luaback. - Paste
ox_inventory_items.luaagain if the version adds items. - Restart the server and type
police-doctorin the console to check everything is green.
The pma-voice multi-channel layer and the Patrolink hooks (extras/eleven_radio/hooks.lua) live in other resources, so updating the tablet does not touch them. Updating pma-voice or Patrolink does. If one day the department goes silent, or leaving the dial mutes the tablet radio, start there: police-doctor tells you on the multicanal and ganchos lines.
The database
Leave it alone. If the new version adds tables or columns, the tablet creates them on start. It deletes or rewrites nothing. Still, back up the eleven_police_% tables first.
From 3.1 or 4.1 to 4.2
4.2 is the MDT tablet only. It adds five new sections and removes everything that is not the tablet.
New: Briefings, Decorations, Diplomas (now stored on the server), Contracts with the Requests inbox, the Photo studio as a separate resource, configurable branding with Config.Branding and photos always uploaded by the server.
Removed: the world modules (breathalyser, fingerprints and lab, scene photography, door forcing, grenades, shield and ram, scene props, trackers, armoury perimeter, uniforms, megaphone, civilian panic, handcuffing and frisking, taser, hand-held radar, helicopter, traffic…), the fixed speed radars (along with Config.RadarProps, Config.RadarDefaultTiers, Config.SpeedUnit, Config.GizmoType and the fleetFines flag), shop articles from other resources (drone, jammer, radio, handcuffs…; if you use them, add them to Config.Shop.Items), support for item radios other than Patrolink, the 911 Central, Learn, VIP features and the "new" tablet. Your data stays in the database, but there is no screen to use it any more.
When updating:
- Replace the folder except your
config.lua. - Paste
ox_inventory_items.luaagain: the list is shorter. Items from removed modules can stay or go. - Keys for removed modules in your
config.luaare ignored without error: you can delete them. - Check the FiveManage key: it must be set with
set eleven_police_fivemanage_key "…". If you had it withsetr, change it tosetand generate a new key. See Photos and branding. Config.Localedefaults to'en': set'es'in yourconfig.luaif you want Spanish.- Radio:
/rlspd,/rlssd,/rsahpand/rfibbecome one command per department,/r<id>(/rpdwith the default one). If you use Patrolink, copy its hooks (Patrolink (eleven_radio)); if yourconfig.luasaysConfig.RadioItemType = 'qbx_radio'or'patrolink', change it to'eleven_radio'(meanwhile it migrates on its own). - Report printing (
incidentPrint) now ships off: turn it on if you use it. - If your officers used the "new" tablet or a removed section, let them know.
Full details are in the package's CHANGELOG.md.