Everything is in shared/config.lua (weed, coke, gummies, contacts, police, XP, integrations) and shared/lab.lua (grow labs). Both are commented line by line. The defaults are the balance the resource was tuned with. Prices are in dirty money (the black_money item) unless a line says otherwise.
Main blocks#
| Key | What it controls |
|---|---|
Config.PlayerPlantLimit |
Plants per character. Default 12. |
Config.PlantDistance |
Metres between two plants. Default 3.0. |
Config.GrowTime |
Grow time in minutes, rolled per plant. Default { 40, 60 }. |
Config.WaterDecay, Config.FertilizerDecay |
Care drain per minute. Defaults 1.6 and 1.4. |
Config.Quality |
Harvest quality from care. |
Config.OnlyAllowedGrounds, Config.AllowedGrounds |
Ground types where planting is allowed. Default on. Find a hash with /getGroundHash. |
Config.NoPlantAreas |
Boxes where nothing may be planted. Default empty. |
Config.Zones |
Optional grow speed zones, worked out on the server. Default empty. |
Config.Plants, Config.PlantTypes |
Strains, their items and the plant props. |
Config.Genetics, Config.Traits |
Genes, crossing, cuttings, strain naming and traits. |
Config.Weed |
Drying (dryMinutes = 10), bagging, joints and bricks (bagsPerBrick = 20). |
Config.Coke |
The coke chain: items, station positions, timers, dailyCap = 4 batches per character, crewDailyCap = 4, cutting and bricks. |
Config.Coke.testingMode |
Makes every coke timer a few seconds and skips the minigames. Default false. Turn it off on a live server. |
Config.Crack |
Crack cooking and the list of stove props that count as a stove. |
Config.CocaField |
The coca field: centre, bush count (36), radius, picks per bush and respawn time. |
Config.Gummies |
Oil, moulds, doses, heat settings, blends and additives. packIcons = false keeps every pack on the plain picture. |
Config.Contacts |
The Botanist's and the Cartel's prices, positions and limits. |
Config.WeedShop |
The starter shop. |
Config.SeedLevels |
Growing level needed per seed. |
Config.PlantSpotting, Config.PoliceJobs, Config.Alerts |
Police smell range (35.0), the jobs that count as police and the dispatch alerts. |
Config.XP, Config.Tablet, Config.DirtyMoney, Config.Account |
Progression and money. |
Config.Drugs |
Effects, cooldowns and stress relief for joints, cocaine, crack, gummies and meth. |
Config.Fallbacks |
What happens when an optional resource is missing. |
Config.Lab (in shared/lab.lua) |
The grow labs. |
General settings#
| Key | Default |
|---|---|
Config.AdminAce |
'glitch-drugs.admin' |
Config.LegacyAce |
'it-drugs'. Set to false on a new install. |
Config.Language |
'en' |
Config.Debug |
false |
Config.ManualDatabaseSetup |
false |
Config.EnableDrugs |
true |
Config.ClearOnStartup |
true (dead plants are removed when the resource starts) |
Contacts#
| Key | Default |
|---|---|
Config.Contacts.botanist.maxBuy |
50 of one item per purchase |
Config.Contacts.botanist.premiumTrust |
50 |
Config.Contacts.botanist.brickPrice |
{ 2860, 3300 } per weed brick, by purity |
Config.Contacts.botanist.minPolice |
1 police on duty before he buys bricks |
Config.Contacts.cartel.meetRep |
2000 tablet REP |
Config.Contacts.cartel.meetSales |
5000 of drug sales |
Config.Contacts.cartel.keyPrice |
35000 for the coke_lab_key, one time |
Config.Contacts.cartel.maxBuy |
20 baking soda per purchase |
Config.Contacts.cartel.brickPrice |
{ 7800, 8800 } per coke brick |
Config.Contacts.cartel.bulkPolice |
3 police on duty for bulk drops |
With glitch-criminaltablet running, the contacts' positions and models come from the tablet's own config. Without it they use Config.Contacts.
Grow labs#
Key in Config.Lab |
Default |
|---|---|
enabled |
true |
bucketBase |
7300 (routing bucket = bucketBase plus the lab id) |
account |
'dirty'. Use 'dirty', 'cash' or 'bank'. |
lease |
{ price = 50000, rentWeek = 10000, trust = 50, graceDays = 3, maxPerPerson = 1 } |
maxCrew |
6 people on the access list besides the owner |
plantsPerBed |
4 |
flowerTime |
35 minutes |
dryCap |
150 buds in the dry room |
evictDays |
7 days past the grace period |
sites |
Five doors: Del Perro, Davis, La Mesa, Grapeseed and Paleto Bay. Edit the coordinates for your map. |
The grow labs use the biker weed farm interior from bob74_ipl. If you do not run it, set Config.Lab.enabled = false.
Translations#
The plant menus and the drug notifications use locales/en.lua. To translate them, copy it, change the key and set Config.Language. The rest of the player text (contacts, coke lab, grow labs, gummies and the panels) is English written into the Lua and JS files, so translating those parts means editing the code.