The script has Backward Compatibility with qb-vehiclekeys and qbx_vehiclekeys.
Copy ['carlockpick'] = {
label = "Car Lockpick",
weight = 1000,
stack = true,
close = true,
description = "Perfect when you forget your keys... or have other plans",
client = {
image = "lockpick.png",
event = "is_vehiclekeys:useLockPick",
}
},
Copy carlockpick = {name = "carlockpick", label = "Car Lockpick", weight = 1000, type = "item", image = "lockpick.png", unique = false, usable = true, shoudClose = true, description = "Perfect when you forget your keys... or have other plans"},
Copy [GetHashKey("comet6")] = {
vehicle = {make = "Pfister", model = "Comet VI"},
},
[GetHashKey("bmx")] = {
vehicle = {make = "Subrosa", model = "BMX", img = "images/subrosa.png"},
},
[GetHashKey("police")] = {
vehicle = {make = "Vapid", img = "images/vapid.webp"},
},
Copy cfg.VehicleKeysType = {
[0] = "old_car", -- Compacts
[1] = "new_car", -- Sedans
[2] = "new_car", -- SUVs
[3] = "old_car", -- Coupes
[4] = "old_car", -- Muscle
[5] = "old_car", -- Sports Classics
[6] = "new_car", -- Sports
[7] = "new_car", -- Super
[8] = "universal", -- Motorcycles
[9] = "old_car", -- Off-road
[10] = "universal", -- Industrial
[11] = "universal", -- Utility
[12] = "old_car", -- Vans
[13] = "bike", -- Cycles
[14] = "universal", -- Boats
[15] = "universal", -- Helicopters
[16] = "universal", -- Planes
[17] = "universal", -- Service
[18] = "old_car", -- Emergency
[19] = "universal", -- Military
[20] = "universal", -- Commercial
[21] = nil, -- Trains
[22] = "universal", -- Open Wheel
}
Copy [GetHashKey("sadler2")] = {
keys = "old_car",
},
Copy [GetHashKey("zentorno")] = {
settings = {
alarm = {
enabled = true,
activeOnFailLockPick = true,
activeOnSuccessLockPick = true,
activeOnSearchingKeys = true,
activeOnHotwiring = true,
handlePull = true,
toggleLockDeactivate = true,
min = 30000,
max = 60000,
},
hotwiring = {
successChance = 25, -- 0 - 100%
maxAttempts = 4,
min = 10000,
max = 20000,
},
keysearching = {
successChance = 10, -- 0 - 100%
rewardChance = 75, -- 0 - 100%
rewards = {
{item = true, name = "carlockpick", label = "Lock Pick", count = {min = 1, max = 2}},
{item = false, name = "cash", count = {min = 100, max = 1000}},
},
min = 10000,
max = 20000,
},
lockpick = {
enabled = true,
keyBreakOnSucces = 50, -- 0 - 100%
keyBreakOnFail = 75, -- 0 - 100%
minigame = function()
return lib.skillCheck("hard")
end,
},
anim_lock = function(veh)
lightAnim(veh, 3.0, true, {
{duration = 125, gap = 25, fadeIn = true, fadeOut = false},
{duration = 125, gap = 25, fadeIn = true, fadeOut = false},
{duration = 5000, gap = 25, fadeIn = true, fadeOut = true},
})
local suspensionHeight = GetVehicleSuspensionHeight(veh)
suspensionAnim(veh, {
{duration = 500, gap = 100, height = suspensionHeight + 0.015},
{duration = 500, gap = 100, height = suspensionHeight},
{duration = 500, gap = 100, height = suspensionHeight + 0.015},
{duration = 500, gap = 100, height = suspensionHeight},
})
hornAnim(veh, {
{duration = 200, gap = 0},
})
end,
anim_unlock = function(veh)
lightAnim(veh, 3.0, true, {
{duration = 125, gap = 25, fadeIn = true, fadeOut = false},
{duration = 125, gap = 25, fadeIn = true, fadeOut = false},
{duration = 125, gap = 25, fadeIn = true, fadeOut = false},
{duration = 2500, gap = 25, fadeIn = true, fadeOut = true},
})
local suspensionHeight = GetVehicleSuspensionHeight(veh)
suspensionAnim(veh, {
{duration = 500, gap = 100, height = suspensionHeight + 0.015},
{duration = 500, gap = 100, height = suspensionHeight},
{duration = 500, gap = 100, height = suspensionHeight + 0.015},
{duration = 500, gap = 100, height = suspensionHeight},
})
end,
},
},