Electus LogoElectus Documentation

Electus Drugs Guides

Configure Electus Drugs labs, production, quality, power, shops, street dealing, raids, addiction and skills.

Admin panel

Open the panel with /drugsadmin. Change the command with Config.Admin.Command.

PageUse
LabsCreate, browse and delete labs
Live labInspect a lab, edit its contents, and set its owner and members
ItemsGive items
ProcessesEdit timers and recipes, and select the pace on the General tab
QualitySet quality rules and how finished products show quality
DifficultySelect and edit Easy, Default and Hardcore
CookbooksSelect what each drug's cookbook shows
ShopsPlace shopkeepers and edit presets
RaidsSwitch raids on or off, protect labs and manage heat
EffectsEdit what each drug does
AddictionEdit substances and manage players' levels
SkillsBrowse players' levels, reset their XP and view the skill rules

A value saved in the admin panel wins over the config file. Settings apply in this order, with the last one winning: config file, pace, difficulty, values an admin saved by hand.

Lab types

TypeSizeCreated by
Small shell12 x 8 mAdmin, behind a street door
Medium shell18 x 10 mAdmin, behind a street door
Large shell26 x 16 mAdmin, behind a street door
World grid4 to 30 m per side, 2.2 to 10 m highAdmin, on the open map
Small tent2.5 x 2.5 mPlayer, with drugs_tent_small
Large tent8 x 5 mPlayer, with drugs_tent_large

Configure labs in config/labs.lua.

SettingDefaultPurpose
MaxMembers8Crew members besides the owner
PauseAfterHours72Hours without a visit before a lab stops. 0 never stops it.
BucketBase7300Players inside a shell use routing bucket BucketBase + lab ID
Entrances.OpenWhenUnownedfalseLet anyone use a lab without an owner. When off, only admins get in.
WorldGrids.WatcherstrueWhen off, only owners, members, police during a raid and admins see a world grid lab
Storage.Slots, Storage.MaxWeightKg30, 150Stash size of each storage cabinet

Lab tents

Using a tent item pitches it on flat open ground and makes the inside a bare world grid lab owned by that player. Tents have no terminal, tap, power box, walls or doors inside.

  • Power comes from a generator, drugs_generator, which runs on gasoline.
  • Water comes from water cans that players fill in open water and pour into a tank.
  • Each tent has an exhaust fan. Cable its plug to a running generator and switch it on at the fan.
  • The owner packs the tent back into its item once everything inside is taken down.

Each player can have Config.Tents.PerPlayer tents up at once. Tents keep Config.Tents.Spacing metres from other tents and 75 m from other world grid labs. The Grow shop preset sells the tents, the generator and empty water cans.

Crew and ownership

The owner adds members on the lab terminal's CREW tab by server ID, removes them there, and sends out visitors who came in with the door code. Members walk in through the door.

Admins change the owner or members on the Live lab page under Owner & members.

Layout presets

A layout preset saves a lab's pieces, cables, switches and timers under a name. It can be applied to any lab of the same size. Saved presets are stored in electus_drugs_layout_presets.

LabBuilt-in presets
Small shellStarter grow, Cook room
Medium shellGrow room, Full operation
Large shellWeed farm, Mushroom house, Meth lab, Pill factory, Full operation
Small tentSmall tent weed grow, Small tent mushrooms
Large tentTent weed grow

Production

Every product is made by hand at stations placed in the lab. Each step can be tuned on the admin panel's Processes page.

ProductProduction
WeedPlant in a planter block, keep watered and lit, clean the leaves, harvest branches, dry on a rack or in a cabinet, then trim, grind, roll or bag at the processing table
MushroomsFill a tray with substrate, keep watered and aired, pick, dry on a tray rack, then bag at the processing table
CocaineGrow coca, pick and dry the leaves, run the extraction vat, refine on the chem heater or cooker, then cut and bag at the processing table
CrackCook cocaine base with an activator on the heater, then break it into rocks at the breaking table
MethMix at the mixing bench, cook in the cooker, pour a tray, freeze it, then break and bag it
EcstasyMake the base at the mixing bench and cooker, grind and tumble at the pill mixing bench, then press and bag the pills

