If you want the tablet to work as an item, you need to create the item based on the inventory script you're using.
File Location: ox_inventory/data/items.lua
Image Should Be placed in: ox_inventory/web/images
['crime_tablet'] = {
label = 'Crime Tablet',
weight = 1,
type = 'item',
image = 'tablet.png', -- Optional, if you want an image for it
useable = true,
description = 'A tablet for various crime-related tasks.',
client = {
event = 'op-crime:openCrimeTablet'
}
}
File Location: qb-core/shared/items.lua
Image Should Be placed in: qb-inventory/html/images
crime_tablet = {
name = 'crime_tablet',
label = 'Crime Tablet',
weight = 1,
type = 'item',
image = 'tablet.png', -- Optional, if you want an image for it
useable = true,
shouldClose = true,
description = 'A tablet for various crime-related tasks.'
},