> For the complete documentation index, see [llms.txt](https://docs.rytrak.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rytrak.fr/scripts/advanced-handcuffs-system/make-qbcore-compatible.md).

# Make QBCore compatible

1. Activate QBCore in the r\_handcuffs script config

<figure><img src="https://2818543518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGiawlnUQy629isMoQhj%2Fuploads%2F8nJ5IDczMdV9YRFKMrED%2Fimage.png?alt=media&amp;token=2248e478-2bdc-4711-a44a-6e6d48253c1f" 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="https://2818543518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGiawlnUQy629isMoQhj%2Fuploads%2FBGIODUzSc4SkqkFBM05g%2F66551292e13843e05c6a9979acff2732.gif?alt=media&amp;token=6f8c45da-2bb9-4433-9996-1338f6f6bc3f" 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>
