Scripts/Hardshoulder

NL nl_hardshoulder · v1.0.0

Hardshoulder

UK vehicle recovery done the way operators actually do it: a hold-to-run radio remote, a bed you drive, a winch you walk out, and straps on every wheel.

QboxQBCoreESXOneSyncox_lib
Via Discordmessage the team to buy Get Hardshoulder on Discord Read the docs
RECOVERY IN PROGRESS

Features

Everything is synced, so everyone nearby sees and hears it.

Radio remote

An industrial radio handset you hold while you walk about. Hold-to-run on the arrow keys and Q/E, an E-stop, and a mouse mode for clicking the buttons. The server checks the signal range.

Rollback beds

Beds tilt and slide while you hold the button. The lowered deck is solid, so cars drive straight up it.

Walk-out winch

Take the hook off the truck and walk it to the car while the cable pays out behind you. Hook the tow eye, then hold to winch it up.

Wheel straps

Walk up to each wheel and press E. 3D ratchet straps with cleats, hooks and a buckle are built to fit each car's wheels.

Wheel-lifts and lighting board

Forks under the wheels, hold to lift. A UK trailer board with your plate follows the truck's tail, brake, indicator and reverse lamps.

Chapter 8 kit

Set out a cone taper with sequential amber lamps and a RECOVERY IN PROGRESS sign. Cones can be knocked over, and the kit packs away last out, first in.

Safety interlock

The truck only crawls until the bed is stowed, the hook is put away, the load is strapped and the board is on.

Sounds with no sound files

Hydraulic pump, bed beeper, winch motor, ratchet clicks and cone thumps, all positional and synthesised.

Impound and pay

Drop a towed car in the yard and impound it, and the operator gets paid. Works with jg-advancedgarages or your framework's garages.

Your brand on everything

Your company name goes on the handset, the board, its plate and the cone lamps. It's one config setting, with no 3D tools needed.

Server-authoritative

The server checks every action: job, distance, speed, rate limits and state.

Automatic beacons

Beacons and work lights are drawn on any truck model, with no model edits needed.

Install

Five minutes on a clean server.

  1. Put nl_hardshoulder in your resources folder.
  2. Add ensure nl_hardshoulder to server.cfg, after ox_lib, your framework and your target script.
  3. Make sure the jobs in Config.Jobs exist in your framework. The defaults are tow and mechanic.
  4. Set your company name in Config.Brand.
  5. Restart the server and press Y next to a vanilla flatbed or towtruck.

Controls

Players can rebind all of these in GTA Settings › Key Bindings › FiveM. /tow help lists them in game.

KeyAction
YGet the remote out / put it away (Esc or Backspace also puts it away)
↑ ↓ ← →Up/Down: tilt or lift up / lower. Left/Right: bed out / in
Q EWinch in / out. On lift trucks: hook / release
B LBeacons / work lights
SpaceE-stop. Green I resets it, red O stops everything
RMBMouse mode: click the handset buttons
E at a wheelFit or remove a wheel strap (or the lighting board at the trailing end)
GRun the bed all the way down or up
HWinch / hook / release

Config preview

config.lua and the bridge/ files are open, so you can change anything.

config.lua
Config.Brand = {
    enabled = true,
    name = 'HALE RECOVERY',      -- handset label, the board's top strip, cone lamps
    phone = '01632 960123',      -- the small dealer line on the board's plate
    plate = 'HR24 TOW',          -- what the lighting board's number plate shows
}

Docs

The short version. The full README ships with the resource.

Adding your own truck

  1. Set Config.Debug = true and restart.
  2. Add an entry to Config.Trucks with the spawn name as the key. Give it flatbed = { deck = ... } and/or lift = { hook = ... }, plus winch = vec3(...).
  3. Sit in or stand at the truck and use /towoffset to nudge the offsets live. It prints the line to paste into the config.
  4. Set Config.Debug = false when you're done.

Impound support

Garage / frameworkWhat happens
jg-advancedgaragesJG's own impound form opens; one hook line pays the operator once JG confirms
QboxThe car goes to a qbx_garages depot with a release fee
QBCoreplayer_vehicles state 2 with a depotprice
ESXowned_vehicles.stored = 0 for your impound script to pick up
Anything elseEdit Bridge.impoundStore in bridge/server.lua

For developers

Server eventArguments
hardshoulder:hookedsrc, truckNet, carNet, mode
hardshoulder:securedsrc, truckNet, carNet, mode: the load is fully on and secured
hardshoulder:releasedsrc, truckNet, carNet, mode: dropped off
hardshoulder:endedcarNet: every way a tow ends
hardshoulder:impoundedsrc, plate, vehicleId or nil

Exports: IsTowTruck(modelHashOrName) (client and server), GetTow(carNet) and InDepotYard(coords) (server).

Troubleshooting

There are no options on the truck

No supported target script was found (check F8), or the player doesn't have a job in Config.Jobs or isn't on duty (Config.RequireOnDuty).

The car sits off the deck or the forks miss the wheels

Tune that truck's offsets with /towoffset in Debug mode.

The truck stays at crawl speed

The handset screen says why: straps, board, bed not stowed, or hook out.

My brand doesn't show

Check Config.Brand.enabled and that name isn't empty. Props fall back to neutral RECOVERY textures.

Requirements

Libraryox_lib
FrameworkQbox, QBCore or ESX
Targetox_target, qb-target or lation_interact
ServerOneSync
Optionaloxmysql (impound on QBCore/ESX)
Optionaljg-advancedgarages

Changelog

1.0.0

  • Radio remote, rollback beds, winch, wheel straps, wheel-lifts and lighting board
  • Chapter 8 kit, safety interlock, synthesised sounds
  • Impound for jg-advancedgarages, Qbox, QBCore and ESX

Run recovery properly.

Message the team on Discord to get it.

Get Hardshoulder on Discord