> For the complete documentation index, see [llms.txt](https://docs.notkuubik.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.notkuubik.dev/trucking/integration.md).

# Integration

**Item creation**

If you don't want to use the command, you can use a tablet item instead.

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

```lua
['truckingtablet'] = { ['name'] = 'truckingtablet', ['label'] = 'Trucking tablet', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'truckingtablet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = "There is an app on that."},
```

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

<figure><img src="/files/cYZ4nuUn76gV2HCfNBNp" alt=""><figcaption></figcaption></figure>

Add the following code to the end of <mark style="color:blue;">kub\_trucking/server/api/serverfunctions.lua</mark>

```lua
QBCore.Functions.CreateUseableItem("truckingtablet", function(source, item)
  TriggerClientEvent("kub_trucking:client:openTablet", source)
end)
```

{% endtab %}

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

```lua
['truckingtablet'] = {
    label = 'Trucking tablet',
    weight = 0,
    description = "There is an app on that",
    client = {
	export = 'kub_trucking.truckingtablet',
    }
},
```

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

<figure><img src="/files/Vfos5u8FhFHtl55qHLCT" alt=""><figcaption></figcaption></figure>

Add the following code to the end of <mark style="color:blue;">kub\_trucking/client/api/clientfunctions.lua</mark>

```lua
exports('truckingtablet', function(data, slot)
    openTablet()
end)
```

{% endtab %}

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

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