External systems
Connect Eleven Police MDT to your FiveM server's banking, billing, garages, licenses, properties and phone: auto values, your own resources and custom adapters.
How it works
The tablet charges money, issues fees, holds vehicles and checks licences, but your server stores all of that. Almost every key defaults to 'auto': on start it looks at what you run and prints it in the console. You only change something if you want a different choice or if police-doctor shows a red warning.
Each system has three levels: 'auto', your resource name (the tablet looks for its exports) and an adapter with your own functions, which overrides everything else.
Money
Config.MoneyType = 'auto'
| Value | What it uses |
|---|---|
'auto' | Tries eleven-banking, Renewed-Banking, qbx_management and qb, in that order |
'qbx' | qbx_management society accounts. The most common on Qbox |
'qb' | QBCore: society in qb-banking, personal money in qb-core |
'renewed' | Renewed-Banking |
'eleven-banking' | Our bank |
| your resource name | Any other bank (see below) |
'none' | No money: anything that costs money is not delivered |
With your own name, the tablet connects if your bank exports one of each group:
| For | Names it looks for |
|---|---|
| Read balance | getAccount, GetAccount, getAccountMoney, GetAccountMoney |
| Deposit | addAccountMoney, AddMoney, addMoney |
| Charge | removeAccountMoney, RemoveMoney, removeMoney |
If it uses other names, write the functions yourself:
Config.MoneyAdapter = {
getAccount = function(_, accId) return { amount = 0 } end,
removeAccountMoney = function(_, accId, amount, meta) return true end,
addAccountMoney = function(_, accId, amount, meta) return true end,
chargeBank = function(_, citizenid, amount, meta) return true end,
refundBank = function(_, citizenid, amount, meta) return true end,
}
accId arrives as 'job:police'. Returning false means "not charged", and the tablet does not deliver what it cost. Personal money comes from the core (qbx_core or qb-core), so a fine can be charged even if the citizen is offline.
Station fees
Duplicate ID, renewal and other fees.
Config.InvoiceType | What it does |
|---|---|
'auto' | eleven-billing if you have it; otherwise instant charge |
'money' | Charged from the bank on the spot. Without funds, the task fails |
'eleven-billing' | An invoice the citizen pays whenever they want |
'none' | Not charged |
Impound
Config.DepotType | What it uses |
|---|---|
'auto' | Tries eleven-garages, jg-advancedgarages and the Qbox schema |
'qbx' / 'qb' | The framework schema in player_vehicles |
'jg' | jg-advancedgarages |
Citizen licences
The tablet grants and revokes licences from the file; your server stores them.
Config.LicensesType | Where it looks |
|---|---|
'auto' | Picks one of the two below. The default |
'meta' (aliases 'qbx', 'qb') | players.metadata.licences, the usual on Qbox and QBCore |
'columns' | One column per licence in players. The tablet creates them on start |
| your resource name | Your licence script, if it exports hasLicense, addLicense / giveLicense and removeLicense / revokeLicense with the signature (citizenid, key) |
What each licence is called on your server goes in Config.Licenses:
Config.Licenses = {
['license_car'] = {
label = 'Car licence',
meta = 'driver', -- its name outside the tablet
column = 'car_licence', -- only with 'columns'
theory = false, -- theory test column, or false
item = 'license_car', -- physical ox_inventory card
driving = true, -- uses licence points
},
-- …
}
Warning
This replaces the whole catalogue: copy all of them from config/defaults.lua and keep the ones you use. To change a single field, use Config.Overrides = { ['Config.Licenses'] = { ['license_car'] = { meta = 'drive' } } }.
If it fits none of these:
Config.LicensesAdapter = {
get = function(citizenid, keys) return exports['my-licences']:all(citizenid) end,
set = function(citizenid, key, grant) return exports['my-licences']:set(citizenid, key, grant) end,
}
Licence points belong to the tablet: they live in players.puntos (starting at 12). Licences with driving = true use them; car and motorcycle share the balance.
Properties
Config.PropertiesType = 'qbx' -- 'qbx' (qbx_properties) | 'qb' (qb-houses)
It cannot be detected: it is the shape of your database. If opening a file gives an SQL error about properties, start here.
Phone
Config.PhoneType | What it does |
|---|---|
'eleven-phone' | Number on the file and fine notices on the phone |
'lb-phone' | Number only |
'npwd' / 'qb' | Number only, from charinfo.phone |
'none' | No number and no notices |
For any other phone, or to get notices through another one:
Config.PhoneAdapter = {
number = function(citizenid) return exports['my-phone']:number(citizenid) end,
notify = function(citizenid, channel, payload) -- payload = { title, content }
return exports['my-phone']:notify(citizenid, payload.title, payload.content)
end,
}
channel is 'billing' for fines and 'general' for everything else.
Optional add-ons
Detected if present. The keys force one or turn it off with 'none'.
| Key | Default | Without it |
|---|---|---|
Config.ClothingType | 'auto' ('illenium', 'qb') | The bodycam clone uses the default look |
Config.IdCardType | 'qbx_idcard' | The file does not show ID expiry |
Config.SoundType | 'InteractSound' | Alerts arrive without a beep. Any resource with the <resource>_CL:PlayOnOne event works |
Optional resources by role
Config.OptionalResources says which resource plays each role. All default to 'none'; any resource works if it exposes these exports:
| Role | Exports expected |
|---|---|
PlayerTag | server GetDisplayTag(src), Resolve(arg); client GetDisplayTagOf(serverId) |
Logs | server log(category, action, data), logFine(data) |
Prison | server GetAllActive(), Jail(citizenid, minutes, options, officer), GetSentenceStatus(src) |
Businesses | server getBusinessList() |
Chat | server EnviarMensaje(targets, text, author) |
Ambulance | server GetUnitsSnapshot() |
Gym | client BlockIfTraining() |
Config.OptionalResources = {
Logs = 'my-logs',
Prison = 'my-prison',
}