For resource ox_inventory
['tablet'] = {
label = 'tablet',
weight = 500,
stack = false,
client = {
export = 'ox_inventory_examples.tablet', -- if you use ox_inventory_examples 'yourscript.tablet'
},
consume = 0
},
exports('tablet', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
TriggerEvent("sfctab:tabletopen")
end
end)
end)