# Make QBCore compatible

1. Activate QBCore in the r\_handcuffs script config

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

1. Add the following lines to your qb-core/shared/items.lua file at the very bottom

<pre class="language-lua"><code class="lang-lua">handcuffs = { name = 'handcuffs', label = 'Handcuffs', weight = 100, type = 'item', image = 'handcuffs.png', unique = false, useable = true, shouldClose = true, description = 'Handcuffs' },
handcuff_keys = { name = 'handcuff_keys', label = 'Handcuff keys', weight = 50, type = 'item', image = 'handcuff_keys.png', unique = false, useable = true, shouldClose = true, description = 'Handcuffs keys' },
grinder = { name = 'grinder', label = 'Grinder', weight = 1000, type = 'item', image = 'grinder.png', unique = false, useable = true, shouldClose = true, description = 'Grinder' },
rope = { name = 'rope', label = 'Rope', weight = 100, type = 'item', image = 'rope.png', unique = false, useable = true, shouldClose = true, description = 'Rope' },
<strong>knife = { name = 'knife', label = 'Knife', weight = 100, type = 'item', image = 'knife.png', unique = false, useable = true, shouldClose = true, description = 'Knife' },
</strong></code></pre>

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

3. And finally, add the images of the items to your inventory (in my case it will be qb-inventory)

The images are located in the r\_handcuffs script folder.

For all inventories, the addition of images is more or less identical.

For qb-inventory the directory is: /qb-inventory/html/images/

4. Restart your server and take advantage of the items using /giveitem \<player id> \<handcuffs / handcuff\_keys / grinder / rope / knife>


---

# 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.rytrak.fr/scripts/advanced-handcuffs-system/make-qbcore-compatible.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.