The default weed strains are OG Kush, Sour Diesel, Purple Haze and White Widow. The default pills are Classic, Rush, Mellow, Trippy and Turbo.

Meth and ecstasy cooks can catch fire, explode and release fumes. Configure this in config/meth.lua. A broken cooker needs a meth_repair_kit.

Difficulty and pace

Config.Difficulty and the Difficulty page shift care, risk and waiting times together. default matches the config files exactly.

Difficulty changes waiting times, weed and mushroom care, station quality losses, mix margins, cook temperature bands, climate requirements, skill XP, dealing risk, lab heat and addiction speed. It does not change station work times, prices, yields, recipes, the power bill or police rules.

Config.Pace and the Processes page set how long the waiting takes:

PaceWaiting times
quick60 times faster, for testing
normalAs written in the config files
slow8 times slower, about a day per weed grow

Pace moves growing, seeds, regrowth, drying, soaking and freezing. Work a player does by hand stays short at every pace.

Quality

config/quality.lua sets each crop to relaxed, normal, strict, or false to keep it at 100%.

Config.Quality.Output.Mode sets how a finished product shows its batch quality:

ModeResult
percentThe item carries its quality percentage. Price and effect strength follow it.
amountBetter batches make more. Worst and Best set what a 0% and 100% batch make, as a percentage of normal.
tiersThe batch becomes a Low, Regular or High item. LowBelow and HighFrom set the limits.

Set a value in Config.Requirements to false to remove water, light, airflow, temperature or humidity as a requirement for every drug.

Power, water and climate

AreaFileNotes
Electricityconfig/electricity.luaBreaker limit, power use per device and the electricity bill
Generator and water cansconfig/generator.luaPower, fuel use and can size
WaterConfig.Water in config/config.luaTank sizes, sprinklers and irrigation timers
Lab tapconfig/water_refill.luaHose reach and fill rate
Airflowconfig/ventilation.luaExtractor and floor fan strength
Climateconfig/climate.luaOutside air, wall insulation, heaters and humidifiers

Labs with a street door get an electricity bill every Bill.EveryHours hours. Players pay it from their bank at the lab terminal. If it stays unpaid for Bill.GraceHours hours, the lab loses power until it is paid. Set Config.Electricity.Bill.Enabled = false to turn bills off.

Shops

Players buy supplies from shopkeepers you place on the admin panel's Shops page. Without placed shopkeepers, nothing can be bought.

PresetSellsPaymentRestrictions
Grow shopSeeds, water, lights, climate, drying, tents and generatorCashNone
Head shopPapers, bags, grinder and processing tableCashNone
Mushroom supplierSubstrate, trays, fans and drying rackCashNone
ChemistReagents and hard drug cookbooksDirty moneyNo police, no blip
Lab supplierLab stations and door securityDirty moneyNo police, no blip, in-game 20:00 to 06:00

Each preset in config/shops.lua can use these requirements. All of them must pass.

RequirementExamplePurpose
jobs{ { name = "mechanic", grade = 0 } }Only these jobs, from this grade up
blockedJobs{ "police" }These jobs cannot use or see the shop
gangs{ { name = "ballas", grade = 0 } }Framework gang. ESX needs Config.Shops.GetGang.
electusGang"any" or a gang IDElectus Gangs membership
electusRank2Electus Gangs role grade or better. 0 is the owner.
zoneOwnertrueThe player's Electus Gangs gang must own the shop's zone
hours{ from = 22, to = 5 }In-game hours. The shopkeeper is gone outside them.

Street dealing

Players offer drugs to people on the street. Configure it in config/selling.lua. Players with a police job cannot sell.

