Make QBCore compatible

  1. Activate QBCore in the r_handcuffs script config

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

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' },
knife = { name = 'knife', label = 'Knife', weight = 100, type = 'item', image = 'knife.png', unique = false, useable = true, shouldClose = true, description = 'Knife' },
  1. 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/

  1. Restart your server and take advantage of the items using /giveitem <player id> <handcuffs / handcuff_keys / grinder / rope / knife>

Last updated