Sal’s Kewl Korner

Home / Documentation / Sal's Kewl Weigh Station

Sal's Kewl Weigh Station — owner's manual

Commercial vehicle weigh stations: a real scale, a scale house, inspection bays and freeway signs. Officers run a station, or it runs itself with AI officers who weigh every truck, inspect some and write the citations your rules call for. This manual covers installation, the ready-made Senora Freeway station, setting up your own, the officer's tablet, every command and setting, and troubleshooting.

documents resource version 0.5.0-beta↓ PDF

Overview

Sal's Kewl Weigh Station puts commercial vehicle enforcement on your server: a real scale deck, a scale house, inspection bays and the signs a trucker passes on the way in. Your officers open a station and run it. When none are on, the station can run itself, with AI officers who weigh every truck, pull some in for inspection and write the citations your community's rules call for.

Three ideas carry the whole resource:

  • A station is a place you set up in game: the scale, the ramp in, the exit, the bays, and the stretches of highway before and after it. It is open, closed, or run by the AI.
  • Every weight is real. A truck is weighed axle group by axle group from its model's empty weight and where its load sits. The server does the weighing; nothing a player's game says can change it.
  • The rules are yours. Which vehicles must enter, the limits, every fine and every violation are set in game. There is no config file, and an update never overwrites what you set.

What ships

  • A ready-made station on the Senora Freeway, northbound at the aqueduct pumping station, added with one button. A map resource that comes with it builds it into the map.
  • A layout editor for stations of your own, anywhere, with a full station layout on one key.
  • AI officers who talk, in English and Spanish: the scale house over the yard loudspeaker, the inspector at the truck.
  • AI trucks: tractors with dry vans, reefers, tankers, flatbeds and log trailers; box trucks, dump trucks and mixers. Some are overweight or have something wrong with them.
  • Enforcement on players. A player driving a commercial vehicle past an open station must pull in. Bypassing is fined, or sent to your officers with the plate and a blip.
  • The officer's tablet (/cve): Level I, II and III inspections, portable wheel scales, cargo searches, reports, a lookup.
  • An out-of-service register and safety records for drivers and carriers.
  • Drivers can talk to the inspector, from a list of replies, or out loud where your community has Sal's Kewl voice AI.
  • A transponder bypass (off until you turn it on), night lighting, a Discord log, and citation history kept across restarts.
  • 18 props of our own: the scale deck, scale house, freeway-size signs, the lane signal, an LED scoreboard that shows the gross weight, light poles and portable scales.

This is a beta. Everything on this page is in the build, but it has had far less time on live servers than our older resources. Tell us what you find.

Requirements

  • A FiveM server with OneSync (the AI trucks are created by the server).
  • Optional: qb-core, qbx_core or ESX for jobs and fines. Without a framework the resource runs standalone: every citation is still recorded and still sent to your other resources, and officers come from the Public Safety Simulator's /pssduty, or admins.
  • Optional: Sal's Kewl Public Safety Simulator, Sal's Kewl Dispatch and Sal's Kewl Roadside Assist. See Other Sal's Kewl resources.

Installation

  1. Drop the sals_kewlweighstation folder into your server's resources.
  2. Add it to server.cfg, after your framework if you use one:
    ensure sals_kewlweighstation
  3. Give your admins the panel:
    add_ace group.admin weighstation.admin allow
  4. Optional: the ready-made Senora Freeway station built into the map. Put the sals_kewlweighstation_senora folder beside the first one and add it:
    ensure sals_kewlweighstation
    ensure sals_kewlweighstation_senora
  5. Restart the server and type /weighstation.

The map is a map. sals_kewlweighstation_senora carries its own copies of the props, so restarting sals_kewlweighstation never touches it. Like any map, do not restart it while players are on: start it with the server and leave it.

If you already run another map of that pull-off (a weigh station ymap of your own at the aqueduct), remove one of them. The two would stand on top of each other.

Updating

Copy the new folder over the old one and restart the server. Your stations, rules, fines, citations and records are kept in the server's own storage, outside the resource folder, so nothing you set is lost.

The ready-made station

