> For the complete documentation index, see [llms.txt](https://docs.scriptsfivem.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scriptsfivem.com/resources/sfphone/open-phone.md).

# Open phone

{% hint style="warning" %}
IMPORTANT! Inventory must supports metadata. 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>['mobilephone'] = {
</strong>	label = 'Smartphone',
	weight = 500,
	stack = false,
	close = true,
	client = {
		export = 'sfphone.mobilephone', -- if you use ox_inventory_examples 'yourscript.mobilephone'
	},
	consume = 0
},
['simcard'] = {
	label = 'Sim card',
	weight = 100,
	stack = false,
	client = {
		export = 'sfphone.simcard', -- if you use ox_inventory_examples or 'yourscript.simcard'
	},
	consume = 0
},

</code></pre>

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

<div><figure><img src="/files/Qa50a2TbIWbWcNRWivKk" alt=""><figcaption><p>mobilephone.png</p></figcaption></figure> <figure><img src="/files/SBcVqcr4vIS85TO1wnfu" alt=""><figcaption><p>simcard.png</p></figcaption></figure></div>
