Distillery
Bars distill their own liquor at stations placed in game: mash → ferment → distill → age → bottle. Hidden stills make illegal moonshine with no job lock, and police can smash them. Qbox + ox_inventory + ox_target. UI in the GR1M-GOD look; the three minigames draw realistic equipment in SVG.
#Requirements
- Required: qbx_core, ox_lib, ox_inventory, ox_target, oxmysql.
- Items: add
install/ox_inventory-items.luato ox_inventory and copyinstall/images/*. - Where players get supplies: sell the ingredients (corn, potato, sugar, yeast, water, honey, malted barley, rye, molasses, agave heart, juniper, oak chips), empty bottles and the upgrade materials (copper sheet, oak stave) in any shop: an ox_inventory shop works. Nothing else is needed.
- Optional, used when running: rcore_drunk (drunk effect), GR1M_Skills (Distilling tree), GR1M_Bins (sell-price floor and a Distilling shop category), envi-restaurants (supplier), rtx_housing (home delivery), kartik-mdt (police dispatch). Everything works without them.
#Setup
ensure GR1M_Distillery(after ox_inventory, ox_target, qbx_core). A full restart is needed once after adding the items./distilleryadmin(acegr1m.distillery.admin,command, or qbx admin/god group).- New distillery: name, bottle label, type (bar or hidden still), owner job, lowest grade, stash size. Save.
- Stations tab: add and place each station with the aim-to-place ghost (
Eplace, scroll rotate,Shift+scroll height, arrows,Ctrlfine,Gsnap,Backspacecancel). A full setup is a mash tun, one or more fermenters, a still, a barrel rack, a bottling table and a stash. Per station: prop, batch limit, cooldown (still), barrel slots (rack). - Recipes tab: output item, where it can be made, bottles, bottle look, ingredients, every step on/off with timings and XP, drunk strength for the new spirits.
- Rules tab: police smash hold, broken hours, dispatch chance, smoke, price multipliers per grade, rough-batch grade, aging speed and cap, minigame difficulty, XP multiplier, duty rule.
Everything saves to gr1m_distillery_state (created on start) and syncs live. config.lua only seeds a fresh install.
#Flow
- Mash (mash tun): ingredients are taken, then the mash minigame (hold heat in the band, stir on the beat). The wash goes into a free fermenter.
- Ferment: real-time timer that runs while nobody is around. Fruit recipes (wine, brandy) start here.
- Distill (still): pump a finished wash in, then the still minigame (heat needle, drafts, boil-overs, heads/hearts/tails cuts). Super Vodka is a second run of 4 vodka loaded at the still.
- Age (barrel rack, optional or required per recipe): +8 quality per
ageStepHoursreal hours, up to the cap. - Bottle (bottling table): uses one
empty_liquor_bottleper bottle, pour + label minigame. Bottles go to the job stash (hidden stills: pockets) with metadata: label, quality, score, batch, maker, aged,priceMult,rough.
Quality: mash score, blended with the still score, plus aging, nudged by bottling. Grades S/A/B/C/D/F. GR1M_Bins multiplies its sell price by the bottle's priceMult. Rough bottles give a mild woozy screen and one stumble when drunk (no health change).
#Upgrades
Equipment the distillery owns (separate from each worker's Distilling tree). Terminal Upgrades tab: everyone sees the tiers, only the owning job's boss buys, paid from the society account (GR1M_UltraBoss); tiers II and III also take copper_sheet or oak_stave from the boss's pockets (GR1M_Bins). Tracks: Capacity (bottles per batch), Temperature Control (ferment time), Copper Column (still cooldown, quality at III), Cooperage (barrel slots, aging speed at III), Bottling Line (fill line, empties saved on a spill), Storage (stash slots and weight). Hidden stills get a cash-bought Worm Condenser and Smoke Baffle that a police smash wipes. Prices, materials and effects are in /distilleryadmin > Upgrades, which can also set any distillery's tiers and shows the install log. Tiers stay through job changes and station re-placing, no refunds, deleting the distillery wipes them.
#Shop NPCs
Bar distilleries can sell bottles through placed NPCs, around the clock. /distilleryadmin > Shop NPCs: name, ped (browser or any typed model), pose, per-purchase limit, shelf slots, blip, Move, Teleport, plus the price floor and whether other bars' bottles are allowed. Terminal Shop tab: on-duty staff stock from the job stash or their pockets and pull stock back, the boss prices per drink and grade, and everyone sees sales. Only bottles from this distillery are taken unless the admin setting allows other bars; store bottles are refused. Bottles keep their metadata on the shelf (stored in the runtime state). The floor is the GR1M_Bins payout (exports.GR1M_Bins:SellQuote) x grade multiplier x shopFloorMult, checked again at every sale so nobody can buy and flip to Bins for profit. Buyers pay cash or bank and the money goes to the job account (GR1M_UltraBoss:AddMoney). Deleting an NPC or the distillery sends its stock back to the job stash.
Home delivery (rtx_housing). At a shop NPC the buyer can pick "Deliver to <property>" instead of "Take it now". The list is every rtx property they own or rent (read from rtx's houses table, server/homes.lua). The bottles are sent with rtx's own server export SendHousePackage and land in that property's mailbox (door menu or exit menu inside, owner/tenants/key holders). A delivery fee goes on top and, like the bottle price, goes to the job account. If the mailbox is full or rtx refuses, the buyer is refunded and the bottles stay on the shelf. Admin settings in Shop NPCs > Home delivery: on/off (deliveryOn), fee (deliveryFee), arrival delay in minutes (deliveryMinutes, 0 = right away). rtx's mailbox notes say package items lose their metadata, so the package note also records grade and age; if rtx drops the metadata the bottle arrives as a plain drink. No rtx files are edited.
#Integrations
- ox_inventory items (appended):
rum,tequila,brandy,moonshine(useGR1M_Distillery.drink→ rcore_drunk'sDrankSuperVodkawith the recipe's drunk strength),malted_barley,rye,molasses,agave_heart,juniper,oak_chips,empty_liquor_bottle. Icons inox_inventory/web/images. - Ingredients: envi-restaurants supplier (
config/ingredients.lua) sells corn, potato, sugar, yeast, water, honey and now the distilling supplies; grapes come from the vineyard; GR1M_Bins has a Distilling category (stock via sales or/gr1mbins restock <item> <count>). - GR1M_Skills: new
distillingcategory + tree; actiondistill_step; effectsmash_control,distill_steady,distill_nose,bottling_hand,distill_yieldwiden the minigames. - kartik-mdt dispatch for hidden still runs (rough area, offset ~35 m).
#Trust notes
Minigames run on the client. The server takes ingredients up front, holds the session, rejects runs faster than the game allows (score capped at 20), and clamps every score and bottle count. Closing a minigame refunds what it took; a player who drops mid-batch gets the ingredients back on next login.
GR1M