# Open tablet

{% hint style="warning" %}
I recommend ox\_inventory.
{% endhint %}

{% embed url="<https://github.com/overextended/ox_inventory>" %}

## For resource ox\_inventory

Add the following code in the file `ox_inventory/data/items.lua`

<pre class="language-lua"><code class="lang-lua">
<strong>['tablet'] = {
</strong>	label = 'tablet',
	weight = 500,
	stack = false,
	client = {
		export = 'ox_inventory_examples.tablet', -- if you use ox_inventory_examples 'yourscript.tablet'
	},
	consume = 0
},

</code></pre>

Add the following code in the file `ox_inventory_examples/client.lua` or `yourscript/client.lua`

```lua
exports('tablet', function(data, slot)
	exports.ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("sfctab:tabletopen")
		end
	end)
end)
```

Add the following images to the folder `ox_inventory/web/images`&#x20;

<figure><img src="/files/iPq2goJtjfoFYzDFrPp5" alt=""><figcaption><p>tablet.png</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scriptsfivem.com/resources/sfctab/open-tablet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
