Tablet as Item

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'
    }
}

Last updated