Commands#
| Command | Who | What |
|---|---|---|
/drugadmin plants |
glitch-drugs.admin ACE |
Plant admin menu: plant count, a list by distance with teleport, owner and location, map blips, setting a plant's genes, giving seeds or cuttings with chosen genes, and renaming or removing registered strain names. |
/getGroundHash |
glitch-drugs.admin ACE |
Shows the ground material under you, for Config.AllowedGrounds. |
/cokelab |
group.admin |
Moves the coke lab stations and the coca field to where you stand. |
The command names for /drugadmin and /getGroundHash come from locales/en.lua (COMMAND__ADMINMENU and COMMAND__GROUNDHASH).
The grow lab laptop also has an Admin tab for staff. It opens for the founder, admin or glitch-drugs.admin ACE, or one of Config.Gummies.staffRoles when glitch-admin is running.
Server exports#
| Export | Returns |
|---|---|
exports['glitch-drugs']:GetGrowLabs() |
A list of every grow lab: id, site, label, name, brand, owner, heat, raided, locked, beds, growing, ready, dry, harvests, buds, front, medium and bill. |
exports['glitch-drugs']:GetTabletPlaces() |
The coke lab (kind = 'lab') and the coca field (kind = 'field') as { id, label, kind, coords, radius }, for the glitch-criminaltablet map. |
exports['glitch-drugs']:BotanistStoreBuy(src, lines) |
The purchase handler glitch-stores calls for the Botanist's shop. lines is a list of { slot, name, count }. It returns { bought, spent, error, items }. Do not call it yourself. |
This resource has no client exports.
Events other resources can use#
| Event | Side | What |
|---|---|---|
glitch-drugs:rc:shop |
Client | The EVENT node name in the rc-interactions flow. It opens the contact's trade menu. |
All other events and callbacks use the glitch-drugs: prefix and are internal. They check the calling player, distance, items and a per-player lock, so other resources should not trigger them.
Items#
The item definitions are in install/ox_inventory_items.lua. They include the seeds, weed_bud, weed_cutting, the strain bags and joints, weed_brick, water_can, weed_nutrition, grow_shears, drug_scale, brick_press, the coke chain items (coke_lab_key, coca_leaf, soaked_coca, pressed_coca, coke_paste, cokebaggy, baking_soda, coke_brick, crack_baggy), the gummy items (thc_oil, cooking_oil, gummy_mix, gummy_mould, thc_gummy, caffeine_powder, melatonin, sour_sugar) and the grow lab supplies (bloom_booster, pest_spray, carbon_filter, diesel_can, filter_cartridge).
Database tables#
| Table | Used for |
|---|---|
drug_plants |
Outdoor weed plants, with a glitch column for care, perks and genes. |
weed_strains |
Strain names players registered at the Botanist. |
glitch_growlabs |
Leased grow labs. |