# 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="https://3417600217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUstiQCWWtCVFlim0J8Rh%2Fuploads%2FqvPBEis3aKAEypSSFW0e%2Fmobilephone.png?alt=media&#x26;token=92821202-87b5-4d8b-b5e7-ec6279edce33" alt=""><figcaption><p>mobilephone.png</p></figcaption></figure> <figure><img src="https://3417600217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUstiQCWWtCVFlim0J8Rh%2Fuploads%2FZIaxndr6SBwxqmgPbcMw%2Fsimcard.png?alt=media&#x26;token=48cbcc39-7279-4c08-8490-21030ece29a6" alt=""><figcaption><p>simcard.png</p></figcaption></figure></div>
