# Integration

### Item creation&#x20;

If you wish to use an item (instead of the default command that comes with the resource).

{% tabs %}
{% tab title="qb-inventory" %}
Add the following line to <mark style="color:blue;">qb-core/shared/items.lua</mark>

```lua
['racingtablet'] = { ['name'] = 'racingtablet', ['label'] = 'Racing tablet', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'racingtablet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Seems like something to do with cars.' },
```

Add the following image file as <mark style="color:blue;">qb-inventory/html/images/racingtablet.png</mark>

<figure><img src="https://2340261896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10xunhFUE8KSIDcSB6v%2Fuploads%2F4RpdXaepPsfhIOV9cjjS%2Fracingtablet.png?alt=media&#x26;token=c3438ec4-a6ce-4e14-b2b4-1d9ebee6094b" alt="racingtablet.png"><figcaption></figcaption></figure>

Add this section to the end of <mark style="color:blue;">rahe-racing/public/framework/server.lua</mark>

```lua
QBCore.Functions.CreateUseableItem('racingtablet', function(source, item)    
    TriggerClientEvent('rahe-racing:client:openTablet', source)
end)
```

{% endtab %}

{% tab title="ox\_inventory" %}
Add this section to <mark style="color:blue;">ox\_inventory/data/items.lua</mark>

```lua
['racingtablet'] = {
    label = 'Racing tablet',
    weight = 500,
    description = 'Seems like something to do with cars.',
    stack = false,
    client = {
        export = 'rahe-racing.racingtablet',
    }
},
```

Add the following image file as <mark style="color:blue;">ox\_inventory/web/images/racingtablet.png</mark>

<figure><img src="https://2340261896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10xunhFUE8KSIDcSB6v%2Fuploads%2F4RpdXaepPsfhIOV9cjjS%2Fracingtablet.png?alt=media&#x26;token=c3438ec4-a6ce-4e14-b2b4-1d9ebee6094b" alt="racingtablet.png"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="OTHER" %}
Create the item in your inventory system. Trigger the following client-side events:

* Event <mark style="color:blue;">rahe-racing:client:openTablet</mark> on tablet item use.
  {% endtab %}
  {% endtabs %}
