Vehicle MinigamesConfiguration

Configuration

Every setting in Vehicle Minigames, file by file.

On this page

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

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

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

Shared

config.lua
Config = {
    volume = 0.8,

    mirror = {
        range = 30.0,
        soundRange = 12.0,
        rate = 100,
    },

    police = {
        jobs = { 'police' },
        alerts = {
            lockpickAlarm = { enabled = true, chance = 100, code = '10-16', priority = 'medium', radius = 20.0, time = 5, cooldown = 60 },
            hotwireAlarm = { enabled = true, chance = 100, code = '10-16', priority = 'medium', radius = 20.0, time = 5, cooldown = 60 },
            hotwired = { enabled = true, chance = 25, code = '10-16', priority = 'high', radius = 30.0, time = 5, cooldown = 60 },
            siphoned = { enabled = true, chance = 20, code = '10-31', priority = 'low', radius = 30.0, time = 5, cooldown = 120 },
        },
    },
}
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

Police alerts

Alerts go through the dispatch script tr_core finds: tk_dispatch, cd_dispatch3d, rcore_dispatch, core_dispatch, qs-dispatch, cd_dispatch, ps-dispatch, origen_police or lb-tablet. Without one, on-duty police get a notification and a map blip.

AlertWhen
lockpickAlarmA car alarm goes off at the lock: a snapped pick, or a picked car whose alarm was armed
hotwireAlarmA failed hotwire sets the alarm off
hotwiredA car is hotwired
siphonedA player finishes siphoning

Each alert has these settings:

SettingWhat it does
enabledfalse turns the alert off
chancePercent chance it's sent
codeThe code police see, such as '10-16'
priority'low', 'medium' or 'high'
radiusMetres across the area police see. The car is somewhere inside it, not at its centre
timeMinutes the alert stays on the map
cooldownSeconds before the same car can alert again

police.jobs is the jobs that get the alerts. Their text is under alerts in locales/en.json.

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
giveKeysfalsetrue gives keys after a hotwire with every keys script. Keys scripts that need them get them anyway. 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, bike = true }Which vehicle types can be hotwired
excludeModels{ 'oppressor', 'oppressor2' }Models that can't 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
minBikeTime8The same, on a motorcycle
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), the switch block on a motorcycle (bikeFits) and the cameras are set up for every vanilla vehicle 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
vehicleTypes{ automobile = true, bike = true }Which vehicle types have a lock to pick
excludeModels{ 'oppressor', 'oppressor2' }Models without a lock
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, motorcycles (class 8) easy. Classes not listed use defaultDifficulty. modelDifficulty sets single models and wins over the class.

Siphoning

SettingDefaultWhat it does
enabledtruefalse turns siphoning off
command'siphon'The chat command
targettrueAdd "Siphon fuel" to cars with ox_target or qb-target
item'siphon_hose'Item needed to siphon (not used up), false for none
can{ item = 'WEAPON_PETROLCAN', litres = 20 }The jerry can the fuel goes into, and how much it holds
devModefalseAdmins can siphon any car, even a locked or running one, and get the fitting tools. Keep it off on live servers
vehicleTypes{ automobile = true }Which vehicle types have a filler to siphon from
blockedClassesmotorcycles, cycles, boats, helicopters, planes, trainsVehicle classes that can't be siphoned. Electric cars never can
reach4.0Metres from the car's middle the player may be
tankLitres60Litres in a full tank, for classes not in classTank
classTankper classLitres in a full tank, per vehicle class (compacts 45, vans 120, commercial 150)
reserve5Percent of the tank the hose can't reach
minSetupTime8Seconds: a faster setup is rejected as cheating
puffs{ 3, 5 }Good puffs needed to prime the hose, a random number in this range
maxStrikes3Mouthfuls of fuel before the player gives up
minPuffTime1.5Seconds between puffs; faster ones are ignored
flowRate0.25Litres a second once the fuel runs (a 20 litre can in 80 seconds)
puddlestrueSpilled fuel leaves a puddle that burns
timeLimit480Seconds before an attempt expires
cooldown20Seconds before the same player can start again
carCooldown120Seconds before anyone can siphon a car that was just siphoned

Where the filler sits on a car (vehicleFits) is set up for every GTA car already. See Fitting fillers to cars for addon cars.

Was this page helpful?

Still stuck? Open a ticket on Discord.Privacy