qb & qbx
qb-vehiclekeys & qbx_vehiclekeys
Delete other vehicle keys script you are using. e.g. qb-vehiclekeys, qbx_vehiclekeys
The script is made to handle qb-vehiclekeys and qbx_vehiclekeys exports, so you don't need to change anything.
1
Install dependencies
check dependencies & minigames for dependencies and install them.
2
QBCore
qb-inventory
qb-core/shared/items.lua
lockpick = { name = 'lockpick', label = 'Lockpick', weight = 300, type = 'item', image = 'lockpick.png', unique = false, useable = true, shouldClose = true, description = 'Very useful if you lose your keys a lot.. or if you want to use it for something else...' },
advancedlockpick = { name = 'advancedlockpick', label = 'Advanced Lockpick', weight = 500, type = 'item', image = 'advancedlockpick.png', unique = false, useable = true, shouldClose = true, description = 'If you lose your keys a lot this is very useful... Also useful to open your beers' },
vehiclekeys = { name = "vehiclekeys", label = "Car Keys", weight = 500, type = "item", image = "vehiclekeys.png", unique = true, useable = true, shouldClose = false, combinable = nil, description = "Keys for your car."},
tools = { name = "tools", label = "Tools", weight = 500, type = "item", image = "tools.png", unique = true, useable = true, shouldClose = false, combinable = nil, description = "Multipurpose tools."},
ox_inventory
ox_inventory/data/items.lua
['advancedlockpick'] = {
label = 'Advanced Lockpick',
description = 'Used to pick locks obviously.',
weight = 500
},
['lockpick'] = {
label = 'Lockpick',
description = 'Used to pick locks obviously.',
weight = 160
},
["tools"] = {
label = "Tools",
description = "Maybe this can cut wires.",
weight = 800,
stack = true,
close = true,
},
['vehiclekeys'] = {
label = 'Vehicle Keys',
weight = 220,
stack = false,
close = true,
},QBOX
ox_inventory
ox_inventory/data/items.lua
['advancedlockpick'] = {
label = 'Advanced Lockpick',
description = 'Used to pick locks obviously.',
weight = 500
},
['lockpick'] = {
label = 'Lockpick',
description = 'Used to pick locks obviously.',
weight = 160
},
["tools"] = {
label = "Tools",
description = "Maybe this can cut wires.",
weight = 800,
stack = true,
close = true,
},
['vehiclekeys'] = {
label = 'Vehicle Keys',
weight = 220,
stack = false,
close = true,
},Last updated