On the panel's Stations tab, Senora Freeway, northbound, at the aqueduct has an Add this station button. It adds a complete station with every point set:

  • On the northbound freeway's shoulder: the advance sign, ALL TRUCKS MUST ENTER, and the WEIGH STATION sign with its OPEN/CLOSED panel just before the ramp.
  • The frontage lane splits at its south end. Markers send trucks into the right side, against the barrier wall: 5 MPH, STOP ON SCALE, the SCALE marking and the scale deck.
  • The scale house stands in the lot behind the wall, its window over the barrier at the cab. The signal and the scoreboard are behind the wall past the deck, where the driver reads them.
  • Two inspection bays further up the same lane, against the wall. The rest of the lane is free on their left for trucks that were waved through. Everyone rejoins the freeway where the lane merges.
  • The lot is out-of-service parking.

With sals_kewlweighstation_senora running, the scale, scale house, signs and markings are part of the map, and the main resource draws only the OPEN/CLOSED sign, the signal and the scoreboard. Without it, the main resource draws all of them near the station. Either way you can open the station, move its points or change its hours like any other. Its layout comes from the map, so the layout editor's F has nothing to replace there.

Setting up a station

  1. /weighstation opens the panel. On Stations, press New station where I stand. You are in the layout editor, and the scale deck is where you stood, pointed the way you faced. Face the way trucks will drive across it.
  2. PAGE DOWN changes the tool (hold SHIFT to go back). Aim where each point goes and press ENTER:
    • Scale deck: the deck's center, pointed the way trucks cross it.
    • Ramp in: where AI trucks come off the highway.
    • Exit: where trucks leave the station.
    • Scale house officer: where the AI officer stands at the window. A full layout puts one in for you.
    • Inspection bay: up to three, pointed the way a truck pulls in. Put them on the passenger side, past the deck, with room for a tractor-trailer to swing in.
    • Highway before (must enter): a circle on the highway before the ramp. A commercial vehicle in it while the station is open must enter.
    • Highway after (bypass): a circle on the highway past the station. A truck that reaches it without being weighed has bypassed.
  3. Q / E turn what you are placing (hold SHIFT to turn slowly), NUMPAD + / NUMPAD - size a highway circle, BACKSPACE removes what you aim at.
  4. Press F for the full layout: the deck, stop bars, the scale house with its window on the lane, bollards and barrier, the scoreboard and the lane signal, the advance, "must enter", scale speed and inspection signs, the OPEN/CLOSED sign at the ramp, site lights and bay cones. Press it twice if the station already has props: it replaces them. On the Props tool, the arrow keys pick a prop to add.
  5. F6 saves and leaves. ESC twice leaves without saving.
  6. Back in the panel, name the station and choose what happens with no officer there, its AI hours, and whether AI trucks come through.

The panel says which points a station is still missing. A station needs the ramp in and the exit for AI trucks, and the two highway circles to enforce on players.

Open, closed, or run by the AI

Each station chooses what happens with no officer there: the AI runs it when no officers are on, the AI always runs it, or it stays closed. AI hours (server time) are optional. Admins can open or close any station from the panel, or set it back to Automatic.

AI officers and AI trucks

At a station the AI is running there is one officer at the scale-house window and one in each bay.

  • They talk. The scale house calls each truck over the yard loudspeaker: hold for your weight, clear to go, or pull into a bay. The inspector talks the driver through the inspection. Voices are heard by distance, with subtitles close by, in English or Spanish.
  • The inspector walks the truck the way a roadside inspection goes: the driver's window for the paperwork, the steer tires and lights, down the far side and under the truck at the brakes, the back of the trailer with a flashlight, and back up the near side.
  • AI trucks come through while a player is near an open station, and are always removed afterward. Each has a load and its weight. Some are overweight, and some have something wrong for an inspection to find.
  • The scoreboard shows the gross weight of the truck on the scale and what the driver should do. The lane signal goes red and green, and the OPEN/CLOSED sign follows the station.
  • After dark the station's light poles and the scale house light the yard.

Every layout prop and every AI officer is drawn on each player's own screen, only near the station. Nothing is networked and nothing is left behind.

What a driver sees

A player driving a commercial vehicle toward an open station must pull in. Which vehicles count is yours to set, by vehicle class and by model, with exemptions.

  1. On the highway, the driver is told the station is open and that they must enter.
  2. On the scale they stop and get a scale ticket: every axle group, the gross, and anything over a limit in red.
  3. They are waved through, or sent to a bay with a waypoint.
  4. In the bay the inspector works the truck. The driver can talk to them.
  5. A citation comes up with each violation and its fine. Fines are really taken, from bank or cash, into the red or not, as you choose.

Bypassing an open station is enforced. An AI-run station fines it. At an officer-run station the officers get the plate, the model and a blip to chase.

Talking to the inspector

