GR1M Docs

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.

v1.0.0Needs oxmysql, ox_lib, qbx_core, ox_inventory, ox_target

#Requirements

#Setup

  1. ensure GR1M_Distillery (after ox_inventory, ox_target, qbx_core). A full restart is needed once after adding the items.
  2. /distilleryadmin (ace gr1m.distillery.admin, command, or qbx admin/god group).
  3. New distillery: name, bottle label, type (bar or hidden still), owner job, lowest grade, stash size. Save.
  4. Stations tab: add and place each station with the aim-to-place ghost (E place, scroll rotate, Shift+scroll height, arrows, Ctrl fine, G snap, Backspace cancel). 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).
  5. 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.
  6. 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

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

#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.