SettingDefaultPurpose
Payment"dirty"cash, bank or dirty
Risk"normal"How often people refuse, call the police or rob the seller
QualityMatters"normal"How much quality moves the price
DemandHours1Real hours a sold-out area takes to recover
MinPolice0Officers on duty needed before anyone buys
PricesStreet price at full quality and full demand
PremiumPrice multiplier per strain or pill type
NoSellZonesPolice stationsPlaces where nobody buys

Police raids and heat

An officer breaches a lab's entrance, the lab is sealed for police, one officer searches it, and it cannot be breached again until the cooldown ends. The Raids page has a master switch and a protection switch per lab.

SettingDefaultPurpose
PoliceJobspolice, sheriffJobs counted as police
MinPolice2Officers on duty needed
BreachSeconds30Time to breach
SearchSeconds20Time to search
GearShare50Percentage of drug equipment taken. 0 takes only the drugs.
SealedMinutes30Time the lab stays sealed
CooldownHours24Time before it can be breached again
RequiredItemfalseAn item officers must carry to breach

Plants, mushroom beds, running cooks, people inside and power use build a lab's heat. Owners are warned at 50 and 80. At 100, police receive an anonymous tip while Heat.TipOff is on. Heat cools over Heat.CoolHours.

Door security

These items are mounted at a lab entrance. The owner sets the keypad's code from the lab terminal. The Lab supplier preset sells them. Configure them in config/security.lua.

ItemEffect
drugs_keypadLets people in with a door code. Locks after wrong codes.
drugs_door_cameraFlags people who linger near the door on the lab terminal
drugs_reinforced_doorMultiplies the police breach time

Effects and addiction

config/effects.lua defines what each drug does when used. Each item can combine visual, camera, movement and body effects. The available types and settings are in shared/effects.lua.

config/addiction.lua defines each substance:

FieldPurpose
addictivenesslow, medium, high or extreme: about 20, 10, 5 or 3 uses to full addiction
cleanAfterHours without using until addiction is gone. It also falls while the player is offline.
withdrawalAfterMinutes played after the last use before cravings or symptoms start
withdrawalPreset in Config.Addiction.Presets: mild, rough or severe

Set Config.Addiction.Tolerance to shorten highs at full addiction. 0 turns tolerance off. EMS and rehab items can use TreatAddiction.

Skills

Players earn XP for weed, mushrooms, coca, meth and ecstasy by completing real steps in labs. Configure this in config/skills.lua.

Speed can be slow, normal or fast. MasterBonus sets the quality points added at Master. Lower levels add 0, 25, 50 and 75 percent of it.

Breeding

Male and female weed plants produce seeds. Config.Breeding.Recipes sets which strains can cross and the chance per seed. Missed rolls keep the female parent's strain. By default, OG Kush and Sour Diesel can make Purple Haze, and OG Kush and Purple Haze can make White Widow.

Breeding also needs Config.Processing.Enabled.

Cookbooks

Cookbooks teach players each production chain. Using one opens it on screen, and the book is kept. In Config.Cookbook.Books, or on the Cookbooks page, set each drug's edition to detailed for exact numbers or notes for rough clues.

The cookbook_<drug>_full items are always detailed and are not sold by any built-in shop, so you can use them as rewards or loot.

Configuration files

FileWhat it sets
config.luaFramework and integrations, difficulty, pace, shell grids and lights
labs.luaLab doors, world grids, members, saving and pausing empty labs
tents.lua, generator.luaLab tents, generators and water cans
shops.lua, selling.luaShopkeeper presets and street dealing
raids.lua, security.luaPolice raids, heat and door security
electricity.lua, ventilation.lua, climate.lua, lighting.luaPower, airflow, climate and shell lighting
processing.lua, coca.lua, crack.lua, meth.lua, ecstasy.luaProduction stations and recipes
addiction.lua, effects.lua, skills.lua, quality.luaDrug use, addiction, skills and quality
breeding.lua, cookbook.lua, items.luaBreeding, cookbooks and inventory item names
locales/en.luaText shown to players and admins