For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

["courier_tablet"] = {
    label = "Courier Tablet",
    weight = 1000,
    client = {
      event = "op-courier:openCourierTablet",
    }
},

File Location: qb-core/shared/items.lua

Image Should Be placed in: qb-inventory/html/images

courier_tablet = {
    name = "courier_tablet",
    label = "Courier Tablet",
    weight = 1000,
    type = 'item', 
    image = 'courier_tablet.png', -- Optional, if you want an image for it
    useable = true, 
    shouldClose = true, 
    client = {
      event = "op-courier:openCourierTablet",
    }
 },

This is MySql insert.

Optional Image:

Last updated