Oxide Cocaine
Full cocaine and crack production system with harvesting, stomping, soaking, cooking, cutting, bagging, and pressing, plus perks, cut mastery, goals, master ranks and brick stamps, for FiveM servers.
Oxide Cocaine is a placed-station production system for FiveM servers. Players harvest coca leaves from wild bushes, stomp them into a wet mash in a free-walking pool minigame, soak the mash into a raw extract in an extractor drum they load and drain by hand (the soak is restart-safe), and cook the extract into powder cocaine with a temperature minigame. That powder can be cooked a second time into crack — always cut with cutting agents to stretch it into more product for less purity — bagged into street units, or pressed into wholesale bricks. Purity is scored at the drain and the cook and carried as item metadata through every later stage, so what a player cooks is what they sell, trade, and store.
Around the chain sits a long-term progression system: 10 levels with perks, a journal of firsts, cut mastery tracks, daily and weekly goals, master ranks past level 10 with perk picks, and brick stamps that build a server-wide reputation from street sales. Players follow all of it in a profile (/cocaine stats), also available as the Refiner app on Oxide Phone and Oxide Tablet. The resource also ships with a 5-grade purity system, ten crack cuts, usable street products with purity-scaled stimulant effects, wild coca spawns as the built-in leaf source, optional police alerts, an illustrated in-game manual, an in-game settings menu, and English and French translations.
Key Features
- Placed-station pipeline - Harvest, stomp, soak, cook, bag, and press across four placeable stations.
- Wild coca spawns - Wild coca bushes across configurable polygon zones are the built-in leaf source, with per-bush yield and respawn timers.
- Free-walking pool stomp - Pour alkali and water, then walk the leaves down into mash, with a four-stage leaf prop that breaks down as you go.
- Hands-on extractor drum - A working lid, tap, bucket, and liquid levels everyone nearby can see. Pour in mash and kerosene, leave it to soak on a timer that survives logouts and restarts, then drain it one bucket at a time by keeping the tap in a drifting clean-flow band. Cleaner buckets grade the extract higher, and better extract cooks purer powder.
- Temperature-control cook - A cycling heat-control key minigame scores purity from how well the player holds the temperature, with overheat-explosion and cold-ruin failure states.
- Two products from one chain - Powder cocaine, and crack from a second cook ("stepping on it").
- Ten crack cuts - Every crack batch is cut with one or two cutting agents that stretch it into more product, with a live in-world preview of the selected cut floating over the stove. Three cuts open at level 1, then more at levels 3, 5, 7, 8 and 9. Most lower the purity; the top ones (Levamisole, and the premium Procaine and Tetracaine) raise it. Cuts can be added and removed in the settings menu.
- Purity tracking - A 5-grade system (Pure, High, Mid, Low, Dirty) carried through bagging, pressing, storage, and trading via item metadata.
- Bagging and pressing - A spoon-and-baggy bagging minigame with per-grade or mixed-grade bagging, and a brick press for compressing bulk cocaine into pressed kilos.
- Usable street products - Bagged cocaine (sniff) and crack (smoke) with purity-scaled stimulant effects, stress relief and comedown, and a per-product cooldown.
- 10-level progression - XP for every stage, with cook XP growing with the batch's purity. Leveling reduces the cook's purity penalty and unlocks the brick press at level 5 and the stronger cuts. A level-up banner lists what each level opened, "+XP" pop-ups show every gain, and the manual's level chart follows your settings.
- Perks - Levels 2, 4, 6, 8, 9 and 10 change the work: more leaves from wild bushes, faster soaks, cuts that take less purity, and +3 purity on every cook at level 10 (Master Cook).
- The cook's journal - XP for every first (the first harvest, stomp, bucket, cocaine cook, crack cook, bag and brick) and for a new best cook purity.
- Cut mastery - Every cut, and powder cooks, has its own track: Familiar at 5 cooks (50 XP, shows the cut's numbers), Skilled at 15 (100 XP, +1 purity on cooks with it) and Master at 40 (250 XP, +1 more purity and a badge). The first cook on a track pays 50 XP, for up to 3 tracks a day.
- Daily and weekly goals - 3 a day and 2 a week for XP: harvest, stomp, drain, cook, bag, press and, with Oxide Drug Selling, sell. Targets and XP scale with the level, and a player can swap one daily goal a day.
- Master ranks - Past level 10, every 4,000 XP is a rank, up to Master Refiner V. Each rank gives one pick from a pool of six perks, with a paid respec ($25,000 by default).
- Brick stamps - A level 10 cook with a Master track registers a name and a symbol for $50,000, and every brick they press carries it. Each stamp builds a server-wide reputation from street sales through Oxide Drug Selling (5 per brick, more for purer bricks), which can raise its bricks' street price by up to 15%.
- Profile and Refiner app -
/cocaine statsopens a profile with Overview, Mastery, Goals and Ranks tabs. The same profile is the Refiner app on Oxide Phone and Oxide Tablet, with level and goals widgets on the home screen. - Optional hooks - Gang influence from cooks and bricks through Oxide Gangs, Oxide Gangs territory modifiers on cook yield, soak time and bush regrowth, a skills mirror that adds cocaine XP to a skill in your skill system, and weather-driven bush regrowth with Oxide Weather.
- Police alerts - Off by default. Each stage started can tip off police at the station's location, with a chance per stage and a cooldown per site.
- Oxide HUD support - Players can move or hide the stage card, the level-up banner and the "+XP" pop-ups, and the panels can use the server's accent colour.
- In-game manual - The
cocaine_manualitem teaches players the entire system in character. - Placement and usage controls - Equipment ownership enforcement (
Config.RequireOwnership), placement zones (blocked or allowed areas), a per-item job and gang usage whitelist, vehicle-use restriction, rate limiting, session locking, and routing-bucket support. - In-game settings menu -
/cocaine settingsholds 25 sections of recipes, timers, XP and levels, perks, mastery, goals, ranks, stamps, purity, minigame difficulty, scene prop positions, effects, and in-world zones, edited live and stored in the database. Only two switches,UseHudAccentandSceneAnims, are read fromshared/config.luainstead. - English and French - Translations ship in
locales/en.jsonandlocales/fr.json. - Exports and events -
GetPlayerLevel,GetPlayerRank,GetPlayerProgression,AddXP,AddSoldfor selling-script integration,PriceForfor Oxide Drug Selling's stamped brick pricing, plusGetSetting/SetSettingto read and write live configuration. Server events:oxide-cocaine:server:levelUp,oxide-cocaine:server:rankUpandoxide-cocaine:server:settingsReady. - One command - Thirteen commands under one
/cocaineentry point:/cocaine statsfor players, and/cocaine settings,/cocaine kit,/cocaine setlevel,/cocaine setxp,/cocaine resetjournal,/cocaine setmastery,/cocaine resetgoals,/cocaine setrank,/cocaine resetpicks,/cocaine setstamp,/cocaine clearstampand/cocaine setrepfor admins.
Requirements
| Resource | Purpose |
|---|---|
| o-link | Framework abstraction for lifecycle, character identity, inventory, notify, targeting, needs, and usable-item registration, plus the optional hooks (dispatch, gangs, skills, Oxide HUD, the phone and tablet app, weather) |
ox_lib | Locale (lib.locale) and animation loading (lib.requestAnimDict) |
oxmysql | Database access for progression, equipment, station state, mastery, goals, ranks, stamps and settings |
Cocaine works on QBCore, QBX, and ESX through o-link — there is nothing framework-specific to configure beyond registering the items.
Optional
Cocaine runs fine without any of these:
| Resource | What it adds |
|---|---|
| Oxide Drug Selling (2.3.0 or newer) | Players sell bags and bricks to NPC buyers. Sales pay cocaine XP, count toward sale goals and the profile's units sold, and build brick stamp reputation; a stamp's reputation can raise its bricks' price |
| Oxide Phone or Oxide Tablet | The profile as the Refiner app, with a level widget and a goals widget |
| Oxide Gangs | Cooks and bricks can build gang influence (off until you turn it on), and territory modifiers change cook yield, soak time and bush regrowth |
A skill system (pickle_xp, ot_skills or evolent_skills) | Cocaine XP can also count toward a skill you name (off until you name one). o-link's own skill system works too |
| Oxide HUD | Players can move or hide the stage card, the level-up banner and the "+XP" pop-ups, and the panels can use the accent colour |
| Oxide Weather | Weather can speed up or slow down wild bush regrowth (off until you turn it on) |
| A dispatch resource | Police alerts go into your dispatch system (alerts are off until you turn them on) |
Database
All ten tables are created automatically on first start — there is no SQL to run.
drugs_progression: shared drug progression table; cocaine rows usedrug = 'coke'drug_equipment: shared placed-equipment statecocaine_pool_state: which pools hold finished mashcocaine_container_state: each loaded extractor's soak start and the buckets left, across restartscocaine_cook: each character's journal (firsts claimed, best cook purity, cook count)cocaine_mastery: each character's cut mastery and the units they sold of each productcocaine_goals: each character's daily and weekly goals and their progresscocaine_ranks: each character's master rank perk pickscocaine_stamps: every brick stamp, with its owner, name, symbol, reputation and bricks soldoxide_settings: shared settings table — holds the live configuration edited from the in-game settings menu
Interface
The stomp, extractor, cooking and packaging HUDs, the cut picker, world status labels, the level-up banner and "+XP" pop-ups, the profile (/cocaine stats), the in-game manual and the settings menu, and the Refiner app page for Oxide Phone and Oxide Tablet ship pre-built in web/dist — there is nothing to compile.
Quick Start
Place oxide-cocaine in your resources folder.
Start ox_lib, oxmysql, o-link, and then oxide-cocaine.
Register the equipment, ingredient, cutting-agent, and product item names in your inventory, and copy the item images. The database tables are created automatically on first start — no SQL to run.
Review the starting values in shared/config.lua and shared/config/, then fine-tune anything you like in game with /cocaine settings.
See the Installation Guide for the full setup flow.
Production Pipeline
Harvest -> Stomp -> Soak -> Cook -> (Bag for the street) or (Press into bricks)
\-> Cook again -> Crack -> Bag for the street| Stage | Input | Output | Equipment | Time |
|---|---|---|---|---|
| Harvest | none | 2-5 coca_leaf | Wild coca bush | ~6 seconds |
| Stomp | 5 coca_leaf | 1 coca_mash | Coca Pool | Interactive |
| Soak | 3 coca_mash + 1 kerosene per bucket (up to 3) | 1 coca_extract per bucket | Coca Extractor | Interactive load and drain, 30 min soak between |
| Cook cocaine | 2 coca_extract + 1 acetone | 1 cocaine | Cook & Bag Table | ~20 seconds |
| Cook crack | 1 cocaine + 1-2 cuts | 2+ crack (1, plus what each cut adds) | Cook & Bag Table | ~20 seconds |
| Bag | 1 cocaine/crack + 1 baggy per bag | 1 cocaine_bag/crack_bag per bag | Cook & Bag Table | Interactive |
| Press | 10 cocaine | 1 cocaine_brick | Brick Press | ~9 seconds (timed press cycle) |
Purity Grades
The cook's temperature control sets a 0-100 score that becomes a grade stamped on the item and carried through every later stage. The grade of each drained bucket of extract shifts that score (Pure extract +10 up to Dirty -10), so a clean drain cooks purer powder.
| Grade | Score |
|---|---|
| Pure | 90-100 |
| High | 70-89 |
| Mid | 50-69 |
| Low | 30-49 |
| Dirty | 0-29 |
Progression Highlights
| Level | Unlocks (default settings) |
|---|---|
1 | Coca Pool, Soak Extractor, Cook & Bag Table · Baking Soda, Cornstarch, Baby Laxative cuts |
2 | Sharp Eye perk (at least 1 more leaf from wild bushes) |
3 | Creatine, Caffeine Powder cuts |
4 | Patient Soak perk (drums you load soak 15% faster) |
5 | Brick Press · Benzocaine, Lidocaine cuts |
6 | Light Hand perk (cuts take 25% less purity) |
7 | Levamisole cut |
8 | Procaine cut · Patient Soak perk (about 23% faster in all) |
9 | Tetracaine cut · Light Hand perk (40% less in all) |
10 | Master Cook perk (+3 purity on every cook) |
Every level from 2 to 10 also lowers the cook's purity penalty, down to none at level 10. Past level 10, every 4,000 XP is a master rank (Master Refiner I at 15,000 XP to V at 31,000), each with one perk pick. See Progression.