Inventory setup
Choose the adapter
Set Config.Cards.inventory to auto, ox, qb, qs, codem, core or internal. Auto checks ox, qs, qb, codem and core in that order, then falls back to internal. Start the chosen inventory before EP-Identify.
Required items
- identity_card
- driver_license
- boat_license
- flight_license
- health_insurance_card
The item names must match Config.Cards.types. Documents should be unique/non-stackable so their ownership metadata is preserved. The resource uses metadata for the original document holder.
ox_inventory
Copy the definitions from install/items/ox_inventory.lua into the existing ox_inventory item table, not a second outer Lua table. The item server export is ep-identify.useCard and consume is 0. Do not replace unrelated items.
['identity_card'] = {
label = 'Identity card', weight = 20, stack = false, close = true, consume = 0,
server = { export = 'ep-identify.useCard' }
},
['driver_license'] = {
label = 'Driving licence', weight = 20, stack = false, close = true, consume = 0,
server = { export = 'ep-identify.useCard' }
},
['boat_license'] = {
label = 'Vaarbewijs', weight = 20, stack = false, close = true, consume = 0,
server = { export = 'ep-identify.useCard' }
},
['flight_license'] = {
label = 'Vliegbrevet', weight = 20, stack = false, close = true, consume = 0,
server = { export = 'ep-identify.useCard' }
},
['health_insurance_card'] = {
label = 'Zorgverzekeringspas', weight = 20, stack = false, close = true, consume = 0,
server = { export = 'ep-identify.useCard' }
},QBCore inventory
Merge install/items/qbcore.lua into the framework shared item definitions. Keep useable and unique enabled. The definitions reference item image names; supply matching inventory icons in your inventory's image directory. Card background assets in this package are not necessarily inventory item icons.
identity_card = { name='identity_card', label='Identity Card', weight=20, type='item', image='identity_card.png', unique=true, useable=true, shouldClose=true, description='A personal identity document' },
driver_license = { name='driver_license', label='Driving Licence', weight=20, type='item', image='driver_license.png', unique=true, useable=true, shouldClose=true, description='A personal driving licence' },
boat_license = { name='boat_license', label='Vaarbewijs', weight=20, type='item', image='boat_license.png', unique=true, useable=true, shouldClose=true, description='Een persoonlijk vaarbewijs' },
flight_license = { name='flight_license', label='Vliegbrevet', weight=20, type='item', image='flight_license.png', unique=true, useable=true, shouldClose=true, description='Een persoonlijk vliegbrevet' },
health_insurance_card = { name='health_insurance_card', label='Zorgverzekeringspas', weight=20, type='item', image='health_insurance_card.png', unique=true, useable=true, shouldClose=true, description='Een persoonlijke zorgverzekeringspas' },Other inventories
The qs, codem and core adapters are included, but dedicated installation item files are not. Register equivalent items and verify the adapter's metadata and use behavior for your installed inventory version. Test every card type.
Verify
Restart the inventory and EP-Identify. Register a fresh character, receive an identity card, use it, transfer it to another player and confirm the original identity is retained.