# 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
['driftingtablet'] = { ['name'] = 'driftingtablet', ['label'] = 'Dritfting tablet', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'driftingtablet.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/driftingtablet.png</mark>

<figure><img src="https://2340261896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10xunhFUE8KSIDcSB6v%2Fuploads%2FuGpfVmvpePPxOJVRAm8D%2Fdriftingtablet.png?alt=media&#x26;token=11c7a54e-ac8c-40b7-b669-648bb2368142" alt=""><figcaption></figcaption></figure>

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

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

{% endtab %}

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

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

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

<figure><img src="https://2340261896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10xunhFUE8KSIDcSB6v%2Fuploads%2FuGpfVmvpePPxOJVRAm8D%2Fdriftingtablet.png?alt=media&#x26;token=11c7a54e-ac8c-40b7-b669-648bb2368142" alt="racingtablet.png"><figcaption></figcaption></figure>

Add this section to the end of <mark style="color:blue;">rahe-drifting/api/client.lua</mark>

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

{% endtab %}

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

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


---

# 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.rahe.dev/our-scripts/drifting/integration.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.
