Installation
Install Eleven Police on your FiveM server with Qbox or QBCore: the two folders, server.cfg order, ox_inventory items, convars, Patrolink and police-doctor.
This guide installs Eleven Police, the FiveM police script with the MDT tablet and street modules, on a Qbox or QBCore server. Check the Requirements and dependencies first.
1. Download
Download the resource from Keymaster with the same Cfx.re account you bought it with. If this is your first time using Keymaster, follow the Install with Keymaster guide first. The zip has two folders:
| Folder | What it is |
|---|---|
eleven-police | The product: the tablet and the street modules |
eleven-police-assets | Streamed assets: the front-cuffing animations and the pistol locker model |
Important
If you have Eleven Police MDT installed, do not install both: both are a resource called eleven-police. Replace its folder with this one and keep your config.lua. See Updating.
2. Copy both folders
Copy eleven-police-assets and eleven-police into resources/ (or the subfolder you use). Do not rename them: the resource refers to itself as eleven-police in its events and interface, and looks for eleven-police-assets by name.
3. Add them to server.cfg
After your framework and the required resources, with eleven-police-assets before eleven-police:
ensure oxmysql
ensure ox_lib
ensure qbx_core # on QBCore: ensure qb-core
ensure ox_target
ensure ox_inventory
ensure screenshot-basic
ensure pma-voice # recommended
ensure eleven_radio # Patrolink, see step 11
ensure eleven-police-assets
ensure eleven-police
The five at the top (oxmysql, ox_lib, ox_target, ox_inventory and screenshot-basic) are required: if one is missing the resource does not start.
Warning
eleven-police-assets streams models and animations. Add it and restart the whole server; do not start or restart it with ensure while players are online: it can crash their game.
The BzZz props, if you have them, start like any other resource, but never in dependencies{}. See Requirements.
4. Register the items
It is the only step the resource cannot do for you. Open eleven-police/ox_inventory_items.lua, copy its contents inside the return {} table of your ox_inventory/data/items.lua and restart ox_inventory.
ox_inventory_items.es.luais the same list with Spanish labels.- There are 38 items: the 11 tablet items and 27 for the street modules.
- At the end of the file there are six more, commented out (lit blue and red cones, evidence markers 2 to 5): you only register them once you give them a model. See Inventory items.
- The weapons in the shop and the locker are the stock
ox_inventoryones.
Note
Item images are not included. ox_inventory looks for them in its web/images/ folder by item name (alcoholimetro.png, handcuffs.png…). Without an image the item has no icon and works the same.
5. server.cfg convars
# Tablet photo uploads. With set, NEVER setr.
set eleven_police_fivemanage_key "your-key"
# Optional: force-remove a pistol locker that still holds pistols.
add_ace group.admin eleven_police.armeros allow
Without the FiveManage key, photos are not uploaded and everything else works the same. The staff command /uncuffme (remove your own handcuffs) is already limited to the group.admin ACE. See Permissions.
6. Start it and watch the console
The database creates itself: there is no .sql to run. On the first start the tablet's example catalogues are also seeded in the Config.Locale language (en or es): decorations, relation types for the citizen file (father, partner, associate…) and link types between incidents ("Duplicate of", "Same offender as"…). Each catalogue is only seeded if its table is empty, so set your language before the first start; after that they are yours and you edit them from the tablet. On start, the resource reports which systems it found and warns about what is missing (for example, if eleven-police-assets is not started or if there is no mugshot point).
For the full diagnosis, type in the server console:
police-doctor
Besides the tablet checks (required resources, bank, billing, impound, phone, radio), it has a Street packages section with:
- the items of each enabled module and the shop and locker weapons missing from
ox_inventory; - whether
eleven-police-assetsis started; - the mugshot point, the wardrobes and the clothing system;
- the armory centre (if the perimeter is on) and the panic button registry;
- where the alcohol reading comes from,
object_gizmo,ox_fueland traffic; - the BzZz recommendation if there are scene items without a model or speed cameras with GTA props.
7. Set the minimum
Open config.lua. It is almost empty on purpose: anything you leave out comes from config/defaults.lua. First:
Config.Locale = 'en' -- 'en' or 'es'
Config.PoliceJobNames = { 'police' } -- the jobs that count as police
Config.PoliceJobNames decides who is police for the tablet and for every street module and any leo type job: list there your police jobs that are not leo type. Also check Config.Departments: it ships with one example department (pd). See General configuration.
8. What ships empty on purpose
Four things depend on your map and your server, so they ship empty. Until you fill them in, that part does nothing (and police-doctor reminds you):
| Key | What it is | Where it is explained |
|---|---|---|
Config.MugshotPoints | Mugshot point. Without it, "Take mugshot" shows nowhere | Evidence |
Config.Wardrobes | Station wardrobes | Scene and station |
Config.ArmeriaPerimetro.Center | Your armory centre (the perimeter ships off) | Scene and station |
Config.Stashes | Stashes shown in the tablet's Warehouse | Department |
The example for each one is commented out in your config.lua.
9. Test it in game
Join with an on-duty police character and press HOME: the tablet opens. Then a quick test of each package:
- Use an
alcoholimetronext to another player. - With
handcuffson you, aim at a player with ox_target: the cuffing options show up. - Use a
cono: the placer opens. - Get into a GTA police car: the hand-held radar HUD opens.
If something does not respond, see Troubleshooting.
10. Load your penal code
As in the MDT, an example penal code ships with it. Edit it from the tablet or load yours from a CSV with police-penalcode-import. See Penal code.
11. Connect Patrolink
Eleven Patrolink (resource eleven_radio) is the officer's item radio and is included with Eleven Police: it shows up in your Keymaster as a separate resource.
- Install it with its own guide: Patrolink installation.
- Copy
eleven-police/extras/eleven_radio/hooks.luaovereleven_radio/config/hooks.lua(replace the whole file). - Add your police jobs (the ones in
Config.PoliceJobNames) toConfig.ServiceJobsandConfig.RestrictedChannelsineleven_radio/config/config.lua, tolockJobsandlogJobsin itsconfig/security.lua, and to thePOLICEtable inhooks.lua. - Restart the server and type
police-doctor: thesecundariaandganchoslines must be green.
Nothing to change in Eleven Police: Config.RadioItemType = 'eleven_radio' is the default (set 'none' if you use no item radio). The full walkthrough is in extras/eleven_radio/LEEME.md and in Patrolink (eleven_radio).
Optional: radio on several channels
With the official pma-voice you hear one channel at a time. Hearing unit, department, command and the Patrolink dial together needs the multi-channel layer (eleven-police-extras-gpl package, MIT license), which is not in the zip: request it by opening a ticket on our Discord. See Radio.
"You lack the required entitlement" error
The server is not entitled to run the protected resource. It is almost always one of these:
- The server key (
sv_licenseKey) does not belong to the same Cfx.re account that bought the resource. - You have not restarted the server since the purchase.
- The artifact is older than 5181.
More detail in the Install with Keymaster guide and in Troubleshooting.
Updating later
When a new version comes out, back up your database first and replace both folders keeping your config.lua. The steps, including moving from Eleven Police MDT, are in Updating.