Oxide Cocaine

Full cocaine and crack production system with harvesting, stomping, soaking, cooking, cutting, bagging, and pressing for FiveM servers.

Oxide Cocaine is a placed-station production system for FiveM servers. Players harvest wild coca leaves, stomp them into mash, soak the mash into a raw extract in an extractor drum they load and drain by hand, and cook that extract into powder cocaine — then cook a second time into crack, bag the product for the street, or press it 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.

Key Features

  • Placed-station pipeline - Harvest, stomp, soak, cook, bag, and press across four placeable stations.
  • Two products from one chain - Cook powder cocaine, then cook it again into crack ("stepping on it").
  • Required cutting agents - Every crack batch is cut with one or two adulterants that stretch the yield at the cost of purity, with a live in-world preview of the selected cut.
  • Purity tracking - A 5-grade system (Pure, High, Mid, Low, Dirty) decided at the drain and the cook and carried through bagging, pressing, storage, and trading via item metadata.
  • 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 bucket by bucket by keeping the tap in a drifting clean-flow band — cleaner buckets grade the extract higher, and better extract cooks purer powder.
  • Interactive minigames - A free-walking pool stomp, the extractor load and drain, a temperature-control cook, and a spoon-and-baggy bagging scene.
  • Usable street products - Bagged cocaine (sniff) and crack (smoke) with purity-scaled stimulant effects, stress relief, and comedown.
  • 10-level progression - XP for every stage; leveling reduces the cook's purity penalty and unlocks the brick press at level 5.
  • Wild coca spawns - Configurable polygon zones seed wild bushes as the built-in leaf source.
  • In-game settings menu - /cocaine settings edits every setting live — recipes, timers, XP and levels, purity, minigame difficulty, prop positions, effects, and in-world zones — stored in the database, with no file editing or restart.
  • In-game manual - The cocaine_manual item teaches players the whole system in character.

Requirements

ResourcePurpose
ox_libLocale, callbacks, and UI helpers
oxmysqlDatabase access for progression, equipment, and station state
o-linkFramework, inventory, targeting, notification, needs, and usable-item abstraction

Cocaine works on QBCore, QBX, and ESX through o-link — there is nothing framework-specific to configure beyond registering the items.

All five database tables — the shared drugs_progression (cocaine rows use drug = 'coke'), drug_equipment, and oxide_settings, plus cocaine_pool_state and cocaine_container_state — are created automatically on first start. The interface (cooking, extractor and packaging HUDs, world status labels, stats card, and in-game manual) ships pre-built in web/dist, so 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.

Walk the production line in game to verify harvesting, cooking, bagging, and pressing, then tune anything you like with the in-game settings menu (/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
StageInputOutputEquipmentTime
Harvestnone2-5 coca_leafWild coca bush~6 seconds
Stomp5 coca_leaf1 coca_mashCoca PoolInteractive
Soak3 coca_mash + 1 kerosene per bucket (up to 3)1 coca_extract per bucketCoca ExtractorInteractive load and drain, 30 min soak between
Cook cocaine2 coca_extract + 1 acetone1 cocaineCook Table~20 seconds
Cook crack1 cocaine + 1-2 cuts1+ crackCook Table~20 seconds
Bag1 cocaine/crack + 1 baggy per bag1 cocaine_bag/crack_bag per bagCook TableInteractive
Press10 cocaine1 cocaine_brickBrick PressInteractive

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.

GradeScore
Pure90-100
High70-89
Mid50-69
Low30-49
Dirty0-29

Progression Highlights

LevelUnlocks
1Baking Soda, Cornstarch, Baby Laxative cuts
3Creatine, Caffeine Powder cuts
5Benzocaine, Lidocaine cuts · Brick Press
7Levamisole cut

Documentation