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
| Item | Label | Price |
|---|---|---|
| gun_frame | Frame | $400 |
| gun_barrel | Barrel | $250 |
| gun_slide | Slide | $220 |
| gun_spring_kit | Spring Kit | $90 |
| gun_stock | Stock | $180 |
| gun_trigger | Trigger Assembly | $260 |
| gun_barrel_long | Long Barrel | $420 |
| gun_optic_rail | Optic Rail | $150 |
| gun_polymer_frame | Polymer Frame | $380 |
| gun_printed_frame | 80% Printed Frame | $550 |
| ar_lower_receiver | AR-15 Lower | $480 |
| ak_receiver | AK Receiver | $460 |
| draco_brace | Pistol Brace | $260 |
| revolver_cylinder | Revolver Cylinder | $300 |
| smg_receiver | SMG Receiver | $400 |
| shotgun_receiver | Shotgun Receiver | $420 |
| gp_craft_table | Gunplug 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.
| List | Parts |
|---|---|
| GLOCK_PATTERN | Polymer Frame, Barrel, Slide, Spring Kit |
| GLOCK_SWITCH | GLOCK_PATTERN + Trigger Assembly |
| PRINTED_PATTERN | 80% Printed Frame, Barrel, Slide, Spring Kit |
| AK_RIFLE | AK Receiver, Long Barrel, Stock, Trigger Assembly |
| DRACO_COMPACT | AK Receiver, Pistol Brace, Barrel |
| AR_PLATFORM | AR-15 Lower, Barrel, Stock, Optic Rail |
| AR_PLATFORM_LONG | AR-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.