95 online 3 members  + Join RP Base  +
FreeScriptQBoxQBCoreESX

TR Scripts

by TR-Scripts67  ·  version 1.2.1  ·  updated 3 days ago

No reviews yet

Downloads
0
Reviews
0
Size
32.4 MB
Code check
Clean
Licence
GPL-3.0
Released
Nov 2026

Physical FiveM minigames played by hand on custom 3D props: lockpicking, hotwiring and siphoning fuel. ESX, QBCore, Qbox.

TR Scripts
tr_minigames
Physical minigames for FiveM, each played by hand on its own custom 3D props: no progress bars and no
skill-check circles. Players nearby see the props and particles and hear the sounds too.

  • Hotwiring: unscrew the steering column's cover, find the wires with a test light, strip them,
twist battery and ignition together and crank the starter. On a motorcycle: pull the handlebar's switch
block apart, cut and strip the wires inside, twist them and press the start button.
  • Lockpicking: pick a car door's wafer lock with a Lishi-style pick, one wafer at a time, by feel.
Motorcycles have the same lock in an ignition on the top yoke.
  • Siphoning: set a jerry can down, open the car's filler, put the hoses in, blow the fuel up the
hose puff by puff and let it run into the can.

The server decides every step of all three, so a modified client can't skip the puzzle.
Requirements
  • tr_core 1.3.0 or newer.
  • OneSync.
  • ESX, QBCore or Qbox, with ox_inventory or qb-inventory. ox_target or qb-target is optional (it adds
"Pick the lock" on door handles and "Siphon fuel" on cars). tr_core finds what the server runs by itself.
  • For siphoning, a fuel script tr_core supports (ox_fuel, lc_fuel, cdn-fuel, ps-fuel, LegacyFuel), or
none: then each car's fuel is kept in its fuel state bag (full until someone siphons it).
Installing
  1. Put the folder in your resources as tr_minigames and start it after tr_core:

   ensure tr_core
   ensure tr_minigames

  1. Add the three items (wire_strippers, lishi_pick, siphon_hose) and their icons: install/README.md
has the entries for ox_inventory and qb-inventory.
  1. Settings are in config.lua (sound volume, how far the props and sounds carry) and in each
minigame's minigames//config.lua, where it can also be turned off (enabled = false).
Text is in locales/en.json.

After updating the resource, players need a full reconnect to load new props.
Hotwiring
Sit in the driver's seat of a car you have no keys for and press G (/hotwire, rebindable).
The camera drops under the steering column:

  1. Cover: hold LMB on each screw and circle the mouse counter-clockwise. Too fast and the
screwdriver slips.
  1. Test light (1): hold LMB on a wire. Steady = battery, pulsing = ignition, flickering =
starter; the rest are dim or dead. Which colour is which is random every attempt.
  1. Strippers (2): grab a wire end and pull down slowly. Pulling too fast nicks the copper (a strike).
  2. Hands (3): drag the bare battery wire onto the bare ignition wire to twist them, then hold
the starter against the twist and let go inside the green part of the meter.

Three strikes (nicks, shorts, a burnt starter wire) and the alarm goes off; the strippers may break.
The server decides every step, so a modified client can't skip the puzzle. The on-screen hints,
tools, strikes and meters are drawn on the resource's own page (TR.ui.hud).

  • Needs the wire_strippers item. Item entries for ox_inventory and qb-inventory plus the icon are
in install/ (see its README).
  • Settings are in minigames/hotwire/config.lua (Config.hotwire).
  • devMode (off by default) lets admins hotwire any car, even one with keys or a running engine,
and turns on /hotwire_rig and /hotwire_cam. Turn it off on live servers.
  • Hotwired cars get Entity(vehicle).state.tr_hotwired = true. By default (giveKeys = false) the car
only starts: no keys, and once its engine is off it has to be wired again. The cover stays off
(state.tr_hotwire_cover), the wires stay found and stripped, and battery and ignition stay
twisted, so wiring it again is only cranking the starter on the twist (minReconnectTime). After a
tr_minigames restart the server has forgotten the wires, so that attempt starts at the test light. That is with zyke_vehiclekeys, where the car
runs without keys (TR.keys.startEngine). The other supported keys scripts keep the engine off for
players without keys, so with those the hotwire gives keys by itself. giveKeys = true gives keys
with every keys script.
  • Without a keys script everyone "has keys", so only admins in devMode can hotwire.
  • Players near the car see the props and sparks and hear the sounds (quieter further away). The
hotwiring player's client sends what changed about 10 times a second; the server keeps the latest
state, checks it (only tr_hw_* models, positions near the column) and passes it on to players
within Config.mirror.range (config.lua). See tr_core/modules/mirror.
  • /hotwire_rig [pitch] (dev mode) moves the column live, so you can fit it to a car's
interior. Copy the printed line into vehicleFits.
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 switch block:

  1. Open it: hold LMB on the lower half and pull the mouse down until the clips let go. It hangs on
its wires and loom.
  1. Test light (1): find battery (steady) and ignition (pulsing).
  2. Strippers (2): click a wire to cut it, then pull its end down slowly to strip it.
  3. Hands (3): 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.

The same rules, strikes and settings apply (minBikeTime is the shortest time a bike can take).
Every stock motorcycle has a measured fit in minigames/hotwire/bikes.lua; on a bike,
/hotwire_rig and /hotwire_cam (dev mode) print lines for bikeFits, which win over it.
Bicycles, excludeModels (the Oppressors by default) and other vehicle types can't be hotwired.
Lockpicking
Stand at the driver's door of a locked car and press G (/lockpick, rebindable), use the
lishi_pick item, or pick "Pick the lock" o

…