Inventory items
The 11 ox_inventory items Eleven Police MDT uses on FiveM: printed report, tablet, badge, ID card and licenses. Where to paste them and spot a missing one.
Why you need to register them
The tablet builds its own database, but ox_inventory items live in your data/items.lua, and it cannot write there. This is the one installation step you do yourself.
How to paste them
- Open
eleven-police/ox_inventory_items.lua(ox_inventory_items.es.luahas Spanish labels). - Copy its contents into the
return {}table ofox_inventory/data/items.lua. - Restart
ox_inventory.
If you already have an item with the same name, keep yours: all that matters is that the name exists and that client points to what the list says. Weights are only a suggestion.
The list
| Item | What it is | Used by |
|---|---|---|
police_report | Printed copy of an incident report. Use it to read it | Incidents → Print |
police_tablet | Physical tablet | Contracts: a non-police signer opens the tablet with it |
license_card | ID card | Duplicate and renew ID in the citizen file |
police_badge | Officer badge | The tablet hands it out and takes it back on hiring, promotion or firing (Department) |
license_car | Car licence | Licences in the file |
license_bike | Motorcycle licence | Licences in the file |
license_bus | Truck licence | Licences in the file |
license_boat | Boat licence | Licences in the file |
license_plane | Pilot licence | Licences in the file |
license_hunt | Hunting licence | Licences in the file |
license_fishing | Fishing licence | Licences in the file |
Two examples of how they look:
['police_report'] = {
label = 'Police report',
weight = 10,
stack = false,
close = true,
description = 'Printed copy of a report. Use it to read it.',
client = { event = 'eleven_police:openPrintedReport' },
},
['police_tablet'] = {
label = 'Police tablet',
weight = 2000,
stack = false,
close = true,
description = 'The department\'s terminal.',
client = { event = 'eleven_police:openTabletFromItem' },
},
The item field of Config.Licenses decides which physical card comes with each licence. See External systems.
Note
The badge handed out on hiring is the badgeItem of each department in Config.Departments (by default police_badge, already in the list). If a second department uses a different badge, register that item too.
Images
They do not go in items.lua. ox_inventory looks for them in its web/images/ folder by item name (police_report.png). Items without an image show no icon and everything else works.
If one is missing
Warning
ox_inventory returns the same error when an item does not fit and when it does not exist. If an officer sees "not enough space" with an empty inventory, the item is missing.
Type police-doctor in the server console: it lists the missing items, only for the features you have turned on.
Shop articles
The station shop catalogue only has standard ox_inventory items (weapons, ammo, attachments, vest, bandages, parachute) plus the police_tablet. Switch off what you do not want to sell from the tablet: Shop → Manage catalogue.
To sell articles from other resources (drone, handcuffs, radios…) add them to Config.Shop.Items. See Department.