Laboratory Creator
Configuration
Every option of nv_laboratorycreator with its default value. The files stay open (not escrowed), so you can edit them freely; restart nv_laboratorycreator after a change.
Preview: the script is not released yet, so options can still change. This page is updated with every release.
Framework, inventory, target, dispatch, notifications and progress bar are not set here: nv_bridge detects them for all Nivo scripts at once. Database tables are created automatically by nv_bridge on first start (sql/001_tables.sql, no manual import). Texts come from locales/<language>.json (English is the default); set Config.Locale to switch.
shared/config.lua
-- ════════════════════════════════════════════════════════════════════
-- nv_laboratorycreator – labs and drug production
-- Gameplay-style, stylized production (no real procedures). Private labs
-- = shared IPL interiors (bob74) in instances (routing bucket per lab),
-- public labs = fixed workbenches around the map.
-- ⚠ Coordinates of entrances, stations and public labs are approximate – fine-tune in game.
-- Prices are approximate (docs/ekonomika.md).
-- ════════════════════════════════════════════════════════════════════
Config = {}
-- ── General ──────────────────────────────────────────────────────────
Config.Locale = 'en' -- 'en', 'cs', 'de', 'fr', 'es', 'pt', 'tr', 'pl', 'it' or 'nl' (files in locales/), add your own language by copying en.json
-- Config.OnAlert = function(alert) return true end -- optional: handle alerts yourself (framework, inventory, target and dispatch are set in nv_bridge/config.lua): alert = { jobs, code, title, message, coords, priority, blip, src }
Config.Admin = { group = 'group.admin' } -- principal allowed to use /labs and the admin tools (ox_lib adds the ACE command.labs for it)
Config.DirtyMoney = { item = 'markedbills' } -- dirty cash: ESX uses the 'black_money' account, QBCore/Qbox use this item
Config.Multipliers = { heat = 1.0 } -- global multipliers (e.g. for server events)
Config.BucketBase = 60000 -- lab routing bucket = base + id
Config.MaxLabsPerPlayer = 1
Config.UpkeepTick = 60 -- s: how often bills are charged
Config.UnpaidDays = 3 -- after this many days of disconnection the lab is forfeited to the state
Config.StateAccount = 'society_police' -- society/government account that receives fines and upkeep (ESX: esx_addonaccount, QB: Renewed-Banking / qb-banking)
Config.SellBackPercent = 50 -- selling a lab to the state = % of the price (+ treasury balance)
-- ── upgrades (from the lab treasury) ──────────────────────────────────
Config.Upgrades = {
speed = { { price = 40000 }, { price = 90000 }, { price = 160000 }, { price = 260000 }, { price = 400000 } }, -- every level = −13 % time, +4 pcs max batch
quality = { { price = 50000 }, { price = 110000 }, { price = 200000 }, { price = 320000 }, { price = 480000 } }, -- the level shifts the quality range (QualityRanges)
security = { { price = 30000 }, { price = 70000 }, { price = 130000 }, { price = 210000 }, { price = 320000 } }, -- tougher break-in, stronger alarm and every level adds one camera (5 cameras)
}
-- Output quality range by Quality upgrade level (0–5): { min, max }. It is rolled from the range, material quality and dirt only shift it.
Config.QualityRanges = { [0] = { 20, 27 }, { 25, 34 }, { 31, 42 }, { 38, 51 }, { 46, 61 }, { 55, 72 } }
Config.Tier = { speed = 0.13, quality = 6, batch = 4, baseBatch = 4 }
-- Cameras (CCTV): without a security upgrade `base` cameras, every security level adds `perTier` (at most the number of positions in the lab, i.e. 5).
-- While watching you can rotate the view, zoom and turn on night vision.
-- Exterior cameras at the entrance: offset relative to the entrance { right, forward, height } (by the entrance rotation). The camera looks at the entrance.
-- A lab has 5 cameras in total (interior + exterior by type); a security upgrade unlocks one per level, interior first.
Config.ExteriorCams = { { 0.0, 0.0, 6.0 }, { -7.0, 6.0, 5.0 }, { 7.0, 6.0, 5.0 } }
Config.Cameras = { total = 5, base = 0, perTier = 1, fovMax = 70.0, fovMin = 15.0 }
-- ── bills (electricity, water, gas): $/hour ───────────────────────────────
-- the fixed part runs all the time, `running` is added for every running batch
Config.Utilities = {
weed = { fixed = { power = 90, water = 30, gas = 0 }, running = { power = 40, water = 25, gas = 0 } },
cocaine = { fixed = { power = 110, water = 20, gas = 40 }, running = { power = 45, water = 15, gas = 45 } },
}
-- ── access roles: which tablet tabs a member may use (the owner may do everything) ──
-- The owner changes it per member in the tablet (Access, the arrow next to the name). Members added through a job get these defaults.
-- overview, stats (production charts), deposit (register: deposit & bills), withdraw (register: withdraw), upgrade (view and buy), cams (CCTV),
-- log (history), access (add and remove members and jobs; roles stay with the owner), hook (Discord notifications)
Config.AccessDefaults = { overview = true, stats = true, deposit = true, withdraw = false, upgrade = false, cams = true, log = true, access = false, hook = false }
-- ── break-in ──────────────────────────────────────────────────────────
Config.Robbery = {
minCops = 2,
copJobs = { 'police' },
lockpick = 'lockpick',
advanced = 'advancedlockpick', -- lowers the difficulty
sessionMinutes = 15, -- how long after a success the thief can go inside
cooldownMin = 60, -- the lab cannot be robbed earlier
dispatchChance = 35, -- % chance that the police are called (the alarm to the owner always goes)
-- security level (0–5): heat gain multiplier and % chance that the lock gives way even after a won minigame
securityHeat = { [0] = 1.0, [1] = 0.85, [2] = 0.7, [3] = 0.55, [4] = 0.4, [5] = 0.25 },
securityBreak = { [0] = 100, [1] = 90, [2] = 75, [3] = 55, [4] = 30, [5] = 5 },
-- minigame difficulty by security (0–5)
difficulty = {
[0] = { 'easy', 'easy', 'medium' },
[1] = { 'easy', 'medium', 'medium' },
[2] = { 'medium', 'medium', 'hard' },
[3] = { 'medium', 'hard', 'hard' },
[4] = { 'hard', 'hard', 'hard' },
[5] = { 'hard', 'hard', 'hard', 'hard' },
},
}
-- ── Discord webhook majitele ─────────────────────────────────────────
Config.Webhook = {
cooldown = 1500, maxQueue = 20,
events = {
alarm = _L('alarm_break_in_attempted_break_in'),
production = _L('production_finished_batch'),
funds = _L('register_and_bills_running_out_of'),
},
}
Config.BuildMinutes = 30 -- construction and focus change (only cameras and upgrades, no production)
-- Police actions (8 Oct 2026): alarms raise heat, SASP at heat >= sealHeat may seal the lab
Config.Seal = { jobs = { 'police' }, sealHeat = 4, sealHours = 6, fine = 20000, unsealFee = 25000 }
-- Material requests (the owner posts, others deliver for cash from the treasury reserve)
Config.Requests = { maxOpen = 5, maxQty = 500, maxPrice = 2000 }
-- ── lab types ──────────────────────────────────────────────────────
-- `inside` = the point where the player appears after entering; `stations` = id → position inside.
Config.LabTypes = {
weed = {
label = _L('lab_weed'), blurb = _L('cannabis_4_strains_and_hashish'), price = 450000, ipl = 'weed', camsInterior = 3, -- 3 interior + 2 exterior cameras
inside = vec4(1066.33, -3183.51, -39.16, 90.0),
tablet = vec3(1044.50, -3194.77, -38.16),
stash = vec3(1064.97, -3187.41, -39.16),
cams = { vec4(1056.0, -3192.0, -36.0, 90.0), vec4(1051.0, -3201.0, -36.0, 0.0),
vec4(1036.0, -3196.0, -36.0, 270.0), vec4(1062.0, -3182.0, -36.0, 200.0), vec4(1046.0, -3206.0, -36.0, 10.0) }, -- 3rd–5th unlock through security (fine-tune the position in /labsedit)
stations = {
grow = { label = _L('growing'), icon = 'fa-solid fa-seedling', coords = vec3(1051.48, -3196.54, -39.15) },
dry = { label = _L('drying_room'), icon = 'fa-solid fa-wind', coords = vec3(1060.80, -3194.20, -39.15) },
trim = { label = _L('trimming'), icon = 'fa-solid fa-scissors', coords = vec3(1039.20, -3205.20, -38.17) },
pack = { label = _L('packing'), icon = 'fa-solid fa-box', coords = vec3(1037.30, -3205.10, -38.17) },
press = { label = _L('hash_press'), icon = 'fa-solid fa-compress', coords = vec3(1034.80, -3205.00, -38.17) },
},
},
cocaine = {
label = _L('lab_coke'), blurb = 'Kokain a crack', price = 900000, ipl = 'cocaine', camsInterior = 2, -- 2 interior + 3 exterior cameras
inside = vec4(1088.71, -3187.52, -38.99, 180.0),
tablet = vec3(1087.16, -3194.35, -38.99),
stash = vec3(1090.00, -3199.19, -38.99),
cams = { vec4(1093.0, -3190.0, -36.0, 180.0), vec4(1093.0, -3199.0, -36.0, 0.0),
vec4(1086.0, -3195.0, -36.0, 270.0), vec4(1100.0, -3195.0, -36.0, 90.0), vec4(1088.0, -3201.0, -36.0, 330.0) },
stations = {
extract = { label = 'Extrakce', icon = 'fa-solid fa-flask', coords = vec3(1092.80, -3194.80, -38.99) },
refine = { label = _L('refining'), icon = 'fa-solid fa-vial', coords = vec3(1090.20, -3196.90, -38.99) },
press = { label = 'Lis na cihly', icon = 'fa-solid fa-compress', coords = vec3(1095.50, -3196.60, -38.99) },
pack = { label = _L('packing'), icon = 'fa-solid fa-box', coords = vec3(1091.20, -3194.80, -38.99) },
crack = { label = _L('cooking_plate'), icon = 'fa-solid fa-fire-burner', coords = vec3(1093.90, -3194.70, -38.99) },
},
},
}
-- ── entrances in the world: 20 places (LS 8 / Sandy 7 / Paleto 5), the buyer chooses the focus ──
-- ⚠ coordinates are approximate (fine-tune in game)
-- lab entrance blip for the owner, invited people and jobs with access
Config.AccessBlip = { sprite = 499, color = 3, scale = 0.85 }
Config.Entrances = {
{ id = 'ls1', label = 'Sklad Cypress', coords = vec4(1208.66, -1402.64, 35.22, 180.0) },
{ id = 'ls2', label = 'Sklad La Mesa', coords = vec4(818.83, -1029.89, 26.17, 90.0) },
{ id = 'ls3', label = 'Sklad Davis', coords = vec4(-71.28, -1761.16, 29.48, 340.0) },
{ id = 'ls4', label = 'Sklad Elysian', coords = vec4(-212.00, -2570.00, 6.00, 180.0) },
{ id = 'ls5', label = 'Sklad Strawberry', coords = vec4(-14.00, -1428.00, 31.10, 0.0) },
{ id = 'ls6', label = 'Sklad El Burro', coords = vec4(1318.00, -1668.00, 52.20, 200.0) },
{ id = 'ls7', label = 'Sklad Murrieta', coords = vec4(1135.00, -1280.00, 34.60, 270.0) },
{ id = 'ls8', label = 'Sklad Little Seoul', coords = vec4(-598.00, -1157.00, 22.30, 90.0) },
{ id = 'sandy1', label = 'Sklad Harmony', coords = vec4(264.15, 2607.05, 44.95, 190.0) },
{ id = 'sandy2', label = 'Sklad Senora', coords = vec4(2538.00, 2593.83, 37.94, 270.0) },
{ id = 'sandy3', label = 'Sklad Route 68', coords = vec4(1207.56, 2660.20, 37.81, 130.0) },
{ id = 'sandy4', label = 'Sklad Stab City', coords = vec4(86.00, 3720.00, 39.70, 90.0) },
{ id = 'sandy5', label = 'Sklad Grapeseed', coords = vec4(2437.00, 4977.00, 46.80, 45.0) },
{ id = 'sandy6', label = 'Sklad Alamo Sea', coords = vec4(1560.00, 3571.00, 38.80, 120.0) },
{ id = 'sandy7', label = _L('sandy_airfield_warehouse'), coords = vec4(1740.00, 3270.00, 41.20, 105.0) },
{ id = 'paleto1', label = 'Sklad Paleto Cove', coords = vec4(-146.00, 6303.00, 31.30, 45.0) },
{ id = 'paleto2', label = 'Sklad Paleto Les', coords = vec4(-329.00, 6145.00, 31.60, 135.0) },
{ id = 'paleto3', label = _L('paleto_port_warehouse'), coords = vec4(114.00, 6608.00, 31.80, 225.0) },
{ id = 'paleto4', label = 'Sklad Paleto Pila', coords = vec4(-565.00, 5324.00, 70.20, 160.0) },
{ id = 'paleto5', label = _L('paleto_highway_warehouse'), coords = vec4(-780.00, 5588.00, 33.50, 270.0) },
}
-- ── public labs (/labs): nobody owns them, they are accessible to everyone, have 0 cameras, the lowest speed and quality and heat always 0.
-- Two of each kind. ⚠ coordinates are approximate (fine-tune in game, the entrance can be moved in /labs).
for _, p in ipairs({
{ id = 'pub_weed1', type = 'weed', label = _L('public_lab_weed_la_puerta'), coords = vec4(-1127.00, -1340.00, 5.10, 30.0) },
{ id = 'pub_weed2', type = 'weed', label = _L('public_lab_weed_sandy'), coords = vec4(1389.00, 3604.00, 38.90, 200.0) },
{ id = 'pub_coke1', type = 'cocaine', label = _L('public_lab_coke_ls_port'), coords = vec4(-319.00, -2761.00, 5.00, 90.0) },
{ id = 'pub_coke2', type = 'cocaine', label = _L('public_lab_coke_paleto'), coords = vec4(-216.00, 6217.00, 31.50, 45.0) },
{ id = 'pub_chem1', type = 'chem', label = _L('public_lab_chem_cypress'), coords = vec4(1002.00, -2520.00, 28.30, 90.0) },
{ id = 'pub_chem2', type = 'chem', label = _L('public_lab_chem_grand_senora'), coords = vec4(2339.00, 3133.00, 48.20, 160.0) },
}) do
Config.Entrances[#Config.Entrances + 1] = { id = p.id, label = p.label, coords = p.coords, public = true, type = p.type }
end
-- ── public labs (workbenches): slow, lower yield, quality only 30–55, no upgrades ──
Config.PublicLabs = {
{ id = 'pub_ls', label = _L('public_lab_davis'), coords = vec4(-495.00, -1752.00, 18.30, 90.0) },
{ id = 'pub_sandy', label = _L('public_lab_sandy'), coords = vec4(2408.00, 3147.00, 48.20, 180.0) },
{ id = 'pub_paleto', label = _L('public_lab_paleto'), coords = vec4(119.00, 6603.00, 31.90, 270.0) },
}
Config.PublicBenchModel = `prop_tool_bench02`
Config.PublicQuality = { 30, 55 }
-- /devmenu (Locations): lab entrances and tables of public labs (move; inside labs it is restarted manually from the menu)
for _, e in ipairs(Config.Entrances) do
end
for _, b in ipairs(Config.PublicLabs) do
end
shared/drugs.lua
-- ════════════════════════════════════════════════════════════════════
-- Drugs, strains, recipes and effects (gameplay, stylized).
-- Quality (metadata.quality 0–100) carries through the production chain and determines
-- the price and the strength of the effect. New drugs = a new entry in Config.Drugs + recipes.
-- ════════════════════════════════════════════════════════════════════
--- Price multiplier by quality: 0 → 0.6×, 50 → 1.05×, 100 → 1.5×.
function Config.qualityMult(q)
q = math.max(0, math.min(100, tonumber(q) or 50))
return 0.6 + q / 100 * 0.9
end
-- ── kmeny marihuany ──────────────────────────────────────────────────
Config.Strains = {
ak47 = { label = 'AK-47', yield = 1.0, time = 1.0, price = 300, potency = 1.0 },
banana = { label = 'Banana Kush', yield = 0.9, time = 1.1, price = 380, potency = 1.1 },
purple = { label = 'Purple Haze', yield = 0.8, time = 1.25, price = 460, potency = 1.2 },
widow = { label = 'White Widow', yield = 0.7, time = 1.4, price = 560, potency = 1.35 },
}
Config.StrainOrder = { 'ak47', 'banana', 'purple', 'widow' }
-- ── consumable drugs ───────────────────────────────────────────────
-- effects (all optional):
-- duration base length in s (× 0.6–1.4 by quality)
-- speed sprint multiplier damage multiplier of damage taken (<1 = less)
-- move walking speed multiplier regen health per 5 s
-- thirst/hunger % of thirst/hunger removed (one-time)
-- vignette 0–1 strength of the narrowed view (NUI) blur animpost effect shake camera shake
Config.Drugs = {
weed_ak47 = { label = 'AK-47', kind = 'weed', base = 300, strain = 'ak47',
effects = { duration = 120, regen = 2, thirst = 8, hunger = 10, blur = 'DrugsDrivingIn' } },
weed_banana = { label = 'Banana Kush', kind = 'weed', base = 380, strain = 'banana',
effects = { duration = 120, regen = 2, thirst = 8, hunger = 10, blur = 'DrugsDrivingIn' } },
weed_purple = { label = 'Purple Haze', kind = 'weed', base = 460, strain = 'purple',
effects = { duration = 120, regen = 3, thirst = 8, hunger = 10, blur = 'DrugsDrivingIn' } },
weed_widow = { label = 'White Widow', kind = 'weed', base = 560, strain = 'widow',
effects = { duration = 120, regen = 3, thirst = 8, hunger = 10, blur = 'DrugsDrivingIn' } },
hashish = { label = _L('hashish'), kind = 'hash', base = 700,
effects = { duration = 180, damage = 0.9, move = 0.93, thirst = 15, blur = 'DrugsMichaelAliensFightIn' } },
coke_bag = { label = 'Kokain', kind = 'coke', base = 220,
effects = { duration = 90, speed = 1.22, damage = 0.85, thirst = 25, vignette = 0.75 } },
crack_rock = { label = 'Crack', kind = 'crack', base = 120,
effects = { duration = 60, speed = 1.3, damage = 0.9, thirst = 20, hunger = 15, shake = 0.25, vignette = 0.45 } },
}
Config.strainLabel = function(s) return Config.Strains[s] and Config.Strains[s].label or s end
-- ── recepty ──────────────────────────────────────────────────────────
-- inputs = { { item, count, strain? } } strain = true → the recipe's strain must match
-- output = { item, count, strain? } strain = true → the output carries metadata.strain
-- time (s) is per 1 unit of the batch; skill = minigame (±quality)
-- anim/prop = animation and prop in hand while working at the station
local ANIM_MIX = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer', flag = 1 }
local ANIM_PLANT = { dict = 'amb@world_human_gardener_plant@male@base', clip = 'base', flag = 1 }
local ANIM_PACK = { dict = 'mp_common', clip = 'givetake1_a', flag = 49 }
local ANIM_POT = { dict = 'anim@heists@load_box', clip = 'load_box_1', flag = 1 }
local ANIM_TRIM = { dict = 'amb@prop_human_bum_bin@base', clip = 'base', flag = 1 }
local PROP_POT = { model = `prop_kitch_pot_huge`, bone = 28422, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
Config.Recipes = {}
Config.RecipeOrder = {}
local function add(id, r)
r.id = id
Config.Recipes[id] = r
Config.RecipeOrder[#Config.RecipeOrder + 1] = id
end
for _, s in ipairs(Config.StrainOrder) do
local st = Config.Strains[s]
local name = st.label
add('grow_' .. s, { lab = 'weed', station = 'grow', label = _L('growing_2', name), strain = s,
inputs = { { 'weed_seed', 4 } }, output = { 'weed_wet', math.max(1, math.floor(4 * st.yield + 0.5)), strain = true },
time = math.floor(180 * st.time), skill = false, anim = ANIM_PLANT })
add('dry_' .. s, { lab = 'weed', station = 'dry', label = _L('drying', name), strain = s,
inputs = { { 'weed_wet', 4, strain = true } }, output = { 'weed_dry', 4, strain = true },
time = 90, skill = false, anim = ANIM_POT })
add('trim_' .. s, { lab = 'weed', station = 'trim', label = _L('trimming_2', name), strain = s,
inputs = { { 'weed_dry', 4, strain = true } }, output = { 'weed_bud', 3, strain = true },
time = 60, skill = true, anim = ANIM_TRIM })
add('pack_' .. s, { lab = 'weed', station = 'pack', label = _L('packing_2', name), strain = s,
inputs = { { 'weed_bud', 3, strain = true }, { 'empty_bag', 1 } }, output = { 'weed_' .. s, 1 },
time = 30, skill = false, anim = ANIM_PACK })
add('press_' .. s, { lab = 'weed', station = 'press', label = _L('hashish_from_the_strain', name), strain = s,
inputs = { { 'weed_dry', 6, strain = true } }, output = { 'hashish', 1, strain = true },
time = 120, skill = true, anim = ANIM_MIX })
end
add('coke_extract', { lab = 'cocaine', station = 'extract', label = _L('extraction_from_leaves'),
inputs = { { 'coca_leaf', 20 }, { 'gasoline', 1 } }, output = { 'coca_paste', 4 },
time = 150, skill = false, anim = ANIM_POT, prop = PROP_POT })
add('coke_refine', { lab = 'cocaine', station = 'refine', label = _L('refining_the_paste'),
inputs = { { 'coca_paste', 4 }, { 'hydrochloric_acid', 1 } }, output = { 'coke_powder', 3 },
time = 150, skill = true, anim = ANIM_MIX })
add('coke_press', { lab = 'cocaine', station = 'press', label = _L('pressing_a_brick'),
inputs = { { 'coke_powder', 5 }, { 'cement', 1 } }, output = { 'coke_brick', 1 },
time = 210, skill = false, anim = ANIM_MIX })
add('coke_pack', { lab = 'cocaine', station = 'pack', label = _L('packing_cocaine'),
inputs = { { 'coke_powder', 2 }, { 'empty_bag', 2 } }, output = { 'coke_bag', 2 },
time = 60, skill = false, anim = ANIM_PACK })
add('coke_crack', { lab = 'cocaine', station = 'crack', label = _L('cooking_plate_crack'),
inputs = { { 'coke_powder', 2 }, { 'kq_ammonia', 1 } }, output = { 'crack_rock', 4 },
time = 105, skill = true, anim = ANIM_POT })
-- Public labs: one step, longer progress, lower yield, quality 30–55.
Config.PublicRecipes = {
public_weed = { label = _L('dried_weed_homemade'), inputs = { { 'weed_seed', 4 } }, output = { 'weed_ak47', 1 }, time = 60, anim = ANIM_PLANT },
public_hash = { label = _L('hashish_homemade'), inputs = { { 'weed_ak47', 4 } }, output = { 'hashish', 1 }, time = 60, anim = ANIM_MIX },
public_coke = { label = _L('cocaine_homemade'), inputs = { { 'coca_leaf', 30 }, { 'gasoline', 1 }, { 'hydrochloric_acid', 1 } }, output = { 'coke_bag', 1 }, time = 90, anim = ANIM_POT, prop = PROP_POT },
}
Config.PublicOrder = { 'public_weed', 'public_hash', 'public_coke' }
shared/drugs2.lua
-- ════════════════════════════════════════════════════════════════════
-- Drugs v2 (8 Oct 2026): chemical lab (IPL meth lab) and other drugs.
-- Everything is GAMEPLAY and stylized: materials are items from the server (poppy_pod,
-- blank_pills), generic steps at stations (mixing, cooking, press, cleaning). No
-- real procedures or amounts. Supplements Config from config.lua and drugs.lua.
-- ⚠ Coordinates of the interior and entrances are approximate (fine-tune in game).
-- ════════════════════════════════════════════════════════════════════
-- ── lab type ───────────────────────────────────────────────────────
Config.LabTypes.chem = {
camsInterior = 2, -- 2 interior + 3 exterior cameras
label = _L('lab_meth_and_chemistry'), blurb = _L('meth_ecstasy_lsd_dmt_ketamine_xanax'), price = 1400000, ipl = 'meth',
inside = vec4(1007.20, -3200.50, -38.99, 90.0),
tablet = vec3(1003.40, -3196.60, -38.99),
stash = vec3(1010.00, -3201.80, -38.99),
cams = { vec4(1012.0, -3197.0, -36.0, 90.0), vec4(1002.0, -3203.0, -36.0, 0.0),
vec4(1000.0, -3196.0, -36.0, 270.0), vec4(1014.0, -3200.0, -36.0, 90.0), vec4(1008.0, -3191.0, -36.0, 180.0) },
stations = {
mix = { label = _L('mixing_table'), icon = 'fa-solid fa-flask-vial', coords = vec3(1009.50, -3196.60, -38.99) },
cook = { label = _L('cooking_unit'), icon = 'fa-solid fa-fire-burner', coords = vec3(1005.00, -3199.00, -38.99) },
press = { label = 'Lis na tablety', icon = 'fa-solid fa-compress', coords = vec3(1013.50, -3198.00, -38.99) },
refine = { label = _L('refining_line'), icon = 'fa-solid fa-vial', coords = vec3(1011.00, -3194.20, -38.99) },
cool = { label = _L('cooling_table'), icon = 'fa-solid fa-snowflake', coords = vec3(1006.80, -3195.00, -38.99) },
crush = { label = _L('breaking_table'), icon = 'fa-solid fa-hammer', coords = vec3(1003.20, -3199.80, -38.99) },
weigh = { label = _L('scale_2'), icon = 'fa-solid fa-scale-balanced', coords = vec3(1015.00, -3195.60, -38.99) },
pack = { label = _L('packing_table'), icon = 'fa-solid fa-box', coords = vec3(1013.60, -3201.00, -38.99) },
},
}
Config.Utilities.chem = { fixed = { power = 130, water = 45, gas = 70 }, running = { power = 60, water = 25, gas = 55 } }
-- ── drogy ────────────────────────────────────────────────────────────
-- (same effect keys as in drugs.lua; `od` = % overdose chance, quality reduces it)
Config.Drugs.meth_crystal = { label = 'Meth', kind = 'meth', base = 520,
effects = { duration = 120, speed = 1.28, damage = 0.92, thirst = 30, hunger = 25, shake = 0.3, vignette = 0.35 } }
Config.Drugs.ecstasy_pill = { label = _L('ecstasy'), kind = 'pill', base = 150,
effects = { duration = 150, speed = 1.1, regen = 3, thirst = 20, blur = 'DrugsDrivingIn' } }
Config.Drugs.lsd_tab = { label = 'LSD', kind = 'psych', base = 240,
effects = { duration = 240, shake = 0.2, vignette = 0.3, blur = 'DrugsTrevorClownsFightIn' } }
Config.Drugs.dmt_vial = { label = 'DMT', kind = 'psych', base = 400,
effects = { duration = 120, move = 0.85, vignette = 0.5, blur = 'DrugsMichaelAliensFightIn' } }
Config.Drugs.ketamine_vial = { label = 'Ketamin', kind = 'sedat', base = 260,
effects = { duration = 100, damage = 0.8, move = 0.8, blur = 'DrugsDrivingIn' } }
Config.Drugs.xanax_pill = { label = 'Xanax', kind = 'sedat', base = 140,
effects = { duration = 180, damage = 0.88, move = 0.92, thirst = 10, vignette = 0.25 } }
Config.Drugs.oxy_pill = { label = 'OxyContin', kind = 'sedat', base = 180,
effects = { duration = 160, damage = 0.82, move = 0.9, regen = 1, vignette = 0.2 } }
Config.Drugs.opium_raw = { label = 'Opium', kind = 'opiat', base = 300,
effects = { duration = 130, damage = 0.85, move = 0.88, vignette = 0.4, blur = 'DrugsDrivingIn' } }
Config.Drugs.heroin_white = { label = _L('heroin_white'), kind = 'opiat', base = 650,
effects = { duration = 150, damage = 0.7, move = 0.8, regen = 2, vignette = 0.6, od = 6 } }
Config.Drugs.heroin_black = { label = _L('heroin_black'), kind = 'opiat', base = 380,
effects = { duration = 120, damage = 0.75, move = 0.85, vignette = 0.55, od = 9 } }
Config.Drugs.fentanyl_patch = { label = 'Fentanyl', kind = 'opiat', base = 800,
effects = { duration = 90, damage = 0.6, move = 0.7, vignette = 0.8, od = 18 } }
-- ── recepty (lab = 'chem') ───────────────────────────────────────────
local MIX = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer', flag = 1 }
local POT = { dict = 'anim@heists@load_box', clip = 'load_box_1', flag = 1 }
local PROP = { model = `prop_kitch_pot_huge`, bone = 28422, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
local function add(id, r)
r.id = id
r.lab = 'chem'
Config.Recipes[id] = r
Config.RecipeOrder[#Config.RecipeOrder + 1] = id
end
add('meth_cook', { station = 'cook', label = _L('meth_cooking'),
inputs = { { 'kq_meth_pills', 4 }, { 'kq_acetone', 2 }, { 'kq_ammonia', 1 } }, output = { 'meth_crystal', 3 }, time = 150, skill = true, anim = POT, prop = PROP })
add('ecstasy_press', { station = 'press', label = _L('ecstasy_pressing'),
inputs = { { 'solvent', 1 }, { 'kq_acetone', 1 }, { 'blank_pills', 6 } }, output = { 'ecstasy_pill', 6 }, time = 90, skill = false, anim = MIX })
add('xanax_press', { station = 'press', label = _L('xanax_pressing'),
inputs = { { 'kq_ethanol', 1 }, { 'solvent', 1 }, { 'blank_pills', 6 } }, output = { 'xanax_pill', 6 }, time = 90, skill = true, anim = MIX })
add('oxy_press', { station = 'press', label = _L('oxycontin_pressing'),
inputs = { { 'kq_ethanol', 1 }, { 'kq_rubbing_alcohol', 1 }, { 'blank_pills', 4 } }, output = { 'oxy_pill', 4 }, time = 150, skill = true, anim = MIX })
add('lsd_mix', { station = 'mix', label = _L('lsd_mixing'),
inputs = { { 'kq_ethanol', 2 }, { 'solvent', 1 }, { 'empty_bag', 1 } }, output = { 'lsd_tab', 8 }, time = 120, skill = true, anim = MIX })
add('dmt_mix', { station = 'mix', label = _L('dmt_mixing'),
inputs = { { 'solvent', 2 }, { 'kq_ammonia', 1 } }, output = { 'dmt_vial', 3 }, time = 135, skill = true, anim = MIX })
add('ketamine_mix', { station = 'mix', label = _L('ketamine_mixing'),
inputs = { { 'kq_ammonia', 1 }, { 'solvent', 1 } }, output = { 'ketamine_vial', 3 }, time = 110, skill = false, anim = MIX })
add('opium_cook', { station = 'cook', label = _L('opium_poppy_processing'),
inputs = { { 'poppy_pod', 10 }, { 'kq_ethanol', 1 } }, output = { 'opium_raw', 3 }, time = 140, skill = false, anim = POT, prop = PROP })
add('heroin_refine', { station = 'refine', label = _L('heroin_white_refining'),
inputs = { { 'opium_raw', 3 }, { 'kq_acetone', 1 }, { 'hydrochloric_acid', 1 } }, output = { 'heroin_white', 2 }, time = 160, skill = true, anim = MIX })
add('heroin_black', { station = 'refine', label = _L('heroin_black_fast_line'),
inputs = { { 'opium_raw', 3 }, { 'kq_rubbing_alcohol', 1 } }, output = { 'heroin_black', 2 }, time = 110, skill = false, anim = MIX })
add('fentanyl_mix', { station = 'mix', label = _L('fentanyl_mixing'),
inputs = { { 'solvent', 2 }, { 'kq_acetone', 1 }, { 'kq_ammonia', 1 }, { 'empty_bag', 1 } }, output = { 'fentanyl_patch', 2 }, time = 240, skill = true, anim = MIX })
shared/steps.lua
-- ════════════════════════════════════════════════════════════════════
-- Manual production in labs (8 Oct 2026): steps ("recipes") at tables.
-- Every step = one table. The player at the table picks a step, inserts
-- materials by units (`load`), starts it and by `kind`:
-- timed – the process runs `time = {min,max}` s (random), the player can move
-- freely. `window` = how many seconds after completion they have to take it out,
-- jinak to BOUCHNE (nil = bez rizika).
-- action – a one-off action at the table (`progress` ms, animation, optionally
-- a `skill` minigame), the output drops immediately.
-- Intermediate products are items in the inventory with metadata.quality, carried between
-- tables. Everything is GAMEPLAY and stylized (materials are items from the server, piece counts are gameplay,
-- no real procedures or amounts). `per` = how many pieces one use of the target inserts.
-- ════════════════════════════════════════════════════════════════════
Config.Steps = {}
Config.StepOrder = {}
local function step(id, s)
s.id = id
Config.Steps[id] = s
Config.StepOrder[#Config.StepOrder + 1] = id
end
local A = {
mix = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer', flag = 1 },
plant = { dict = 'amb@world_human_gardener_plant@male@base', clip = 'base', flag = 1 },
pack = { dict = 'mp_common', clip = 'givetake1_a', flag = 49 },
box = { dict = 'anim@heists@load_box', clip = 'load_box_1', flag = 1 },
trim = { dict = 'amb@prop_human_bum_bin@base', clip = 'base', flag = 1 },
}
local POT = { model = `prop_kitch_pot_huge`, bone = 28422, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
-- shared insert and take-out animations (client)
Config.LoadAnim = { dict = 'timetable@gardener@filling_can', clip = 'gar_ig_5_filling_can', flag = 49, time = 2200 }
Config.CollectAnim = { dict = 'anim@heists@load_box', clip = 'load_box_1', flag = 1, time = 2500 }
Config.StartAnim = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer', flag = 1, time = 3500 }
Config.Explosion = { burnSeconds = 300, contaminatedSeconds = 900, defaultWindow = 30 }
-- Faction brand (8 Oct 2026): final drugs get metadata.brand by the job of the player who made them
-- (selling with a brand goes 5 % higher, see S.Turf.brandPrice in nv_drugs-selling/street_config.lua)
Config.Brands = {
lost = 'Lost MC', muertos = 'Muertos MC', vcrew = 'V Crew', triads = _L('triads'), tequila = 'Tequi-la-la',
}
-- ── weed and hash (lab weed) ─────────────────────────────────────
for _, s in ipairs(Config.StrainOrder) do
local st = Config.Strains[s]
local name = st.label
step('grow_' .. s, { lab = 'weed', station = 'grow', label = _L('growing_2', name), kind = 'timed', strain = s,
time = { math.floor(150 * st.time), math.floor(300 * st.time) },
load = { { 'weed_seed', 4 } }, out = { 'weed_wet', math.max(1, math.floor(4 * st.yield + 0.5)), strain = true }, anim = A.plant })
step('dry_' .. s, { lab = 'weed', station = 'dry', label = _L('drying', name), kind = 'timed', strain = s,
time = { 90, 150 }, load = { { 'weed_wet', 4, strain = true } }, out = { 'weed_dry', 4, strain = true }, anim = A.box })
step('trim_' .. s, { lab = 'weed', station = 'trim', label = _L('trimming_2', name), kind = 'action', strain = s,
progress = 7000, skill = true, load = { { 'weed_dry', 4, strain = true } }, out = { 'weed_bud', 3, strain = true }, anim = A.trim })
step('pack_' .. s, { lab = 'weed', station = 'pack', label = _L('packing_2', name), kind = 'action', strain = s,
progress = 3500, load = { { 'weed_bud', 3, strain = true }, { 'empty_bag', 1 } }, out = { 'weed_' .. s, 1 }, anim = A.pack })
step('press_' .. s, { lab = 'weed', station = 'press', label = _L('hashish_from_the_strain', name), kind = 'action', strain = s,
progress = 9000, skill = true, load = { { 'weed_dry', 6, strain = true } }, out = { 'hashish', 1, strain = true }, anim = A.mix })
end
-- ── kokain a crack (lab cocaine) ─────────────────────────────────────
step('coke_extract', { lab = 'cocaine', station = 'extract', label = _L('extraction_from_leaves'), kind = 'timed', time = { 150, 300 }, window = 30,
load = { { 'coca_leaf', 20, per = 5 }, { 'gasoline', 1 } }, out = { 'coca_paste', 4 }, anim = A.box, prop = POT })
step('coke_refine', { lab = 'cocaine', station = 'refine', label = _L('refining_the_paste'), kind = 'timed', time = { 120, 240 }, window = 30,
load = { { 'coca_paste', 4 }, { 'hydrochloric_acid', 1 } }, out = { 'coke_powder', 3 }, anim = A.mix })
step('coke_press', { lab = 'cocaine', station = 'press', label = _L('pressing_a_brick'), kind = 'action', progress = 8000,
load = { { 'coke_powder', 5 }, { 'cement', 1 } }, out = { 'coke_brick', 1 }, anim = A.mix })
step('coke_pack', { lab = 'cocaine', station = 'pack', label = _L('packing_cocaine'), kind = 'action', progress = 3500,
load = { { 'coke_powder', 2 }, { 'empty_bag', 2 } }, out = { 'coke_bag', 2 }, anim = A.pack })
step('coke_crack', { lab = 'cocaine', station = 'crack', label = _L('cooking_plate_crack'), kind = 'timed', time = { 90, 180 }, window = 30,
load = { { 'coke_powder', 2 }, { 'kq_ammonia', 1 } }, out = { 'crack_rock', 4 }, anim = A.box, prop = POT })
-- ── chemical lab: meth (long chain) ────────────────────────
step('meth_cook', { lab = 'chem', station = 'cook', label = _L('meth_cooking'), kind = 'timed', time = { 180, 480 }, window = 30,
load = { { 'kq_meth_pills', 4, per = 2 }, { 'kq_acetone', 2 }, { 'kq_ammonia', 1 } }, out = { 'meth_liquid', 3 }, anim = A.box, prop = POT })
step('meth_cool', { lab = 'chem', station = 'cool', label = _L('meth_cooling'), kind = 'timed', time = { 120, 240 },
load = { { 'meth_liquid', 3 } }, out = { 'meth_slab', 3 }, anim = A.box })
step('meth_refine', { lab = 'chem', station = 'refine', label = _L('meth_refining'), kind = 'action', progress = 8000, skill = true,
load = { { 'meth_slab', 3 } }, out = { 'meth_clean', 3 }, anim = A.mix })
step('meth_crush', { lab = 'chem', station = 'crush', label = _L('meth_breaking'), kind = 'action', progress = 6000,
load = { { 'meth_clean', 3 } }, out = { 'meth_shards', 6 }, anim = { dict = 'melee@large_wpn@streamed_core', clip = 'ground_attack_on_spot', flag = 80 }, prop = { model = `prop_tool_hammer`, bone = 57005, pos = vec3(0.09, 0.03, -0.02), rot = vec3(-78.0, 13.0, 28.0) } })
step('meth_weigh', { lab = 'chem', station = 'weigh', label = _L('meth_weighing'), kind = 'action', progress = 5000, skill = true,
load = { { 'meth_shards', 6 } }, out = { 'meth_portion', 6 }, anim = A.pack })
step('meth_pack', { lab = 'chem', station = 'pack', label = _L('meth_packing'), kind = 'action', progress = 4500,
load = { { 'meth_portion', 6 }, { 'empty_bag', 6, per = 2 } }, out = { 'meth_crystal', 6 }, anim = A.pack })
-- ── chemical lab: pills (press → packing) ───────────────────────
local pills = {
{ id = 'ecstasy', label = _L('ecstasy'), raw = 'ecstasy_raw', out = 'ecstasy_pill', count = 6, time = { 120, 240 },
load = { { 'solvent', 1 }, { 'kq_acetone', 1 }, { 'blank_pills', 6, per = 2 } } },
{ id = 'xanax', label = 'Xanax', raw = 'xanax_raw', out = 'xanax_pill', count = 6, time = { 120, 200 },
load = { { 'kq_ethanol', 1 }, { 'solvent', 1 }, { 'blank_pills', 6, per = 2 } } },
{ id = 'oxy', label = 'OxyContin', raw = 'oxy_raw', out = 'oxy_pill', count = 4, time = { 150, 260 },
load = { { 'kq_ethanol', 1 }, { 'kq_rubbing_alcohol', 1 }, { 'blank_pills', 4, per = 2 } } },
}
for _, p in ipairs(pills) do
step(p.id .. '_press', { lab = 'chem', station = 'press', label = p.label .. _L('pressing'), kind = 'timed', time = p.time, window = 30,
load = p.load, out = { p.raw, p.count }, anim = A.mix })
step(p.id .. '_pack', { lab = 'chem', station = 'pack', label = p.label .. _L('packing_3'), kind = 'action', progress = 3500,
load = { { p.raw, p.count }, { 'empty_bag', 1 } }, out = { p.out, p.count }, anim = A.pack })
end
-- ── chemical lab: mixing (psychedelics, sedatives, fentanyl) ───
local mixes = {
{ id = 'lsd', label = 'LSD', raw = 'lsd_raw', out = 'lsd_tab', count = 8, time = { 150, 300 }, load = { { 'kq_ethanol', 2 }, { 'solvent', 1 } } },
{ id = 'dmt', label = 'DMT', raw = 'dmt_raw', out = 'dmt_vial', count = 3, time = { 150, 280 }, load = { { 'solvent', 2 }, { 'kq_ammonia', 1 } } },
{ id = 'ketamine', label = 'Ketamin', raw = 'ketamine_raw', out = 'ketamine_vial', count = 3, time = { 130, 240 }, load = { { 'kq_ammonia', 1 }, { 'solvent', 1 } } },
{ id = 'fentanyl', label = 'Fentanyl', raw = 'fentanyl_raw', out = 'fentanyl_patch', count = 2, time = { 240, 420 }, window = 20,
load = { { 'solvent', 2 }, { 'kq_acetone', 1 }, { 'kq_ammonia', 1 } } },
}
for _, m in ipairs(mixes) do
step(m.id .. '_mix', { lab = 'chem', station = 'mix', label = m.label .. _L('mixing'), kind = 'timed', time = m.time, window = m.window or 30,
load = m.load, out = { m.raw, m.count }, anim = A.mix })
step(m.id .. '_pack', { lab = 'chem', station = 'pack', label = m.label .. _L('packing_3'), kind = 'action', progress = 3500,
load = { { m.raw, m.count }, { 'empty_bag', 1 } }, out = { m.out, m.count }, anim = A.pack })
end
-- ── chemical lab: opiates ───────────────────────────────────────
step('opium_cook', { lab = 'chem', station = 'cook', label = _L('opium_poppy_processing'), kind = 'timed', time = { 140, 260 }, window = 30,
load = { { 'poppy_pod', 10, per = 5 }, { 'kq_ethanol', 1 } }, out = { 'opium_raw', 3 }, anim = A.box, prop = POT })
step('heroin_white_refine', { lab = 'chem', station = 'refine', label = _L('heroin_white_refining'), kind = 'timed', time = { 160, 260 }, window = 30,
load = { { 'opium_raw', 3 }, { 'kq_acetone', 1 }, { 'hydrochloric_acid', 1 } }, out = { 'heroin_white_raw', 2 }, anim = A.mix })
step('heroin_white_pack', { lab = 'chem', station = 'pack', label = _L('heroin_white_packing'), kind = 'action', progress = 3500,
load = { { 'heroin_white_raw', 2 }, { 'empty_bag', 2 } }, out = { 'heroin_white', 2 }, anim = A.pack })
step('heroin_black_refine', { lab = 'chem', station = 'refine', label = _L('heroin_black_fast_line'), kind = 'timed', time = { 110, 200 }, window = 30,
load = { { 'opium_raw', 3 }, { 'kq_rubbing_alcohol', 1 } }, out = { 'heroin_black_raw', 2 }, anim = A.mix })
step('heroin_black_pack', { lab = 'chem', station = 'pack', label = _L('heroin_black_packing'), kind = 'action', progress = 3500,
load = { { 'heroin_black_raw', 2 }, { 'empty_bag', 2 } }, out = { 'heroin_black', 2 }, anim = A.pack })
-- Animation by table (client): inserting, starting and taking out. The prop can be fine-tuned in /labsedit (Prop in hand).
-- Blue canister: the model can be replaced (Config.Props.blueCan), the default is a canister from GTA.
Config.Props = {
blueCan = `prop_ld_jerrycan_01`,
hammer = `prop_tool_hammer`,
}
local POUR = { dict = 'weapon@w_sp_jerrycan', clip = 'fire', flag = 49,
prop = { model = Config.Props.blueCan, bone = 57005, pos = vec3(0.13, 0.0, -0.03), rot = vec3(100.0, 0.0, 0.0) } }
local HAMMER = { dict = 'melee@large_wpn@streamed_core', clip = 'ground_attack_on_spot', flag = 80,
prop = { model = Config.Props.hammer, bone = 57005, pos = vec3(0.09, 0.03, -0.02), rot = vec3(-78.0, 13.0, 28.0) } }
Config.StationAnims = {
cook = POUR, crack = POUR, -- cooking: poured from the blue canister into the tank
cool = HAMMER, crush = HAMMER, -- cooling and breaking: hammering on the tray
}
shared/visual.lua
-- ════════════════════════════════════════════════════════════════════
-- Visual layer of the labs: monitors with DUI at all tables, smoke and steam by table
-- state, props of finished batches on the table and props with animations when using drugs.
-- Custom models (nvl_*) come from tools/blender/nvl_drug_props.py; until they are uploaded, the
-- first existing model from the list is used (fallback vanilla props). Everything can be tuned in /labsedit.
-- ════════════════════════════════════════════════════════════════════
Config.Visual = {
monitors = true, -- screen with DUI at every table
monitorLive = 3, -- how many nearest screens show live data (each = one DUI)
monitorRange = 7.0,
fx = true, -- smoke, steam, sparks
fxRange = 16.0, -- effects are drawn only up to this distance from the table
display = true, -- prop of the finished batch on the table
hand = true, -- props and smoke when using drugs
anchorUp = 0.95, -- default height of effects and props above the table target (fine-tune in /labsedit)
warningSeconds = 10, -- this many seconds until the explosion and the table starts sparking
}
-- ── monitor at every table ──────────────────────────────────────────
Config.MonitorStations = {}
for typeId, t in pairs(Config.LabTypes) do
local list = {}
for sid in pairs(t.stations) do list[#list + 1] = sid end
table.sort(list)
Config.MonitorStations[typeId] = list
end
-- ── drug kind by recipe (smoke color, animation) ───────────────────
local PREFIX = {
grow = 'weed', dry = 'weed', trim = 'weed', pack = 'weed', press = 'hash',
coke = 'coke', meth = 'meth', ecstasy = 'pill', xanax = 'sedat', oxy = 'sedat',
lsd = 'psych', dmt = 'psych', ketamine = 'sedat', fentanyl = 'opiat', opium = 'opiat', heroin = 'opiat',
}
function Config.stepKind(stepId)
if stepId == 'coke_crack' then return 'crack' end
return PREFIX[tostring(stepId or ''):match('^(%a+)')] or 'weed'
end
Config.DrugColors = {
weed = { 0.35, 0.85, 0.35 }, hash = { 0.55, 0.40, 0.20 }, coke = { 0.95, 0.95, 1.0 }, crack = { 1.0, 0.65, 0.2 },
meth = { 0.30, 0.80, 1.0 }, pill = { 1.0, 0.45, 0.75 }, psych = { 0.70, 0.35, 1.0 }, sedat = { 0.50, 0.60, 0.80 },
opiat = { 0.85, 0.65, 0.30 },
}
-- ── table effects ─────────────────────────────────────────────────
-- Every effect: when = table state (running | ready | warning | burning), asset = { dict, name }, scale, off = offset from
-- the table anchor, tint = true → color by drug, or { r, g, b }. Names can be tried with the /nvfx <dict> <name> command.
local STEAM = { 'core', 'ent_sht_steam' }
local FUME = { 'core', 'exp_grd_bzgas_smoke' }
local HAZE = { 'core', 'ent_amb_smoke_factory_white' }
local SPARK = { 'core', 'ent_sht_electrical_box' }
local ICE = { 'cut_bigscore', 'cs_dry_ice_point' }
local RED = { 1.0, 0.2, 0.15 }
local BLACK = { 0.08, 0.08, 0.08 }
local function hot(scale)
return {
{ when = 'running', asset = STEAM, scale = scale, off = vec3(0.0, 0.0, 0.45) },
{ when = 'running', asset = FUME, scale = scale * 0.16, off = vec3(0.0, 0.0, 0.4), tint = true },
{ when = 'ready', asset = STEAM, scale = scale * 1.4, off = vec3(0.0, 0.0, 0.45) },
{ when = 'ready', asset = FUME, scale = scale * 0.25, off = vec3(0.0, 0.0, 0.4), tint = true },
{ when = 'warning', asset = SPARK, scale = 0.9, off = vec3(0.0, 0.0, 0.3) },
{ when = 'warning', asset = FUME, scale = scale * 0.3, off = vec3(0.0, 0.0, 0.4), tint = RED },
}
end
Config.StationFx = {
cook = hot(0.9),
crack = hot(0.7),
extract = hot(0.8),
refine = {
{ when = 'running', asset = FUME, scale = 0.14, off = vec3(0.0, 0.0, 0.35), tint = true },
{ when = 'running', asset = HAZE, scale = 0.35, off = vec3(0.0, 0.0, 0.3), tint = true },
{ when = 'ready', asset = FUME, scale = 0.2, off = vec3(0.0, 0.0, 0.35), tint = true },
{ when = 'warning', asset = SPARK, scale = 0.8, off = vec3(0.0, 0.0, 0.3) },
{ when = 'warning', asset = FUME, scale = 0.3, off = vec3(0.0, 0.0, 0.35), tint = RED },
},
mix = {
{ when = 'running', asset = FUME, scale = 0.12, off = vec3(0.0, 0.0, 0.35), tint = true },
{ when = 'ready', asset = FUME, scale = 0.18, off = vec3(0.0, 0.0, 0.35), tint = true },
{ when = 'warning', asset = SPARK, scale = 0.8, off = vec3(0.0, 0.0, 0.3) },
},
press = {
{ when = 'running', asset = STEAM, scale = 0.35, off = vec3(0.0, 0.0, 0.4) },
{ when = 'warning', asset = SPARK, scale = 0.8, off = vec3(0.0, 0.0, 0.3) },
},
cool = {
{ when = 'running', asset = ICE, scale = 0.8, off = vec3(0.0, 0.0, 0.1), tint = true },
{ when = 'ready', asset = ICE, scale = 0.5, off = vec3(0.0, 0.0, 0.1), tint = true },
},
dry = { { when = 'running', asset = ICE, scale = 0.5, off = vec3(0.0, 0.0, 0.15), tint = { 0.6, 0.8, 0.4 } } },
grow = { { when = 'running', asset = ICE, scale = 0.45, off = vec3(0.0, 0.0, 0.3), tint = { 0.5, 0.9, 0.5 } } },
['*'] = { -- after an explosion any table burns
{ when = 'burning', asset = HAZE, scale = 2.2, off = vec3(0.0, 0.0, 0.5), tint = BLACK },
{ when = 'burning', asset = SPARK, scale = 1.2, off = vec3(0.0, 0.0, 0.3) },
},
}
-- ── rekvizity drog ───────────────────────────────────────────────────
-- For every item from production: own model nvl_<item> and fallback vanilla models (the first existing one is used).
-- A finished batch shows on the table, custom models are made by tools/blender/nvl_drug_props.py.
Config.DrugProps = {}
local function prop(item, fallback)
local models = { 'nvl_' .. item }
for _, m in ipairs(fallback or {}) do models[#models + 1] = m end
Config.DrugProps[item] = { models = models }
end
local BAG_W, BAG_M, PACK = 'bkr_prop_weed_smallbag_01a', 'bkr_prop_meth_smallbag_01a', 'prop_drug_package'
prop('weed_wet', { 'bkr_prop_weed_bucket_open_01a' })
prop('weed_dry', { 'bkr_prop_weed_bud_pruned_01a' })
prop('weed_bud', { 'bkr_prop_weed_bud_pruned_01a' })
for _, strain in ipairs({ 'ak47', 'banana', 'purple', 'widow' }) do prop('weed_' .. strain, { BAG_W }) end
prop('hashish', { 'bkr_prop_weed_block_01a' })
prop('coca_paste', { 'bkr_prop_coke_powder_01' })
prop('coke_powder', { 'bkr_prop_coke_powder_02' })
prop('coke_brick', { 'bkr_prop_coke_block_01a', 'prop_coke_block_01' })
prop('coke_bag', { 'prop_drug_package_02', PACK })
prop('crack_rock', { PACK })
prop('meth_liquid', { 'bkr_prop_meth_acetone' })
prop('meth_slab', { 'bkr_prop_meth_openpackage' })
prop('meth_clean', { 'bkr_prop_meth_openpackage' })
prop('meth_shards', { BAG_M })
prop('meth_portion', { BAG_M })
prop('meth_crystal', { BAG_M, 'prop_meth_bag_01' })
for _, item in ipairs({ 'ecstasy_raw', 'ecstasy_pill', 'xanax_raw', 'xanax_pill', 'oxy_raw', 'oxy_pill' }) do
prop(item, { 'prop_cs_pills' })
end
prop('lsd_raw', { PACK })
prop('lsd_tab', { PACK })
prop('dmt_raw', { 'prop_syringe_01' })
prop('dmt_vial', { 'prop_syringe_01' })
prop('ketamine_raw', { 'prop_syringe_01' })
prop('ketamine_vial', { 'prop_syringe_01' })
prop('fentanyl_raw', { PACK })
prop('fentanyl_patch', { PACK })
prop('opium_raw', { PACK })
prop('heroin_white_raw', { PACK })
prop('heroin_white', { PACK })
prop('heroin_black_raw', { PACK })
prop('heroin_black', { PACK })
-- ── using: animation, prop in hand, smoke from the mouth ───────────────────
-- kind is from Config.Drugs[item].kind; if the dict is missing on the client, the default animation is used.
local SMOKE = { dict = 'amb@world_human_smoking_pot@male@base', clip = 'base', flag = 49 }
local PILL = { dict = 'mp_suicide', clip = 'pill', flag = 49 }
local SNORT = { dict = 'anim@amb@nightclub@peds@', clip = 'missfbi3_party_snort_coke_b_male3', flag = 49 }
local EXHALE = { asset = { 'core', 'ent_amb_smoke_factory_white' }, scale = 0.12, times = 3 }
local HANDBONE = 28422
Config.UseAnims = {
weed = { label = _L('smoking'), time = 4500, anim = SMOKE, smoke = EXHALE,
prop = { models = { 'nvl_joint', 'prop_sh_joint_01' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
hash = { label = _L('smoking'), time = 4500, anim = SMOKE, smoke = EXHALE,
prop = { models = { 'nvl_pipe', 'prop_cs_ciggy_01' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
coke = { label = _L('snorting'), time = 3500, anim = SNORT },
crack = { label = _L('smoking'), time = 4500, anim = SMOKE, smoke = EXHALE,
prop = { models = { 'nvl_crackpipe', 'prop_cs_meth_pipe' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
meth = { label = _L('smoking'), time = 4500, anim = SMOKE, smoke = EXHALE,
prop = { models = { 'nvl_methpipe', 'prop_cs_meth_pipe' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
pill = { label = _L('taking_the_pills'), time = 2500, anim = PILL,
prop = { models = { 'nvl_pill_bottle', 'prop_cs_pills' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
psych = { label = _L('using'), time = 2500, anim = PILL },
sedat = { label = _L('taking'), time = 2500, anim = PILL,
prop = { models = { 'nvl_pill_bottle', 'prop_cs_pills' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
opiat = { label = _L('using'), time = 4000, anim = SNORT,
prop = { models = { 'nvl_syringe', 'prop_syringe_01' }, bone = HANDBONE, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } },
}
-- ── better animations at tables (replace the generic ones; if the dict is missing, the original from the recipe applies) ──
local A = Config.StationAnims or {}
Config.StationAnims = A
A.press = A.press or { dict = 'anim@amb@business@coc@coc_packing_hi@', clip = 'full_cycle_v1_pressoperator', flag = 1 }
A.refine = A.refine or { dict = 'anim@amb@business@meth@meth_monitoring_cooking@cooking@', clip = 'chemical_pour_long_cooker', flag = 1 }
A.mix = A.mix or { dict = 'anim@amb@business@coc@coc_unpack_cut_left@', clip = 'coke_cut_v1_coccutter', flag = 1 }
A.weigh = A.weigh or { dict = 'anim@amb@business@meth@meth_smash_weight_check@', clip = 'break_weigh_char01', flag = 1 }
A.trim = A.trim or { dict = 'anim@amb@business@weed@weed_sorting_seated@', clip = 'sorter_right_sort_v3_sorter01', flag = 1 }
A.dry = A.dry or { dict = 'anim@amb@business@weed@weed_inspecting_lo_med_hi@', clip = 'weed_crouch_checkingleaves_idle_01_inspector', flag = 1 }
A.pack = A.pack or { dict = 'anim@amb@business@weed@weed_sorting_seated@', clip = 'sorter_right_sort_v3_sorter01', flag = 1 }
-- animation used when the dict cannot be loaded
Config.FallbackAnim = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer', flag = 1 }
-- effect that runs while working at the table (action-type steps)
Config.ActionFx = {
press = { asset = SPARK, scale = 0.5, off = vec3(0.0, 0.0, 0.3) },
refine = { asset = STEAM, scale = 0.5, off = vec3(0.0, 0.0, 0.4) },
crush = { asset = SPARK, scale = 0.4, off = vec3(0.0, 0.0, 0.2) },
}
-- ════════════════════════════════════════════════════════════════════
-- Props during production: materials in hand when inserting (a canister with acetone and solvent, bottles with ammonia and alcohol, pseudoephedrine, gasoline, acid, sacks),
-- trays with intermediate products (a tray with meth for cooling) and containers on tables (pot, beaker, flowerpot, dryer).
-- The position in hand (bone/pos/rot) is tuned with the /nvprop <model> [bone] [carry|pour|none] command; the result is copied
-- to the clipboard and pasted here. The nvl_* models come from tools/blender, behind them are fallback vanilla models.
-- ════════════════════════════════════════════════════════════════════
local CARRY = { dict = 'anim@heists@box_carry@', clip = 'idle', flag = 49 }
local POURING = { dict = 'timetable@gardener@filling_can', clip = 'gar_ig_5_filling_can', flag = 49 }
local PLANTING = { dict = 'amb@world_human_gardener_plant@male@base', clip = 'base', flag = 1 }
local GIVE = { dict = 'mp_common', clip = 'givetake1_a', flag = 49 }
local CAN_HAND = { bone = 57005, pos = vec3(0.13, 0.0, -0.03), rot = vec3(100.0, 0.0, 0.0) } -- canister when pouring
local BOX_HAND = { bone = 28422, pos = vec3(0.025, 0.08, 0.255), rot = vec3(-145.0, 290.0, 0.0) } -- an object carried in front of you
local HAND = { bone = 28422, pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) } -- a small object in hand
Config.InputProps = {
kq_acetone = { models = { 'nvl_canister_blue', 'prop_ld_jerrycan_01' }, hand = CAN_HAND, anim = POURING, time = 2800 },
kq_meth_pills = { models = { 'nvl_pill_box', 'prop_cs_pills' }, hand = HAND, anim = GIVE, time = 2000 },
kq_ammonia = { models = { 'nvl_bottle_acid', 'prop_ld_flow_bottle' }, hand = HAND, anim = POURING, time = 2400 },
kq_ethanol = { models = { 'nvl_bottle_additive', 'prop_ld_flow_bottle' }, hand = HAND, anim = POURING, time = 2400 },
kq_rubbing_alcohol = { models = { 'nvl_bottle_additive', 'prop_ld_flow_bottle' }, hand = HAND, anim = POURING, time = 2400 },
solvent = { models = { 'nvl_canister_blue', 'prop_ld_jerrycan_01' }, hand = CAN_HAND, anim = POURING, time = 2800 },
gasoline = { models = { 'nvl_canister_red', 'w_am_jerrycan', 'prop_ld_jerrycan_01' }, hand = CAN_HAND, anim = POURING, time = 2800 },
hydrochloric_acid = { models = { 'nvl_bottle_acid', 'prop_ld_flow_bottle' }, hand = HAND, anim = POURING, time = 2400 },
coca_leaf = { models = { 'nvl_sack_leaves' }, hand = BOX_HAND, anim = CARRY, time = 2400 },
weed_seed = { models = { 'nvl_seed_bag' }, hand = HAND, anim = PLANTING, time = 2400 },
blank_pills = { models = { 'nvl_pill_box', 'prop_cs_pills' }, hand = HAND, anim = GIVE, time = 2000 },
poppy_pod = { models = { 'nvl_poppy_bundle' }, hand = HAND, anim = GIVE, time = 2200 },
cement = { models = { 'nvl_cement_bag', 'prop_cs_cardbox_01' }, hand = BOX_HAND, anim = CARRY, time = 2600 },
empty_bag = { models = { 'nvl_bag_roll' }, hand = HAND, anim = GIVE, time = 1800 },
}
-- trays with intermediate products: they are inserted and taken out like a tray carried in front of you and lie on the table while being worked with
Config.TrayProps = {}
for _, item in ipairs({ 'weed_wet', 'weed_dry', 'weed_bud', 'coca_paste', 'coke_powder', 'meth_liquid', 'meth_slab', 'meth_clean',
'meth_shards', 'meth_portion', 'ecstasy_raw', 'xanax_raw', 'oxy_raw', 'lsd_raw', 'dmt_raw', 'ketamine_raw', 'fentanyl_raw',
'opium_raw', 'heroin_white_raw', 'heroin_black_raw' }) do
local models = { 'nvl_tray_' .. item }
for _, m in ipairs(Config.DrugProps[item] and Config.DrugProps[item].models or {}) do models[#models + 1] = m end
Config.TrayProps[item] = { models = models }
Config.InputProps[item] = { models = models, hand = BOX_HAND, anim = CARRY, time = 2400 }
end
-- a container that stands on the table when cooking, mixing, growing or drying on it (and there is nothing to show on the tray)
Config.StationContainers = {
cook = { models = { 'nvl_pot_lid', 'prop_kitch_pot_huge' } },
crack = { models = { 'nvl_pot_lid', 'prop_kitch_pot_huge' } },
extract = { models = { 'nvl_pot_lid', 'prop_kitch_pot_huge' } },
mix = { models = { 'nvl_beaker', 'prop_ld_flow_bottle' } },
refine = { models = { 'nvl_beaker', 'prop_ld_flow_bottle' } },
grow = { models = { 'nvl_plant_pot', 'bkr_prop_weed_med_01a' } },
dry = { models = { 'nvl_dry_rack', 'bkr_prop_weed_drying_01a' } },
}
-- what lies on the table in the given state: a tray with what was inserted; after completion a tray (or prop) of the result
function Config.tableProp(stepId, sid, mode, out)
if mode == 'ready' or mode == 'warning' then
return out and (Config.TrayProps[out] or Config.DrugProps[out]) or nil
end
local step = Config.Steps[stepId]
local first = step and step.load and step.load[1] and step.load[1][1]
return (first and Config.TrayProps[first]) or Config.StationContainers[sid]
end
shared/plants.lua
-- ════════════════════════════════════════════════════════════════════
-- nv_laboratorycreator – plants to pick in weed labs.
-- Static plants in the interior (local props). Public lab: 100 % 1–3 seeds.
-- Private: 100 % 1–2 wet weed (quality by the quality upgrade) + 50 % 1 seed.
-- Every plant has a cooldown. Positions are tuned in /labs → Editor → Plants to pick.
-- ════════════════════════════════════════════════════════════════════
Config.LabPlants = {
model = `bkr_prop_weed_lrg_01a`,
cooldown = 60, -- s between picking one plant
strain = 'ak47', -- wet weed strain from the private lab
seed = 'weed_seed',
wet = 'weed_wet',
public = { seed = { 1, 3 } },
private = { wet = { 1, 2 }, seedChance = 50, seed = { 1, 1 } },
anim = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer', duration = 3500 },
pos = {}, -- filled below
}
-- approximate 3×2 grid around the grow station (z = interior floor); fine-tune in /labs → Editor
do
local base = vec3(1051.48, -3196.54, -39.15)
for i = 0, 5 do
Config.LabPlants.pos[#Config.LabPlants.pos + 1] = vec3(base.x + 2.2 + (i % 3) * 1.5, base.y + 2.6 + (i // 3) * 1.6, base.z)
end
end