Discord Store
Gunplug

Configuration

Everything is in config.lua. Notifications follow dh_bridge's own Config.Notify.

General

config.lua
Config.MoneyAccount = 'both'      -- 'cash' | 'bank' | 'both'
Config.Job          = 'gunplug'   -- required to buy, place, use and craft

Config.Table = {
    item             = 'gp_craft_table',
    model            = 'gr_prop_gr_bench_02b',
    maxPlaceDistance = 8.0,
    rotateSpeed      = 2.0,
    zOffset          = 0.0,
    moveSpeed        = 0.02,
}

The Plug

config.lua
Config.Supplier = {
    label       = 'The Plug',
    model       = 'g_m_m_armboss_01',
    coords      = vector4(-218.37, -1617.36, 33.91, 328.96),  -- set your location
    scenario    = 'WORLD_HUMAN_STAND_IMPATIENT',
    maxDistance = 5.0,
}

Config.SupplierBlip = { enabled = false, coords = Config.Supplier.coords, sprite = 110, color = 5, scale = 0.8, label = 'The Plug' }

Config.SupplierItems = {
    { item = 'gun_frame',         label = 'Frame',         price = 400,  category = 'parts', desc = 'Stripped lower/frame.' },
    { item = 'ar_lower_receiver', label = 'AR-15 Lower',   price = 480,  category = 'parts', desc = 'Stripped AR-pattern lower receiver.' },
    { item = Config.Table.item,   label = 'Gunplug Bench', price = 4500, category = 'equipment', desc = 'Place it down and get to work.' },
}

Parts

ItemLabelPrice
gun_frameFrame$400
gun_barrelBarrel$250
gun_slideSlide$220
gun_spring_kitSpring Kit$90
gun_stockStock$180
gun_triggerTrigger Assembly$260
gun_barrel_longLong Barrel$420
gun_optic_railOptic Rail$150
gun_polymer_framePolymer Frame$380
gun_printed_frame80% Printed Frame$550
ar_lower_receiverAR-15 Lower$480
ak_receiverAK Receiver$460
draco_bracePistol Brace$260
revolver_cylinderRevolver Cylinder$300
smg_receiverSMG Receiver$400
shotgun_receiverShotgun Receiver$420
gp_craft_tableGunplug Bench$4,500

Category defaults

Every weapon inherits craft time, tier and parts from its category unless it sets its own.

config.lua
Config.GunCategoryDefaults = {
    pistol = { tier = 1, time = 9000,
        ingredients = { { item = 'gun_frame', count = 1 }, { item = 'gun_barrel', count = 1 },
                        { item = 'gun_slide', count = 1 }, { item = 'gun_spring_kit', count = 1 } } },
    rifle  = { tier = 3, time = 17000,
        ingredients = { { item = 'ak_receiver', count = 1 }, { item = 'gun_barrel_long', count = 1 },
                        { item = 'gun_stock', count = 1 }, { item = 'gun_trigger', count = 1 } } },
    -- revolver, smg, carbine, shotgun, sniper ...
}

Platform part lists

Named part sets so different weapon families build differently. Reuse one on any weapon.

ListParts
GLOCK_PATTERNPolymer Frame, Barrel, Slide, Spring Kit
GLOCK_SWITCHGLOCK_PATTERN + Trigger Assembly
PRINTED_PATTERN80% Printed Frame, Barrel, Slide, Spring Kit
AK_RIFLEAK Receiver, Long Barrel, Stock, Trigger Assembly
DRACO_COMPACTAK Receiver, Pistol Brace, Barrel
AR_PLATFORMAR-15 Lower, Barrel, Stock, Optic Rail
AR_PLATFORM_LONGAR-15 Lower, Long Barrel, Stock, Optic Rail

Weapon catalog

One line per weapon. id must exactly match the item name and weapon hash.

config.lua
Config.GunPack = {
    { id = 'WEAPON_GLOCK17',  label = 'Glock 17',               category = 'pistol',  enabled = true, ingredients = Config.GunPartLists.GLOCK_PATTERN },
    { id = 'WEAPON_GLOCK18C', label = 'Glock 18C Switch - 9mm', category = 'pistol',  enabled = true, ingredients = Config.GunPartLists.GLOCK_SWITCH },
    { id = 'WEAPON_AR15',     label = 'AR-15 Custom - 5.56',    category = 'carbine', enabled = true, ingredients = Config.GunPartLists.AR_PLATFORM },
    { id = 'WEAPON_DRACOMICRO', label = 'Micro DRACO R.O - 7.62mm', category = 'rifle', enabled = true,
      ingredients = Config.GunPartLists.DRACO_COMPACT, tier = 2, time = 13000 },
    { id = 'WEAPON_RMT590',   label = 'Remington 590 Short - 12 Gauge', category = 'shotgun', enabled = true },  -- uses the category default
}

Craft cap & weekly reset

config.lua
Config.CraftCap = {
    enabled = true,
    max     = 5,       -- successful crafts per recipe, per character, per cycle
}

Config.CraftCycle = {
    enabled        = true,
    weekday        = 6,     -- 1 = Sunday ... 6 = Friday, 7 = Saturday
    hour           = 0,
    minute         = 0,
    announceRotate = true,
}
The reset uses the server's clock and timezone. Unused crafts don't carry over.