Vehicle MinigamesHotwiring

Hotwiring

How hotwiring plays on cars and motorcycles, how it works with vehicle keys scripts, and fitting the steering column.

On this page

Sit in the driver's seat of a car you have no keys for and press G (or /hotwire). The camera drops under the steering column. The player needs the wire_strippers item.

How it plays

Take the cover off

Hold LMB on each screw and circle the mouse counter-clockwise. Too fast and the screwdriver slips.

Find the wires

Switch to the test light with 1 and hold LMB on a wire. Steady is battery, pulsing is ignition, flickering is the starter; the rest are dim or dead. Which colour is which changes every attempt.

Strip them

Switch to the strippers with 2, grab a wire's end and pull down slowly. Pulling too fast nicks the copper.

Connect and crank

Switch to your hands with 3. Drag the bare battery wire onto the ignition wire to twist them, then hold the starter wire against the twist and let go inside the green part of the meter.

Three mistakes (nicked copper, a short circuit, a burnt starter wire) and the alarm goes off, and the strippers may break (breakChance).

On a motorcycle

Sit on a bike you have no keys for and press G. The bars come straight and the camera goes to the right handlebar's switch block.

Open the block

Hold LMB on the lower half and pull the mouse down until the clips let go. Let go too early and it springs back. The half drops and hangs on its wires and loom.

Find the wires

Switch to the test light with 1 and hold LMB on a wire. Steady is battery, pulsing is ignition.

Cut and strip them

Switch to the strippers with 2. Click a wire to cut it, then pull its end down slowly to strip it.

Twist, close and start

Switch to your hands with 3 and twist battery and ignition together. Push the half back up onto the bar until it clicks, then hold the start button and let go in the green part of the meter.

The same strikes, keys rules and settings apply as on a car. minBikeTime is the shortest time a bike can take. Bicycles and the models in excludeModels (the Oppressors) can't be hotwired.

After a hotwire

The car gets Entity(vehicle).state.tr_hotwired = true and starts. The cover stays off and the wires stay twisted, so starting it again is only touching the starter to the twist.

After a tr_minigames restart the server has forgotten the wires, so the next attempt on that car starts at the test light.

Keys

What happens after a hotwire depends on your vehicle keys script:

Your keys scriptWhat happens
zyke_vehiclekeysA hotwired car runs without keys: once the engine is off, it has to be wired again
qbx_vehiclekeys, qb-vehiclekeys, wasabi_carlock, MrNewbVehicleKeys, Renewed-VehiclekeysThe player gets the keys. These keep the engine off for players without keys, so the hotwire hands them over by itself
NoneWithout a keys script everyone "has keys", so only admins in devMode can hotwire

Nothing needs setting for any of them. giveKeys = true gives keys with zyke_vehiclekeys too.

Fitting the column

The column is placed for every vanilla car: from the steering wheel (rig), lower for big vehicles like vans and trucks (classFits), and per model where needed (vehicleFits). If it clips into the dashboard of a car, adjust it live:

  1. Turn on devMode in minigames/hotwire/config.lua and restart the resource.
  2. Sit in the car and run /hotwire_rig <x> <y> <z> [pitch] until the column sits right.
  3. Copy the line it prints into vehicleFits.
minigames/hotwire/config.lua
vehicleFits = {
    ['sultan'] = { offset = vec3(0.0, 0.01, -0.09), pitch = -20.0 },
},

/hotwire_cam adjusts the camera the same way.

On a motorcycle

The switch block is fitted to every GTA motorcycle. For a bike from another resource, sit on it with devMode on and use the same two commands: /hotwire_rig moves the switch block and /hotwire_cam sets the camera of the step you're on (open, wires or button). Both print a line for bikeFits, which wins over the built-in fit.

Was this page helpful?

Still stuck? Open a ticket on Discord.Privacy