Vehicle MinigamesConfiguration

Configuration

Every setting in Vehicle Minigames, file by file.

On this page

The settings are in three files. The ones most servers change are at the top of each table.

FileWhat's in it
config.luaSettings shared by both minigames: volume, how far props and sounds carry
minigames/hotwire/config.luaHotwiring (Config.hotwire)
minigames/lockpick/config.luaLockpicking (Config.lockpick)

The text players see is in locales/en.json. The language is set in tr_core's settings.

Shared

config.lua
Config = {
    volume = 0.8,

    mirror = {
        range = 30.0,
        soundRange = 12.0,
        rate = 100,
    },
}
SettingDefaultWhat it does
volume0.8Sound effects volume, from 0 to 1
mirror.range30.0Metres within which other players see the props
mirror.soundRange12.0Metres the sounds carry (quieter further away)
mirror.rate100Milliseconds between updates the playing player sends

Hotwiring

SettingDefaultWhat it does
enabledtruefalse turns hotwiring off
key'G'Default key. Players can rebind it in Settings › Key Bindings › FiveM
command'hotwire'The chat command
item'wire_strippers'Item needed to hotwire, false for none
breakChance0.35Chance the item breaks when an attempt fails
giveKeysfalseGive keys after a successful hotwire. See Hotwiring and keys
devModefalseAdmins can hotwire any car and get the fitting tools. Keep it off on live servers
maxStrikes3Mistakes before the attempt fails and the alarm goes off
timeLimit240Seconds before an attempt expires
alarmTime30Seconds the alarm sounds after a failed attempt
shockDamage8Health lost to a short circuit
vehicleTypes{ automobile = true }Which vehicle types can be hotwired
screws.turns4Full turns to undo a screw
screws.maxSpeed3.5Turns per second before the screwdriver slips
strip.maxSpeed0.05How fast the insulation can be pulled before the copper is nicked
crank.earliest / crank.latest900 / 2200The engine catches at a random time between these (ms)
crank.window800Milliseconds the engine stays catchable; holding longer burns the starter wire
minTime10Seconds: a faster success is rejected as cheating
minRewireTime5The same, when the cover was already off
minReconnectTime3The same, when the car was hotwired before

Where the steering column sits in a car (rig, classFits, vehicleFits) and the camera are set up for every vanilla car already. See Fitting the column to adjust one.

Lockpicking

SettingDefaultWhat it does
enabledtruefalse turns lockpicking off
key'G'Default key: on foot it picks a door, in the driver's seat G hotwires
command'lockpick'The chat command
prompttrueShow "Press G to pick the lock" next to a locked door
targettrueAdd "Pick the lock" to car doors with ox_target or qb-target
item'lishi_pick'Item needed to pick a lock, false for none
breakChance1.0Chance the pick is lost when it snaps
devModefalseAdmins can pick any lock and get the fitting tools. Keep it off on live servers
doors{ 'dside_f' }Which doors have a lock: dside_f, pside_f, dside_r, pside_r
reach1.3Metres from the lock you can start picking
maxStrikes3Times the pick bends before it snaps
timeLimit180Seconds before an attempt expires
jamTime120Seconds a lock stays jammed by a snapped pick tip
alarmTime30Seconds the alarm sounds
defaultAlarm0.2Chance the alarm goes off when a picked door is opened
classAlarmper classThe same chance, per vehicle class
liftSensitivity1.0How far the mouse lifts the pick
torch0.6A soft light so the lock can be read at night, 0 for none
minTime6Seconds: a faster success is rejected as cheating

Difficulty

How hard a lock is depends on the car's class. Every lock has 8 wafer positions; cheaper locks leave some empty.

minigames/lockpick/config.lua
difficulty = {
    easy = { wafers = 4, overset = 1.0, speed = 3.2 },
    medium = { wafers = 5, overset = 0.8, speed = 2.8 },
    hard = { wafers = 6, overset = 0.6, speed = 2.4 },
    expert = { wafers = 7, overset = 0.45, speed = 2.0 },
},
defaultDifficulty = 'medium',
ValueWhat it does
wafersHow many of the 8 positions have a wafer
oversetHow far (mm) a set wafer can be pushed past the shear line before it jams. Smaller is harder
speedHow fast (mm per second) a binding wafer gives. Smaller is slower and needs more care

classDifficulty picks one of these per vehicle class: compacts are easy, sports cars hard, super cars and emergency vehicles expert. Classes not listed use defaultDifficulty.

Still stuck? Open a ticket on Discord.