Item Support

Please note that your resource folder should be named 'smartclamp' for our exports to work properly

The default item names are 'locker_chain', 'locker_wheel' and 'clamp_lockpick'. We do not recommend changing these, however you are able to set a label for them in your inventory resource. If you are using QBCore, ESX or OX, you'll need to make some changes below.

QBCore

You'll need to add the item to your shared.lua file using the following:

    ['locker_chain']                   = {['name'] = 'locker_chain',                       ['label'] = 'Chain Clamp',                 ['weight'] = 700,         ['type'] = 'item',         ['image'] = nil,                         ['unique'] = true,         ['useable'] = true,     ['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Clamp'},
    ['locker_wheel']                   = {['name'] = 'locker_wheel',                       ['label'] = 'Wheel Clamp',                 ['weight'] = 700,         ['type'] = 'item',         ['image'] = nil,                         ['unique'] = true,         ['useable'] = true,     ['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Clamp'},
    ['clamp_lockpick']                   = {['name'] = 'clamp_lockpick',                   ['label'] = 'Clamp Lockpick',                 ['weight'] = 700,         ['type'] = 'item',         ['image'] = nil,                     ['unique'] = false,         ['useable'] = true,     ['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Lockpick'},

ESX

You'll need to add the items using the following:

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('locker_chain', 'Chain Clamp', 1, 0, 1),
('locker_wheel', 'Wheel Clamp', 1, 0, 1),
('clamp_lockpick', 'Clamp Lockpick', 1, 0, 1);

vRP

You'll need to add the items into your vrp/cfg/items.lua file.

Ox_inventory

Add the following into ox/data/items.lua:

['locker_chain'] = {
        label = 'Chain Clamp',
        weight = 220,
        server = {
            export = 'smartclamp.useClamp',
            name = "locker_chain"
        },
    },
['locker_wheel'] = {
        label = 'Wheel Clamp',
        weight = 220,
        server = {
            export = 'smartclamp.useClamp',
            name = "locker_wheel"
        },
    },
['clamp_lockpick'] = {
        label = 'Clamp Lockpick',
        weight = 220,
        server = {
            export = 'smartclamp.useClampLockpick',
        },
},

Last updated