Updating
How to move to Eleven Police 5.0 on FiveM from Eleven Police MDT 4.2 or 3.1 without losing your config.lua: what changes, what comes back and what is automatic.
The rule
Replace everything except your config.lua. That is the file config.lua, not the config/ folder: the folder is stock and gets replaced with everything else. Keeping an old config/ folder is the only thing that can break an update.
5.0 also has a second folder, eleven-police-assets, which you copy as a whole and start first:
ensure eleven-police-assets
ensure eleven-police
From Eleven Police MDT 4.2
You get the same tablet with the same data: nothing is lost. What is added are the four street packages.
- Download Eleven Police from Keymaster.
- Back up your database and your
config.lua(andlocales/if you changed any text). - Delete the MDT's
eleven-policefolder and put the new one in. Copyeleven-police-assetstoo. - Put your
config.luaback. - In
server.cfg, addensure eleven-police-assetsbeforeensure eleven-police, and make sureox_inventorystarts before them. - Paste
ox_inventory_items.luainto yourox_inventory/data/items.luaagain: it brings the evidence, handcuffs, scene equipment, panic, GPS and locker items. See Inventory items. - Restart the whole server and run
police-doctor.
Afterwards:
- Set your mugshot point (
Config.MugshotPoints), your wardrobes (Config.Wardrobes) and, if you use it, your armory centre (Config.ArmeriaPerimetro.Center). See General configuration. - Check the new actions in tablet → Permissions: the Radars section and, under Warehouse,
warehouse.armeros(remove pistol lockers) andwarehouse.armory_exempt(carry armory weapons off duty without an alert). See Permissions. - If you do not want a module (say you already have your own handcuffs), turn it off with its switch. See General configuration.
- The new tables (lockers, speed cameras, traffic zones, uniforms…) are created on start.
Note
MDT 4.2 and Eleven Police 5.0 are alternative products. When you move to Eleven Police, stop using the MDT resource: do not run both at once.
From 3.1
4.2 removed the world modules; 5.0 brings almost all of them back, rewritten. You also get everything from the 4.1 and 4.2 tablet: briefings, decorations, diplomas, contracts, server-side photo uploads, etc.
Back: breathalyser, fingerprints, mugshots, cuffing, frisking and escorting, putting in a vehicle (the classic teleport, no animation), lockpick alert, scene equipment, pistol locker, armory perimeter, GPS trackers, civilian panic button, uniforms and wardrobes, hand-held radar, speed cameras, helicopter camera and its fuel, and traffic zones.
Changed:
- Everything follows the
Config.Localelanguage (enores). - No data from any specific server: coordinates, departments and paid models ship empty or with GTA props. Mugshots and wardrobes no longer have coordinates in the code: they go in your
config.lua. - Cuffing, escorting, the locker, speed cameras, the helicopter camera and traffic are validated on the server.
- Cuffing needs the
handcuffsitem, which is used up and given back when uncuffing. Thegrilletesitem is gone: escorting is done with ox_target on the cuffed suspect. - The traffic table is renamed to
eleven_police_traffic_zoneson the first start and the zones are kept (the console says so). - The locker is saved in the database (
eleven_police_armeros). Lockers you had in 3.1 files are not imported: place them again with the item. - The armory perimeter no longer uses Discord: exemptions go by citizenid or by a tablet permission.
- Speed cameras bill the vehicle owner through your billing system. Companies, fleets and rentals go through the
Config.Radars.OnFinehook. See Vehicles and air.
Not back: what moves to the Tactical and Forensics packs (taser, beanbag shotgun, shield, grenades, gas, armour, forensics, laboratory, police tape) and what is in no product (officer photo studio, animated put-in-vehicle, showing the badge, megaphone, backpack, 911 central…). See what it does not include.
When updating, also follow the 4.2 steps that apply to you (FiveManage key with set, Config.Locale, /r<id> radio commands, Patrolink hooks): they are in Updating the MDT.
- Replace the whole folder except your
config.luaand copyeleven-police-assets.ensure eleven-police-assetsbeforeensure eleven-police. - Paste
ox_inventory_items.luaagain. The items of the packs that are not included (ballistic_shield,flashbang,cinta_policial…) and theWEAPON_FLASHBANGandWEAPON_TEARGAS*weapons are no longer used: keep them or remove them. - Restart the whole server and run
police-doctor. - Set your mugshot point, your wardrobes and, if you use it, your armory centre.
- If your uniform templates are still in
uniforms.json, copy that file over the empty one in the download before starting: it is imported into the database automatically if the table is empty and its departments exist inConfig.Departments.
The database
You do not need to touch it. If the new version brings tables or columns, they are created on start; nothing is deleted or rewritten. Still, back up the eleven_police_% tables before updating.
The full detail of each version is in the package's CHANGELOG.md.