Skip to content

Items

Items & Usage

Items that players can use.

Item NameUsableDescription
lockpicktrueUse a lockpick to try and unlock a vehicle.
vehicle_keytrueUse a physical key item to start the engine of a vehicle.

Item Setup

Adding Inventory Items

Copy and paste the item format that matches your inventory system below. Each section is pre-configured and ready to use, simply add it to your inventory/framework and adjust values if needed.

esx / esx_inventory
sql
INSERT IGNORE INTO `items` (name, label, weight, rare, can_remove) VALUES ('vehicle_key', 'Vehicle Key', 1, 0, 1);
INSERT IGNORE INTO `items` (name, label, weight, rare, can_remove) VALUES ('lockpick', 'Lockpick', 1, 0, 1);
qbcore / qb-inventory / codem-inventory / ps-inventory / qs-inventory (esx & qbox) / tgiann-inventory
qb-core/shared/items.lua
lua
['vehicle_key'] = {
    name = 'vehicle_key',
    label = 'Vehicle Key',
    weight = 100,
    type = 'item',
    image = 'vehicle_key.png',
    unique = true,
    useable = true,
    shouldClose = true,
    description = 'Physical key used to control a vehicle.'
},

['lockpick'] = {
    name = 'lockpick',
    label = 'Lockpick',
    weight = 300,
    type = 'item',
    image = 'lockpick.png',
    unique = false,
    useable = true,
    shouldClose = true,
    description = 'Used to try and unlock a vehicle.'
},
ak47_inventory / ak47_qb_inventory
lua
["vehicle_key"] = {
    name = "vehicle_key",
    label = "Vehicle Key",
    weight = 100,
    type = "item",
    decay = false,
    close = true,
    limit = 100,
    stacksize = 1,
},

["lockpick"] = {
    name = "lockpick",
    label = "Lockpick",
    weight = 300,
    type = "item",
    decay = false,
    close = true,
    limit = 100,
    stacksize = 10,
},
ox_inventory
ox_inventory/data/items.lua
lua
['vehicle_key'] = {
    label = 'Vehicle Key',
    stack = false,
    weight = 100,
},

['lockpick'] = {
    label = 'Lockpick',
    stack = true,
    weight = 300,
},

Adding Inventory Images

Default item images are included and can be used if you don’t have your own.

Hello!