General configuration
Configure Eleven Police on FiveM: language, departments, one switch per street module, the empty mugshot point, Config.Overrides and the BzZz props.
How it works
Same as the MDT: your config.lua only holds what you change, and everything else comes from config/defaults.lua, which has the full list with explanations. No update touches your config.lua. The whole mechanism is in How the config works.
The Eleven Police config.lua ships with a commented, explained block for each street package: copy or uncomment the one you need.
First things
Config.Locale = 'en' -- 'en' or 'es'; 'en' by default
Config.PoliceJobNames = { 'police' } -- the jobs that count as police
- Language: the tablet, the street modules, messages to citizens and
police-doctorfollowConfig.Locale. The texts are inlocales/en.luaandlocales/es.lua. - Who is police: the jobs in
Config.PoliceJobNamesand anyleotype job. Most street modules also require being on duty. See Permissions. leotype jobs count as police everywhere without listing them; put any police job that is notleotype inConfig.PoliceJobNames.- Departments:
Config.Departmentsships with one example (pd). It also drives the uniform templates and the/r<id>radio chat. See Config keys.
Module switches
Each street module has its flag in Config.FeatureFlags. Name only the ones you change:
Config.FeatureFlags = {
interacciones = false, -- I already have my own handcuffs
armeriaPerimetro = true, -- turn the perimeter on (set its Center first)
}
When off, that module registers nothing: no events, no commands, no ox_target options. Its articles are also no longer sold in the station shop.
There are 17 flags for 16 modules (scene equipment has two):
| Package | Flag | Default | What it turns off |
|---|---|---|---|
| Evidence | alcoholemia | true | Breathalyser |
| Evidence | huellas | true | Fingerprint scanner |
| Evidence | fotografia | true | Mugshots at the Config.MugshotPoints points |
| Arrests | interacciones | true | Cuffing, frisking, escorting, putting in and taking out of vehicles |
| Arrests | forzarPuertas | true | Lockpick alert to dispatch |
| Scene and station | itemsPolicia | true | Scene equipment only: placing and picking up cones, fences, signs, spike strips… |
| Scene and station | materialEscena | true | The scene equipment placer and carrying it visibly |
| Scene and station | armeroPistolas | true | Pistol locker (turns itself off without eleven-police-assets) |
| Scene and station | armeriaPerimetro | false | Armory perimeter alert |
| Scene and station | rastreadores | true | The GPS tracker: attaching it (gpsportatil item) and its blips |
| Scene and station | panicoCivil | true | The civilian panic button (botonpanico item) |
| Scene and station | uniformes | true | Wardrobes and uniform templates |
| Vehicles and air | radarMano | true | Hand-held patrol radar |
| Vehicles and air | radares | true | Speed cameras and their fines |
| Vehicles and air | helicam | true | Helicopter camera and spotlight |
| Vehicles and air | heliCombustible | true | Helicopter fuel consumption |
| Vehicles and air | trafico | true | Traffic zones and signs (/trafico) |
The tablet flags (dispatch, bodycams, briefings…) are in Feature flags.
Who carries scene equipment visibly does not depend on a flag but on Config.SceneStaffJobs: the emergency jobs that, on duty, place it without carrying it in their hands, besides the police. By default { 'ambulance', 'doctor', 'paramedic' }. See Scene and station.
Tuning a module: Config.Overrides
Each module has its file in config/ (interactions.lua, alcoholconfig.lua, armero.lua, radarhud.lua, helicam.lua, trafico.lua…). Do not edit them: updates overwrite them. Putting them in your config.lua does not work either, because they load later and would overwrite it.
That is what Config.Overrides is for. It is applied at the very end:
Config.Overrides = {
['Interaction.CuffItem'] = false, -- cuff without an item
['AlcoholConfig.Items'] = { cider = 0.06 }, -- added to the stock drinks
['HeliCamConfig.ThermalJobs'] = { ambulance = false }, -- thermal vision for the police only
['RadarConfig.RadarVehicles'] = { 'police', 'police2', 'sheriff' },
['TraficoConfig.MinGrade'] = 2,
['Config.Armero.DeServicio'] = true,
}
- It merges key by key: naming one key does not wipe its siblings. A list (
{ 'a', 'b' }) is replaced as a whole. - A path that does not exist is reported in the console on start.
- Street module namespaces:
Interaction,AlcoholConfig,FingerprintConfig,RadarConfig,HeliCamConfig,HeliFuelConfig,TraficoConfig,Config.ArmeroandConfig.Shop.
Each package page lists its module's keys.
Settings tables in config.lua
Config.Radars, Config.ArmeriaPerimetro and Config.PanicButton go in your config.lua, not in Config.Overrides. Like Config.FeatureFlags, they are filled in key by key: write only the keys you change and the rest keep their default. For example, a Config.Radars with only OnFine still exempts ambulances, because ExemptJobs comes from config/defaults.lua.
Config.ArmeriaPerimetro = {
Center = { x = 0.0, y = 0.0 }, -- the rest (Radius, ExemptPermission…) comes from the defaults
}
The same goes for the tablet's settings tables: Config.Suspension, Config.RadioAltavoz, Config.OfficerOfTheMonth, Config.Branding, Config.OptionalResources, Config.Dispatch and Config.FavoritosPorDefecto.
What goes inside a key (a list or a map of jobs, such as ExemptJobs or ExemptPermission) is replaced as a whole: if you write ExemptJobs = { tow = true }, ambulances are no longer exempt. To keep them, list them too.
Mugshot point
Config.MugshotPoints ships empty: every station MLO has its wall somewhere else, and a point set blindly puts the citizen inside a wall. Until you add yours, "Take mugshot" shows nowhere and the console warns on start.
Config.MugshotPoints = {
{
label = 'Station', -- just for you
target = vec3(0.0, 0.0, 0.0), -- where "Take mugshot" shows
radius = 1.1,
subject = vec4(0.0, 0.0, 0.0, 270.0), -- where the subject stands
officer = vec4(0.0, 0.0, 0.0, 270.0), -- optional: where the officer stands
camera = vec3(0.0, 0.0, 0.0), -- the camera, ~1.5 m in front of the subject
cameraRot = vec3(0.0, 0.0, 90.0),
fov = 28.0,
},
}
You can add several points. During the session the officer takes the photo with left click: it is captured from the point's fixed camera, the server uploads it through the same storage as the tablet gallery (the FiveManage key or Config.FotosAlmacen) and it is saved in the gallery and as the photo on the detainee's file. How it is used: Evidence.
BzZz props
The scene equipment and speed cameras ship with GTA V props. If you buy the BzZz packs (highly recommended, see Requirements), uncomment these blocks in your config.lua:
Config.SceneProps = {
cono_azul = 'bzzz_police_props_cone_blue',
cono_azul_luminoso = 'bzzz_police_props_cone_blue_anim',
cono_rojo = 'bzzz_police_props_cone_red',
cono_rojo_luminoso = 'bzzz_police_props_cone_red_anim',
senal_obras_40 = 'bzzz_police_props_sign_a',
senal_operario_40 = 'bzzz_police_props_sign_b',
senal_limite_40 = 'bzzz_police_props_sign_c',
pancarta_escena_custom = 'bzzz_police_props_screen_c',
marcador_pruebas_1 = 'bzzz_police_props_number_a',
marcador_pruebas_2 = 'bzzz_police_props_number_b',
marcador_pruebas_3 = 'bzzz_police_props_number_c',
marcador_pruebas_4 = 'bzzz_police_props_number_d',
marcador_pruebas_5 = 'bzzz_police_props_number_e',
}
Config.RadarProps = {
a = 'bzzz_police_prop_radar_a',
b = 'bzzz_police_prop_radar_b',
c = 'bzzz_police_prop_radar_c',
}
- These two tables are filled in item by item: changing four cones does not leave the rest without a model.
- Any other pack works too: it is just the model name.
- The six items without a GTA prop (lit blue and red cones, markers 2 to 5) turn on as soon as they have a model; you also need to register them in
ox_inventory(they are commented out at the end ofox_inventory_items.lua). - A model that does not exist on the server breaks nothing: that item is simply no longer offered.
Your systems
Bank, billing, impound, licences, phone, clothing and sound are detected automatically, as in the MDT. See External systems. Two of them matter most for the street modules:
Config.InvoiceType/Config.MoneyType: how speed camera fines are charged.Config.AlcoholType/Config.AlcoholAdapter: where the breathalyser reading comes from. See Evidence.