While the AI inspector is working a driver's truck in a bay, the driver can talk to them. A notice names the key: G as shipped, and each driver can change it in Settings > Key Bindings > FiveM.

  • Tap the key for the list. UP and DOWN choose, ENTER says it, BACKSPACE closes. The inspector answers out loud, and anybody standing near hears it.
  • What a driver can say: Why was I pulled in? (the answer is the real reason: the weight, the speed across the scale, an out-of-service order, or a random inspection), How long is this going to take?, Here's my license, registration and logbook, That scale is wrong (only when they are over), I'm not handing anything over, and Thanks, officer.
  • Refusing has a price. A driver who refuses to hand over their papers and never does gets "Refused to produce license, registration or logbook" on the citation, at the fine you set under Fines ($250 as shipped). Handing them over before the inspection ends takes it back.

Out loud

If your community has Sal's Kewl voice AI, through Sal's Kewl Dispatch or Sal's Kewl AI Link, the driver can hold the key and speak instead. What they said is matched to one of the same replies. The inspector only ever says its recorded lines, and nothing a driver says changes a weight or a finding. The game asks for the microphone the first time. Without the voice AI, holding the key does nothing more than a tap.

Both are on as shipped, and both have a switch under AI trucks & officers: Drivers can talk to the inspector and Drivers can speak to the inspector out loud.

Working a station (officers)

The jobs that can work a station are set in the panel under Who works it: police, sheriff, state, cve and dot to start with.

  • Walk up to the station and press E for the station controls, then Open the station. This also takes it over from the AI. Press E near it again any time for the controls.
  • A truck on the scale: the readout shows at the side of your screen. Y waves it through, U sends it to inspection. Nobody answering within a minute waves it through.
  • In a bay: Inspect opens the tablet on that truck. Tick what you are citing, put it out of service if needed, and file it, or release the truck with a warning.
  • Closing it from the controls closes the station. It stays closed (the AI does not take over) until an officer opens it, or an admin sets it back to Automatic.

The officer's tablet

/cve opens it, at a station or on the shoulder of any road. Stand at the truck first. You can bind a key to it, and with the Public Safety Simulator it is on the wheel.

  1. This truck shows the plate, who is at the wheel, their safety record and their carrier's, and any out-of-service order in force.
  2. Choose a level. Level III is the driver and the credentials. Level II adds the walk-around. Level I adds under the vehicle, and lets you search the cargo. Each part comes back Pass, Minor, Major or Out of Service. An inspection only finds what its level looks at.
  3. Weigh with portable scales on a stopped truck: you kneel, the pads go under the wheels, and the axle weights come up.
  4. Search the cargo on a Level I. A search can come up empty. With the Public Safety Simulator, a working K9 beside the truck never misses.
  5. File the report. What was found is already ticked. Put the vehicle or the driver out of service with a reason if needed, write the narrative, and file it. The fines are always your rules', never typed in.
  6. Lookup finds orders, citations and a record by plate or name, and lifts an order (a reason is required). Past reports are yours to read back.

Call a tow on the tablet fires an event for your tow resource, and with Sal's Kewl Roadside Assist it sends the wrecker.

