Glitched Scripts
MoonshiningAdvanced Configuration

config.lua

Owner-facing config for timers, shops, supplies, mash recipes, shacks, and keys.

All keys live in config.lua (escrow-open). Examples below match the shipped defaults.

Dev Mode

Prints extra console info. Keep disabled on live servers.

DevMode = false, -- Enable/Disable DevMode

Locale

Loads locales/<key>.json. English ships as en.

Locale = 'en',

Framework

Framework = 'auto', -- auto | vorp | rsg

"auto" resolves to rsg or vorp from started cores. See Integrations.

Currency

-- 0 = money/cash, 1 = gold, 2 = rol (VORP) / bloodmoney (RSG)
SuppliesCurrency = 1,
MashCurrency = 1,

Distance Settings

DistanceToSpawn = 100.0, -- Distance to spawn and despawn equipment
DistanceToSpawnSmoke = 1000.0, -- Distance to spawn and despawn smoke
DistanceEquipmentPrompt = 2.0, -- Distance to show the prompt to interact with equipment
ShopsPromptDistance = 2.2, -- Distance to show the prompt to interact with shops

Time Settings

Timers control UIPrompt countdowns and are persisted in the database across restarts.

StillTime = 60*60*4, -- Time to produce a batch (Def: 4 Hours)
StillMaintenanceTime = 60*60, -- Time between maintain prompts (Def: 1 Hour)
StillExpire = 60*60*1.5, -- Time after ready until the batch is overcooked (Def: 1.5 Hours)

MashTime = 60*60*2, -- Time until mash is fermented (Def: 2 Hours)
MashMaintenanceTime = 60*30, -- Time between stir prompts (Def: 30 Minutes)
MashExpire = 60*60, -- Time until unstirred mash expires (Def: 1 Hour)

Delete Settings

Purge idle / destroyed equipment rows on startup to keep the table small.

DeleteEquipment = true,
DeleteEquipmentDestroyed = true,
DeleteEquipmentTime = 60*60*24, -- Should stay higher than StillTime and MashTime

Inventory images

Leave nil so the framework bridge sets the path. Override for custom inventory NUI paths.

InventoryImagePath = nil,

Shops

Disable shops entirely with EnableShop, or edit ped locations.

EnableShop = true,

Shops = {
    { -- Lemoyne
        coords = vector4(1790.8, -818.87, 189.4, 39.46),
        model = 'mp_a_m_m_moonshinemakers_01',
        scenario = 'WORLD_HUMAN_BARTENDER_CLEAN_GLASS'
    },
    -- Cattail Pond, New Austin, Hanover, Manzanita Post...
},

Supplies

Still Kit and Mash Bucket. Prefer keeping still props unchanged so fill animations stay aligned.

Supplies = {
    Still = {
        itemName = 'resource_still_kit',
        label = 'Still Kit',
        price = 100,
        removeDurability = 10,
        prop = 'mp006_p_moonshiner_still02x',
        prop_destroyed = 'mp006_p_moonshiner_still02x_dmg',
    },
    Mash = {
        itemName = 'resource_still_bucket',
        label = 'Mash Bucket',
        price = 5,
        removeDurability = 10,
        prop = 'p_barrelhalf02x',
    }
},

Mash

Eleven recipes ship preconfigured. Each entry sets shop price, ferment ingredients, brew rewards (min/max), and allowShop.

Mash = {
    ['consumable_mash_apple'] = {
        label = 'Apple Mash',
        price = 10,
        requiredItems = {
            ['sugar'] = 1,
            ['wheat'] = 1,
            ['corn'] = 3,
        },
        brewRewards = {
            ['consumable_alcohol_moonshine_apple'] = {min = 3, max = 5}
        },
        allowShop = true
    },
    -- additional recipes...
},

Optional requiredSupply can require a mash bucket item in inventory for that recipe.

Shacks

RDO moonshine shack interiors, entity sets, and enter/leave teleports. Disable if another resource already handles shacks.

EnableShacks = true,

Shacks = {
    {
        enabled = true,
        outside = vector4(1784.9, -821.61, 42.86, 133.49),
        inside = vector4(1785.08, -821.59, 192.6, 319.95),
        id = 77313,
        sets = {
            "mp006_mshine_band2",
            -- ...
        },
    },
    -- Cattail Pond, New Austin, Hanover, Manzanita Post...
},

Keybinds

UIPrompt and placement gizmo control hashes. Leave alone unless you know RDR control hashes.

Keys = {
    shack = 0x17BEC168, -- E
    store = 0x17BEC168, -- E
    build = 0x4CC0E2FE, -- B
    still = 0x17BEC168, -- E
    mash = 0x17BEC168, -- E
    collect = 0x760A9C6F, -- G
    fill = 0xB2F377E8, -- F
    destroy = 0xB2F377E8, -- F
    cancel = 0x8CC9CD42, -- X

    up = 0x6319DB71, -- Up Arrow
    down = 0x05CA7C52, -- Down Arrow
    left = 0xA65EBAB4, -- Left Arrow
    right = 0xDEB34313, -- Right Arrow
    rotater = 0xE3BF959B, -- R
    rotatel = 0xD51B784F, -- E
    ground = 0xB238FE0B, -- Tab
}

On this page