Production ​
Production is part of np_drugs. A lab is a set of placed equipment items; a run walks through the stages of one of six lines and ends in a batch with an id, a purity and a grade, ready for the batch table.

The six lines ​
| Line | Substance | Equipment | Ingredients per set | Stages | Yield per set |
|---|---|---|---|---|---|
| Grow | Weed | grow_tent, grow_lamp |
4 weed_seed, 1 fertilizer |
plant (attended), growing 3 days (water every 8 h), harvest (attended), dry 1 day | 70 g |
| Process | Cocaine | maceration_barrel, gas_burner |
6 coca_leaf, 1 kerosene, 1 baking_soda |
soak, extract (attended, fumes), settle, dry | 90 g |
| Cook | Meth | lab_glassware, gas_burner |
4 pseudoephedrine (or cold_medicine), 1 solvent |
mix (attended), heat (attended, heavy fumes), crystallise, dry | 115 g |
| Refine | Heroin | lab_glassware, gas_burner |
2 raw_opium, 1 lab_acid |
dissolve (attended), react (attended, fumes), filter, dry | 90 g |
| Press | Ecstasy | pill_press |
1 safrole_oil, 1 pill_binder |
blend (attended), press (attended), cure | 135 pills |
| Distil | Alcohol | fermenter, copper_still, gas_burner |
1 corn, 2 sugar, 1 yeast |
mash (attended), ferment 2 days (sugar every 12 h), distil (attended), rest | 40 drinks |
Tobacco is bought; fentanyl is only imported or diverted from EMS stock. A run takes 1 to 3 or 4 sets. Where an
ingredient has options, the best one in the pockets is used (pseudoephedrine beats cold_medicine).
Running a lab ​
- Placing: use an equipment item to set it down (4 s). Equipment placed within 12 m of a lab joins it. A lab exists from its first piece until the last piece, the product and the waste are gone.
- Where:
Config.Production.sitesdecides, in this order: yourcustomfunction (wire your housing or garage resource here), the fixed sites (a shack in Sandy Shores, a rented garage on Carson Ave, a barn in Paleto Bay), any interior (a routing bucket other than 0), andanywhere(off by default). With np_gangs thebeforeProducehook adds lab slots and permits per turf. - Attended stages are a small skill game the server times and scores: hold a temperature, a stirring speed or a pressure inside a band with A / D while it drifts and wobbles, vent fumes with W. Too long past the line and the stage fails: a boil-over (fire for 45 s, equipment damage, a lost batch, a 911 call from next door) or a ruined batch. With np_minigames running they are short server-validated checks instead, see Lab minigames.
- Unattended stages run on persistent timers that survive restarts. Some need care (water for the plants, sugar for the mash); missed care costs purity. The last stage can be rushed at the cost of one grade.
| Waiting | Grow line | Done |
|---|---|---|
![]() |
![]() |
![]() |
Lab minigames (np_minigames) ​
np_minigames is optional; np_drugs only calls its server export Start (and Cancel / IsActive). With it started
and Config.Minigames.enabled on (the default), an attended stage is played like this:
- Begin the stage at the bench as before. np_drugs' clock still runs it for its full length; instead of the
meter, a check comes up every
everyseconds (mode = 'checks', default 60 s, at mostmaxChecks; a 30 s mix is one check, a 420 s heat seven) or once per stage (mode = 'once'). The lab screen steps aside while a check runs; press E at the bench to see the stage again. - A check is an np_minigames
balancerun started by the server for the cook: the preset is the stage's game (heat,simmer,stir,pressure,trim),secondslong, atdifficulty[preset], one step harder with equipment underworn%, one step easier afterpracticedfinished runs of the line. Stages without fumes are played without them. Walking away from the bench (Config.Production.distance+ 1 m) ends the check. - Care: the stage's care is the average
result.stats.careof its checks (still 35 % of the purity, and the yield's care share). A check that was cancelled, timed out, walked away from or refused as implausible counts 0; so does a missed one. - Failing: a check that ends
overheat/brokenfails the stage the way the meter's line does: a boil-over (fire, equipment damage, the witness call) or a ruined batch. A due check waitsgraceseconds for the cook at the bench; then it is missed, and a stage that can boil over or jam does. - Fumes: the fumes a check leaves in the room reach everyone at the bench without a respirator, through np_drugs' own exposure (health, the trace every test finds). Between checks the room is aired at the vent's pace.
- Stays np_drugs': the timers, who works the stage (someone else may take over a bench nobody stands at; the open check of the one who walked off counts 0), equipment wear, smell, power, waste, purity and yield.
- Trust: only np_minigames' own callback for the check np_drugs started counts. The NUI cannot steer such a stage, there is no RPC to report a result, and stale, repeated or foreign results are ignored. A check that was open when np_drugs or np_minigames stopped does not count; if no check of a stage could be played at all, its care is 50 %.
-- shared/config/production.lua
Config.Minigames = {
enabled = true,
mode = 'checks', -- 'checks': one check every `every` seconds of a stage | 'once' | 'off'
game = 'balance', -- np_minigames game id (its result.stats.care is the check's care)
every = 60, -- seconds of a stage per check
maxChecks = 8, -- at most this many checks per stage
seconds = 20, -- length of one check (10..120; shorter when the stage has no room for it)
difficulty = { heat = 'hard', simmer = 'medium', stir = 'easy', pressure = 'medium', trim = 'easy', default = 'medium' },
worn = 50, -- equipment condition (%) below which every check is one step harder
practiced = 10, -- finished runs of a line from which its checks are one step easier
grace = 15, -- seconds a due check waits for the cook at the bench
}
Off: Config.Minigames.enabled = false, mode = 'off', Config.Integrations.np_minigames = false, or a stage with
minigame = false (per stage: minigame = { preset, difficulty, seconds }). Then the built-in meter runs, unchanged.
The start-up line reads integration np_minigames active / off in config / not running.
Purity ​
Purity runs from 20 to 96 % and comes from four parts, shown as bars:
| Part | Weight | From |
|---|---|---|
| Ingredients | 0.30 | The quality of what went in |
| Equipment | 0.20 | Its condition; every run wears each piece, and worn equipment also caps the purity |
| Care | 0.35 | How well the attended stages were held |
| Practice | 0.15 | Finished runs of that line (full after 25), per character and permanent |
Every lab leaves something behind ​
- Chemical waste (
chem_waste), one per set on most lines. It keeps the batch id and has to go somewhere: a bin, where a sanitation worker may find it. More than 4 pieces in a lab block the next run. - Fumes: without a
respiratorthe cook coughs, loses health and carries a trace of the substance that every test finds for 4 hours; at 100 they collapse. - Smell: players inside a running lab's radius (8 to 34 m by line) get a hint; the cook carries it on the clothes for 20 minutes (and a K9 notices).
- Power: each running line pulls 1.1 to 2.6 kW on the site's meter. An officer at the police terminal reads the meters within 40 m; an idle site shows 0.4 kW, so a jump stands out.
- Receipts: purchases of ingredients and equipment in shops that keep receipts (the pharmacy and the hardware store, and every np_shops shop that sells such an item) are kept 14 days. The police terminal and the evidence view lead from a seized item back to the buyer.
Supplies ​
| Shop | Sells | Receipts |
|---|---|---|
Pharmacy (npd_pharmacy) |
cold_medicine, respirator, gloves, syringe |
yes |
Hardware Store (npd_hardware) |
solvent, kerosene, lab_acid, the lab equipment, fertilizer, glue, tape, baggies |
yes |
Corner Store (npd_grocery) |
Drinks and food (the containers), corn, sugar, yeast, baking_soda, pill_binder |
no |
Back Room (npd_backroom) |
weed_seed, coca_leaf, raw_opium, safrole_oil, pseudoephedrine, pill_press, for dirty cash |
no |
With np_shops running these are np_shops shops owned by np_drugs (registered again after np_shops
restarts), and np_drugs' beforeBuy hook writes the paper trail for every np_shops shop. Without it they are
inventory shops. Locations are in Config.Production.shops; move them to your map.
For other resources ​
GetProductionLines() and GetLabs(filter) list the lines and the placed labs; beforeProduce may veto a run or take
a share of the yield; produced, labStarted and labStopped report what happened. See Exports & hooks
and Events.
All numbers are defaults in production.lua (Configuration → Production).