Out of service and safety records

  • An out-of-service vehicle will not run until its time is up or an officer lifts the order. Moving it anyway is a separate fine.
  • The register holds every order, on a vehicle (by plate) or a driver, with the reason and who placed it. Lifting an order is recorded too. Nothing is deleted.
  • A driver under an order who drives onto a scale is pulled in and cited.
  • Safety records. Every driver, and every carrier (the driver's job), has a score from 100 down. Violations and bypasses lower it. Clean inspections and time raise it.

The transponder bypass

Off as shipped. Turn it on under Rules, Transponder bypass.

A truck entering the "must enter" zone is screened before the ramp: no out-of-service order, legal weight, a safety score at or above the line you set, and not this time's random pull. Green: it owes the station nothing and keeps rolling. Red: it must pull in, and driving past is a bypass as before. A share of AI trucks roll past on green too.

Commands and keys

Command or keyWhoWhat
/weighstationAdminsThe panel. Officers standing at a station get its controls.
/cveOfficersThe tablet.
/wsload <pounds> [what]Officers and admins (drivers if the rules allow)Set the load of the truck you are in or beside, for roleplay.
EOfficers at a stationThe station controls.
Y / UThe officer at the windowWave the truck on the scale through, or send it to inspection.
GA driver being inspected by the AITalk to the inspector. Hold to speak, where voice AI is on.

Y, U, G, the tablet key and the editor's tool key are FiveM key bindings. Each player changes their own in Settings > Key Bindings > FiveM, and every prompt names the key that player actually has.

Settings and updates

Everything is under /weighstation. The arrow beside a setting puts it back to the shipped value.

  • Stations: add, edit, open, close, hours, AI trucks.
  • Rules: whether players are enforced on, which vehicle classes and models must enter and which never do, the weight limits and tolerance, the scale speed limit, how often the AI inspects at random, out-of-service times, the transponder bypass, and the table of what an inspection can find. Each violation has its chance, fine, out-of-service flag and license points. Add, change or remove violations.
  • Fines: every fixed fine, which account pays, and whether a driver can go into the red.
  • AI trucks & officers: how often trucks come, how long an inspection takes, the officers' voices, volume and language, and whether drivers can talk to the inspector.
  • Who works it: the jobs that are officers.
  • Citations: the history, kept across restarts, and the Discord log. Paste a webhook there and citations, bypasses, reports and out-of-service orders are posted. The address stays on the server.

The limits are the US federal ones until you change them: 80,000 lb gross, 12,000 on the steer axle, 20,000 on a single axle, 34,000 on a tandem.

For developers: exports and events

Server events

EventWhenData
sals_kewlweighstation:citationEvery citation{ src, plate, model, station, kind, violations, total, paid, oosMinutes, points, officer, name, at }
sals_kewlweighstation:outOfServiceA vehicle is put out of serviceThe same
sals_kewlweighstation:outOfServiceLiftedAn officer lifts an order{ order }
sals_kewlweighstation:bypassA player's truck bypasses an open station{ src, plate, model, station, coords, heading, by, at }
sals_kewlweighstation:reportAn officer files an inspection reportThe report
sals_kewlweighstation:contrabandA cargo search finds something{ src, officer, plate, netId, what, coords }
sals_kewlweighstation:towRequestedAn officer calls a tow{ officer, plate, netId, coords }

Server exports

ExportWhat
GetStations()Every station: { id, label, coords, open, by }
IsOpen(id)Whether a station is open
IsOfficer(src)Whether this player can work a station
SetCargo(vehicleNetId, lb, label)For a trucking job: what this vehicle is carrying. Without it a player's load is decided once per plate per hour.
SetManifest(vehicleNetId, { cargo, hazmat, placards, permit, papersMatch, hoursOk })What a trucking job declares. false is found by an inspection, true never is.
SetContraband(vehicleNetId, label or nil)Something a cargo search can find
GetCitations(plate?)The citation history, or one plate's
IsVehicleOutOfService(plate or netId)true/false, and the order
IsDriverOutOfService(src)true/false, and the order
GetSafetyRecord(src)The driver's and their carrier's record
GetReports()Filed inspection reports

Troubleshooting

No AI trucks come through

  • Trucks only exist while a player is near an open station. Stand at it for a minute.
  • The station needs its Ramp in and Exit points. The panel says which points are missing.
  • Check AI trucks is on for that station, and that the server runs OneSync.

Players are not made to pull in

  • The station needs both highway circles: Highway before (must enter) and Highway after (bypass).
  • Check Enforce on players under Rules, and that the vehicle's class or model is on the must-enter list and not on the exempt list.
  • A closed station enforces nothing.

Everything at the Senora station is doubled

Another map of that pull-off is running beside ours. Remove one.

The officers do not talk

Check AI officers talk and the volume under AI trucks & officers. Voices are heard by distance: the inspector carries about 30 meters, the loudspeaker about 70.

The talk key does nothing

  • It only works while the AI inspector is working your own truck in a bay.
  • Another resource may hold G: rebind it in Settings > Key Bindings > FiveM.
  • Holding it to speak needs Sal's Kewl voice AI on your community. Without it, a hold is a tap.

/cve says there is no truck

Stand beside the truck, and be on duty in one of the jobs listed under Who works it.

A fine was not taken

The citation says whether it was paid. With Take fines into the red off, a driver without the money gets an unpaid citation: recorded, and sent to your billing resource through the citation event. Without a framework, citations are recorded and sent to your other resources, and nothing is charged.

Support

Questions, bugs, and requests land on Discord. Documentation fixes ship fast. If something on this page is missing, wrong or unclear, say so.

The resource is licensed for use on the servers you own or administer. The full license is in the download.

Didn’t find it? Ask Squawky, or open a ticket on Discord and tell us what you already tried.