🔑 Vehicle Keys
Access a comprehensive guide that includes a detailed installation process, examples of code, previews of configurations.
INSTALLATION GUIDE
The script has Backward Compatibility with qb-vehiclekeys and qbx_vehiclekeys.
Step 0 - First Steps
Step 1 - Adding Lock Pick Item
Overextended Inventory (QBox, ESX):
ox_inventory/data/items.lua
['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",
}
},QBCore:
qb-core/shared/items.lua
Step 2 - Configure Resources
Adding Custom Vehicle
vehicle:
objectmake?:
stringmodel?:
stringimg?:
string("images/yourimg.png" or Direct URL)
Example
Adding Key for Vehicle Class
Example
Adding Custom Key
keys:
string
Example
Adding Custom Settings for Vehicle
settings:
objectalarm?:
objectenabled:
booleanactiveOnFailLockPick:
booleanactiveOnSuccessLockPick:
booleanactiveOnSearchingKeys:
booleanactiveOnHotwiring:
booleanhandlePull:
booleantoggleLockDeactivate:
booleanmin:
numbermax:
number
hotwiring?:
objectsuccessChance:
number(0-100)maxAttempts:
numbermin:
numbermax:
number
keysearching?:
objectsuccessChance:
number(0-100)rewardChance:
number(0-100)rewards:
array of objectsitem:
booleanname:
string(item name or "cash"/"bank")label?:
stringcount:
objectmin:
numbermax:
number
min:
numbermax:
number
lockpick?:
objectenabled:
booleankeyBreakOnSuccess:
number(0-100)keyBreakOnFail:
number(0-100)minigame:
functionreturn:
boolean
anim_lock?:
functionanim_unlock?:
function
Example
Last updated