Skip to content

Police & EMS tools ​

Everything the police and medics get from np_drugs. Who counts as police and medic is Config.Jobs (Installation → Jobs), on duty where the framework knows duty. Staff with np_drugs.admin pass every job check.

A police search

A frisk shows the inventory as plain items. On top of it the officer checks items one at a time, about 6 seconds each, while the suspect has surrendered (hands up, cuffed or down).

  • One roll per officer and item, stored on the item: training, adjusted by the seal, the rattle of a loose fill, a container stuffed past its line, the cover grade, how many of the same item the suspect carries, and repeat looks. A stack is checked piece by piece (up to 12).
  • Outcomes: nothing unusual, feels off, or found. "Feels off" is a hunch with tells (weight, rattle, glue on the rim, temperature) and a meter with a line. Under the line the item stays closed unless the suspect consents ("May I open this?", E / N) or there is a reason: a K9 alert or an arrest, for 10 minutes.
  • An ordinary container feels off now and then too (5 %).
  • Contraband training in four levels: untrained 5 %, basic 20 %, narcotics 35 %, instructor 50 % per item. It is taught in person at the academy (one lesson, 60 s) by an instructor (or a chief, grade 3) and lapses after 30 days. npdrugs_training <id> <level> (node np_drugs.training) sets it as staff.
Asking for consent Found
Ask Found

K9 units ​

  • A handler with the k9_leash calls the dog (/k9); German shepherd, rottweiler or husky.
  • The dog ignores cover and reacts to the substance itself: weed and meth best, fentanyl worst. A good seal only buys seconds; a crumb is harder to find, a brick easier; smell on clothes counts too.
  • A strong alert (the dog sits and barks) is a reason to open items without consent. Dogs are wrong sometimes (2 %).
  • Vehicle trunks can be sniffed (needs OneSync). A weed-legal server sets Config.K9.legalWeed = true.

Evidence ​

Evidence and the purchase trail

  • Found items go into np_inventory's evidence locker under a case number made for the search (npd00042), with the batch id, the officer and the prints of whoever handled the packaging without gloves. Without an evidence inventory they go to the officer.
  • Examine on an evidence item (cut packaging, a used syringe, chemical waste, a seized product) shows its batch, the parent chain and the receipts that lead to it: who bought the ingredients and equipment in shops that keep receipts.
  • Every seizure fires np_drugs:server:seized (np_gangs raises the turf's police attention).

The police terminal ​

The police terminal

/drugdesk (police on duty):

  • Receipts of the last 72 hours: who bought what a lab takes, where.
  • Power meters of the sites within 40 m of the officer: a running lab stands out against the idle 0.4 kW.
  • The last witness reports and the bad batch alerts.

Tests ​

Breath, swab and blood

Test Who How
Breathalyzer Police Real blood alcohol (falls about 0.15 ‰ an hour). The driver gets a prompt to blow or refuse; refusing is its own offence and justifies a blood test for 2 hours. Legal below 0.5 ‰
Saliva swab Police Six panels (THC, COC, MDMA, MET, OPI, FEN) that develop in 30 seconds. A line at the edge of the detection window is faint on purpose. Below the narcotics training level the officer reads the lines themselves
Blood draw Medics Of a restrained person; comes back from the lab after 10 minutes as a lab report item with amounts and the batch stamp

Each substance has its own detection window per test, and lab fumes leave a trace every test finds. Kits are items with limited uses, so testing everyone is not free. Every result fires np_drugs:server:tested.

Waiting for the swab The lab report
Idle Report

EMS ​

EMS: tox screen and treatment

  • Check on a patient: the signs anyone can see (pulse, breathing, pupils, skin) and the timer to critical.
  • Quick tox screen (tox_kit, 8 s): lists what is in the system, including a cut the patient did not know about.
  • The treatment tray lets a medic pick wrong:
Treatment Helps with Notes
naloxone (antidote) Opioids Buys 2 minutes; fentanyl needs two doses. Throws a dependent patient into withdrawal
sedative Stimulants, ecstasy On opioids or alcohol it makes things worse (a depressant on a depressant)
activated_charcoal Swallowed pills Only in the first 10 minutes
saline Alcohol Fluids and time; brings the blood alcohol down faster
naloxone_spray Opioids What friends carry: buys 3 minutes, at most two
Rescue breaths Everything Buy 30 seconds
  • Bad batch alert: the medic sends the batch id to medics (and, by default, the police terminal), never the patient's name. It counts as a bad batch for the stamp.
  • Report to police (ems.report) is off by default (Config.Ems.reportToPolice); a server turns it on if medics should tell the police about an overdose.
Checking on someone Before the tox screen
Check Untested

The medical record ​

  • Overdoses, tests, treatments and rehab events are kept in np_drugs_medical (medical staff only), with the overdoses of the last 30 days, the dependence stage and running programs.
  • From the record a medic refers to rehab, prescribes a substitute (collected at a clinic within 7 days) or sends a bad batch alert.
  • With md-stempeluhr configured, every entry is mirrored to the MDT's medical module over its HTTP API (patient, vitals sample, treatment record).
  • The doctor at a clinic shows a patient without a phone the same as the Vitals app.

The doctor's view

All numbers are defaults in search.lua, k9.lua, tests_kit.lua, ems.lua and medical.lua (Configuration).