Home / Documentation / Sal's Kewl Hazmat
Sal's Kewl Hazmat — owner's manual
Hazardous materials for fire departments, DOT and towing: spills and their cleanup, leaking drums, a placarded tank truck, gas leaks, chlorine and ammonia, a guidebook that plots its distances on the map, and meters that read like the real instruments. It works on its own, or beside Sal's Kewl Public Safety Simulator. This manual covers installation, the calls, the work on scene, every command and setting, and troubleshooting.
Overview
Sal's Kewl Hazmat turns a hazmat call into the work a hazmat crew actually does: size it up, identify the product, meter the air, isolate the area, stop the leak, contain it, clean it up, re-meter and release the scene. Nothing is a progress bar on a button. A spill is on the road and grows until somebody stops it; a meter has to be zeroed in clean air; the absorbent holds what the real product holds.
Three ideas carry the whole resource:
- An incident is owned by the server: what leaked, how much is on the ground, how fast it is still coming, where the vapor is going. Every player on scene sees the same spill and reads the same air.
- The meters read that air the way the real instrument would, including the ways a real instrument misleads an untrained crew.
- The equipment comes off the rig. Socks, pads, drums, tape and the decon shelter are taken from an emergency vehicle and placed where you want them.
What ships
- Thirteen calls that come in on their own, with a page, a blip and a route. No other dispatch script is needed.
- A placarded tank truck leaking from a valve underneath, with an emergency shutoff to pull.
- The guidebook (
/hazguide): guide page, class and the 2024 guidebook's distances, plotted on the map from the live wind. - A four-gas monitor that works like the instrument: warm-up, a fresh-air zero, sensors that lag, correction factors, an over-range latch, low and high alarms with their own tones, a peak page.
- Sixteen substances with their UN numbers, guide pages, flammable ranges and vapor data, from published sources.
- 47 props of our own, built to real sizes: drums, overpack, absorbents, drain cover, containment pool, leak kit, waste bag, zone tape and stands, a windsock that flies with the game's wind, a decon shelter and the DOT placards.
- Spills you can see, which grow, spread and shrink as they are cleaned up, and make cars slide.
- Settings in game. There is no config file.
/hazmatopens a panel for admins, and an update never overwrites what you set there.
Requirements
- A FiveM server artifact with OneSync.
Everything else is optional and found when the server starts.
| Optional | What it adds |
|---|---|
| qb-core, Qbox or ESX | Jobs decide who is fire, who carries meters and who may clean up. With no framework, everyone is a responder. |
| Sal's Kewl Public Safety Simulator | Its own dispatch and calls. Hazmat runs side by side with it. |
| Any dispatch or CAD script | Can start hazmat calls and hear about them through the exports and events. |
Installation
- Put the
sals_kewlhazmatfolder in yourresourcesfolder. - Add it to
server.cfg, after your framework, and give your admins the panel:ensure sals_kewlhazmat add_ace group.admin hazmat.admin allow - Restart the server.
- In game, as an admin, run
/hazmat. Set which jobs are the fire department, which other jobs carry meters or may clean up (DOT, towing, a contractor), and turn calls on or off. - Save a few places for calls if you want them somewhere in particular. Building calls (gas in a building, carbon monoxide in a house) only come in at places saved inside a building: stand inside one and use Save where I stand (inside a building).
Updating
Replace the folder with the new one and restart. Your settings and saved places are kept in the server's own storage, not in the folder, and are not touched. A new setting starts at its default until you change it.
Commands and keys
| Command | Key | Who | What it does |
|---|---|---|---|
/hazmat | Admins (hazmat.admin) | Settings, calls, places for calls, test incidents. | |
/hazkit | F7 | Fire, and jobs allowed to clean up | Equipment off the rig. Stand next to an emergency vehicle. |
/hazwork | G | Fire, and jobs allowed to clean up | What you can do where you stand: read a label, plug, shut off, spread, sweep, shovel, release. |
/fourgas | Fire, and jobs allowed meters | Take out or put away the four-gas monitor. | |
/hazguide | Everyone | The emergency response guidebook, and plotting its distances on the map. |
The monitor's three buttons are keys of their own: power (↓), mode (←) and acknowledge / zero (→). Every key can be changed in Settings > Key Bindings > FiveM, and the guidebook can be given a key there too.
Placing equipment
The mouse wheel turns the piece, left click puts it down, right click stops. Zone tape: click where it starts, then where it ends; a stand goes in every 3 m.
The calls
Calls come in on their own every 25 to 50 minutes while at least one
responder is on duty, one at a time. Responders get a page, a blip and a
route. A call nobody goes near closes itself after 45 minutes. All of
these are settings in /hazmat, where an admin can also send a
call now.
| Call | What is on scene |
|---|---|
| Fuel spill in the roadway | Gasoline on the road. The car has been towed; the fuel has not. |
| Diesel spill in the roadway | A punctured saddle tank's diesel on the road. |
| Motor oil in the roadway | Oil across a lane. |
| Antifreeze spill | A radiator let go. |
| Drums off a truck | Drums off a flatbed, one of them leaking. The driver gives the UN number. |
| Suspicious drum | One dumped drum with no markings, something weeping out of it. See Unknowns. |
| Leaking tank truck | A placarded tank truck leaking from a valve underneath. See The tank truck. |
| Struck gas line | A contractor dug into a natural gas line; gas is blowing from the hole. |
| Leaking propane cylinder | A cylinder leaking at the valve. |
| Chlorine leak | A chlorine cylinder leaking at the valve; people nearby are coughing. |
| Ammonia leak | An ammonia refrigeration line leaking, closed at its main shutoff valve. |
| Odor of gas in a building | Gas in a building. Only at a place saved inside a building. |
| Carbon monoxide alarm | CO in a house, people inside with headaches. Only at a place saved inside a building. |
Where calls go
With no places saved, outdoor calls go to a road 600 to 1,800 m from a
responder. Save places in /hazmat > Places for calls to keep
them where you want them: outdoor places for road and yard calls, places
inside a building for the two building calls.
Working a call
- Size up. Read the page. Come in from upwind; the
windsock on scene shows the wind. Read the label on a drum or cylinder,
or the placard on a truck (G next to it), and
look the product up in
/hazguide. Plot the distances on the map. - Meter it.
/fourgas, power it on, zero it in clean air, then walk in. Crouch for vapors heavier than air. - Isolate. Hot, warm and cold zone tape off the rig (F7).
- Stop it. Put the leak kit down next to a leaking drum and plug it (G), then put an overpack down next to it and overpack it. A gas leak is shut off at its valve: the curb valve, the gas meter, the cylinder, the refrigeration line's main shutoff or the appliance. A tank truck has an emergency shutoff at the front of the tank, on the driver's side.
- Contain it. Socks along the downhill half of the spill's edge stop it spreading. A containment pool under a leaking drum catches the drip.
- Clean it up. Pads in the spill soak it up on their own. For more, put a bag of absorbent down, spread it (G), work it in with the broom, then shovel it into a waste bag or an open-head drum. Used pads and socks are bagged the same way (G next to them, with a waste bag near). Test a corrosive with pH paper.
- Re-meter and release (G). If the scene is not ready, it says what is left: product on the ground, a leak still running, used absorbent lying out. On release you get a summary of what was recovered. The call's drums, the overpack and the waste go with it; your clean gear stays for you to pick up.
A building call is different: find the source with the meter, shut it off, then open the building up and ventilate it, and wait for the air to clear before you release it.
The tank truck
The Leaking tank truck call puts a tractor and a cargo tank in the road, leaking from a valve underneath. Gasoline, diesel or ethanol, picked at random. Traffic stops short of it.
- The placards carry the UN number on the rear and on both sides. Read the placard (G at the truck) gives the number and the hazard class; look it up in the guidebook.
- The emergency shutoff is at the front of the tank on the driver's side. Pull it (G there) to stop the leak.
- Then contain and clean up the pool the same as any spill. A tank truck puts far more on the ground than a car, so bring absorbent.
Unknowns: the suspicious drum
A Suspicious drum has no label and no markings anywhere. Reading it says so: treat it as unknown. Meter it, and test what is weeping out of it with pH paper. Plug it, overpack it and clean it up as usual; the lab names the product when you release the scene.
The guidebook
/hazguide opens the emergency response guidebook. Type a UN
number from the placard or label, or a name, and pick the product. Its page
shows:
- the guide page number and the hazard class;
- for a spill or leak, how far to isolate in all directions;
- for a large spill, how far to evacuate downwind;
- for a tank, rail car or tank truck in a fire, how far to isolate in all directions;
- for gases that are toxic to breathe (chlorine, ammonia and the like), the isolation and protective-action distances for a small and a large spill, by day and by night. Game hours 7:00 to 19:00 count as day.
Distances are given in meters and feet, and miles for the longer ones. Every distance is the 2024 guidebook's.
Plotting it on the map
Plot: small spill, Plot: large spill or Plot: fire draws the isolation ring and the downwind zone on the map around the nearest call (or where you stand), turned to the live wind. It redraws as the wind shifts, and a ring is drawn on the ground when you are near. Clear takes it off.
An admin can turn the guidebook off; see Settings.
The four-gas monitor
The monitor reads oxygen, flammable gas (% of the lower explosive limit), carbon monoxide and hydrogen sulfide at your hand. It behaves like the instrument:
- Warm-up. 45 seconds after power on before it reads.
- Fresh-air zero. It asks to be zeroed. Zero it in clean air. Zero it in bad air and every reading after that is wrong, as on the real thing.
- Sensors that lag. Each sensor takes 10 to 15 seconds to show most of a change. Walk slowly.
- Correction factors. The flammable sensor is calibrated to methane, so other products read high or low by their published factor. Some products (diesel vapor, for one) barely register on it at all.
- Over range. A flammable reading past the top of the scale latches until it is acknowledged in clean air.
- Alarms. Low and high alarm points with their own tones (the U.S. factory set: oxygen 19.5 / 23.5 %, flammable 10 / 20 % LEL, CO 35 / 200 ppm, H2S 10 / 15 ppm). Acknowledge with the third button.
- Peak. The mode button turns to the peak page: the highest readings since it was switched on, and the lowest oxygen.
Vapor travels downwind, vapors heavier than air lie low (crouch to meter them), light gases climb, and a closed building fills up and clears once it is ventilated.
Equipment off the rig
F7 next to an emergency vehicle opens the equipment. Everything holds what the real product holds, from the makers' data sheets:
| Piece | Holds or does |
|---|---|
| Absorbent sock | 2.8 L. Dams a spill so it stops spreading. |
| Absorbent pad | 832.7 mL. Soaks on its own where it lies. |
| Bag of clay absorbent (35 lb) | 3 gallons. Spread, worked in with the broom, shoveled up. |
| Containment pool | 148 L. Catches a leaking drum's drip. |
| Leak repair kit | Plugs a punctured drum. |
| Overpack drum | Takes a leaking drum. |
| Open-head drum, waste bag | Take the used absorbent. |
| Drain cover | Over a storm drain. |
| Zone tape and stands | Hot, warm and cold zones. |
| Windsock | Flies with the game's wind. |
| Decon shelter, DOT placards | Set dressing for the scene. |
Pick your clean gear back up with G. Each player can have 60 pieces out at a time.
Substances
Sixteen substances, each with its UN number, guide page, flammable range, vapor density, vapor pressure and meter correction factors, transcribed from published sources:
gasoline, diesel, ethanol, propane, natural gas, chlorine, ammonia, sulfuric acid, sodium hydroxide, hydrochloric acid, carbon monoxide, hydrogen sulfide, antifreeze, motor oil, grease and hydraulic fluid.
Settings and updates
There is no config file. An admin runs /hazmat; changes save
as you make them and survive every update.
| Group | Settings |
|---|---|
| Who may do what | Fire department jobs (always allowed to meter, mitigate and clean up), other jobs issued meters, other jobs allowed to clean up, must be on duty. |
| Calls | Calls come in on their own; shortest and longest time between calls; responders on duty before calls come in; calls open at once; close a call nobody went to after so many minutes. |
| Equipment | Only near an emergency vehicle; pieces one player can have out. Fuel and oil on the road make cars slide. |
| Meters | Warm-up time; alarm volume. |
| Four-gas alarm points | Low and high for oxygen, flammable gas, CO and H2S. A low alarm cannot be set above its high one. |
| Buildings | Air changes per hour once a building is ventilated. |
The panel also has Send a call now, Places for calls, and Incidents: place a test incident where you stand, stop its leak, or remove any open incident.
With no framework, everybody may do everything.
For developers: exports and events
-- Start one of the calls (any, or by id), at a place or a road near a responder.
exports.sals_kewlhazmat:Dispatch('drums', vector3(x, y, z))
-- From a dispatch script that pages its own way: the incident is opened and
-- nobody is paged from here. The tag is carried to the release summary.
exports.sals_kewlhazmat:Dispatch('tanker_leak', { x = x, y = y, z = z, h = heading },
{ quiet = true, tag = 'mycad:123' })
-- Or describe your own incident.
local id = exports.sals_kewlhazmat:Open({
substance = 'gasoline',
coords = vector3(x, y, z),
kind = 'pool', liters = 60, litersPerMinute = 6, source = 'tank',
})
exports.sals_kewlhazmat:Stop(id) -- the leak is plugged
exports.sals_kewlhazmat:Ventilate(id, true)
exports.sals_kewlhazmat:Close(id)
-- Hear about calls (to page them in your own dispatch) and close-outs.
AddEventHandler('sals_kewlhazmat:call', function(id, call) end)
AddEventHandler('sals_kewlhazmat:released', function(summary) end)
Call ids: fuel_spill, diesel_spill,
oil_spill, antifreeze_spill, drums,
suspicious_drum, tanker_leak, gas_line,
propane_leak, chlorine_leak,
ammonia_leak, gas_building, co_house.
Still to come
- The photoionization detector and the thermal camera (the props are built; the instruments are not).
- A spill reaching a storm drain, and fuel vapor catching fire.
- Placing a placard on a moving vehicle (it is placed on the spot).
- Protection levels with air time, and the full decon line.
Troubleshooting
No calls come in
- Check Calls come in on their own is on in
/hazmat. - Calls wait for enough responders on duty. Check the fire department jobs list matches your fire job's name, and Must be on duty.
- Only one call is open at a time by default; close the open one.
- Building calls never come in until a place is saved inside a building.
F7 does nothing
- Equipment comes off an emergency vehicle: stand within reach of one, or turn off Equipment only near an emergency vehicle.
- Your job is not fire and not on the cleanup list.
- Another resource holds F7: rebind it in Settings > Key Bindings > FiveM.
"Your job is not issued hazmat meters"
Add the job to Other jobs issued meters in
/hazmat.
The meter reads wrong
It was probably zeroed in bad air. Power it off, walk to clean air, power it on and zero it there.
The scene will not release
Releasing says what is left. Usually it is product still on the ground, a leak not yet stopped, or used pads, socks or absorbent still lying out: bag them (G next to them with a waste bag near).
A setting was not saved
The panel says why: the value is outside its range, or a low alarm would sit above its high one.
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.