Configuration Reference

The in-game settings menu and every Oxide 3D Weapon Printing setting, organized by config file.

Settings come in two kinds:

  • Gameplay settings (limits, ownership, filament, failures, upgrades, durability, XP, goals, prices, buyers, police) are changed in game with /weaponprinting settings and saved in your server's database. They apply straight away, with no restart. See The in-game settings menu.
  • File settings (item names, models, blueprints and recipes, attachments and finishes, the printer and bench scenes) live only in shared/config.lua and the files inside shared/config/ and shared/config/bench/. Open them with any text editor (Notepad++, VS Code), save, and restart the resource (type restart oxide-weaponprinting in the server console).

The config files hold the shipped value of every setting, and every value below is the default the resource ships with.

The in-game settings menu

The settings editor

Type /weaponprinting settings in the chat box while playing (you must be an admin). A panel opens with every gameplay setting, grouped into categories, with Basic and Advanced tabs and a search box. Change a value, click Save, and it applies straight away, with no server restart. Store suppliers and buyers are moved or re-made at once; a player standing at a counter sees the change when they close it. The supplier and buyer locations, the dispatch zone centres and the safe zones can be placed or drawn in the world from the panel.

The database is the source of truth

"The database" is the MySQL storage your whole server already uses to remember characters, money, and so on. oxide-weaponprinting keeps its menu settings there too, in a shared table called oxide_settings (created automatically, you don't have to make it).

  • The first time the resource starts with no saved settings (a new install, or an update from a version without the menu), every menu setting's value is copied from the config files into the database. Anything you had already customised in the files is kept exactly as it was.
  • From that point on, the database is in charge of the menu settings. Editing the config files does not change a menu setting that already exists: the resource reads the saved value instead. Use /weaponprinting settings.

What the config files are still for

  • They hold every file setting (see Settings that stay in the file). Change those in the file and restart, as before.
  • They are the factory defaults of the menu settings. On a brand-new install they provide every starting value, and when a future update adds a new menu setting, the file supplies its starting value the first time you boot the update.
  • The reset button in the settings panel puts back the value from the files. It resets the whole card the setting is on: resetting Gunsmith supplier also resets its suppliers, items and category tabs. (Editing the file by hand and restarting will not pull a value back in for a menu setting that already exists. Use reset instead.)

What is in the menu

Menu categoryGroupConfig key
CoreGeneralConfig.RequireOwnership, Config.MaxPerPlayer, Config.SpawnDistance, Config.PrinterSpacing
CorePlacement ZonesConfig.SafeZones, drawn in the world
CorePolice SeizureConfig.Seizure
CoreDispatchConfig.Dispatch. A zone's alert chance of -1 uses the alert chance above it
CoreCompatibilityConfig.ModelSwaps. A replacement applies to equipment that spawns after the save
PrintingFilamentConfig.Filament: spool size, and each tier's name, quality cap and durability cap
PrintingCalibrationConfig.Calibration
PrintingPrint FailuresConfig.Failure, Config.UsbMalfunction
PrintingPrinter UpgradesConfig.Upgrades: what each tier does. The nozzle's None row is the print time of every printer without a nozzle
BenchWeapon QualityConfig.Quality
BenchAssemblyConfig.AssemblyGame
BenchDurability & JamsConfig.Durability, Config.Jam
BenchWeapon KitsConfig.RepairKit, Config.CleaningKit
BenchRecyclerConfig.Recycler. Turned off, placed recyclers leave the world until it is on again; they stay saved
ProgressionProgressionConfig.Progression: XP rewards, XP by quality, the flawless score, the level-up message, XP pop-ups, levels, level unlocks, upgrade levels and level-gap quality
ProgressionMasteryConfig.Mastery
ProgressionGoalsConfig.Goals. Pool, count and scaling changes apply to goals drawn after them
ProgressionMilestonesConfig.Milestones
ProgressionMaker's MarkConfig.MakerMark
ProgressionPaymentConfig.Payment
ProgressionGunsmith AppConfig.GunsmithApp
EconomyStoreConfig.Store
EconomyBuyersConfig.Buyers
EconomyDark WebConfig.DarkWeb

Some menu settings hold parts that are not in the menu. Those parts stay file settings, and the files' values are used at every start:

  • Config.Filament: each tier's item and the tier order
  • Config.Calibration: temperature.tickMs
  • Config.Upgrades: each upgrade's label, items and maxTier
  • Config.Failure: the failure kinds
  • Config.Jam: unjamAnim
  • Config.RepairKit, Config.CleaningKit: item and anim
  • Config.Recycler: item, models, hopper, drop, output, camera, target and anim
  • Config.Progression: metadataKey, blueprintLevels, assemblyLevels and experienceBonus

Each part's print time and filament cost are in the blueprint files with the parts themselves, so they stay file settings too. The menu's print time controls are the nozzle tiers (Printer Upgrades) and the mastery tiers (Mastery).

Settings that stay in the file

These are never copied into the database and are not in /weaponprinting settings, so they are always read from the config files. Change them in the file and restart the resource.

SettingWhat it is
Config.PrinterItem, Config.FilamentItem, Config.UsbItem, Config.UsbOnceItem, Config.BenchItem, Config.TableItem, Config.FinishKitItemItem names your inventory registers
Config.PrinterModel, Config.TableModelThe models placed printers and tables spawn as
Config.Blueprints, Config.ItemPrints, Config.FinishPrints, Config.AssemblyWhat can be printed and built: the parts, their models, filament costs and print times, and the recipes
Config.Attachments, Config.AttachmentSlots, Config.Finishes, Config.FinishOrder, Config.ItemCategories, Config.WeaponClasses, Config.BlueprintClassesAttachments, finishes, item categories and weapon classes
Config.PrinterScene, Config.PrinterMenu, Config.BenchScene, Config.GhostPropsThe printer and bench scenes: cameras, props, points and sounds
Config.Target, Config.BenchTargetThe target options on printers and benches
Config.UseHudAccentWhether the stage HUD and menus take Oxide HUD's accent colour
Config.ModelHints, Config.SettingsCommandOnly the wording of the missing-model warning

Wiping everything back to defaults

To throw away every saved menu setting and start over from the values in the config files:

  1. In your database tool (phpMyAdmin, HeidiSQL, or the database tab in your hosting panel), run this once:

    DELETE FROM oxide_settings WHERE resource = 'oxide-weaponprinting';
  2. Restart oxide-weaponprinting (restart oxide-weaponprinting in the server console or txAdmin).

On the next start the resource copies every menu setting from the config files again, exactly like a fresh install. Only weapon printing's settings are touched. To reset one setting instead, use its reset control in /weaponprinting settings.


Config File: shared/config.lua

General Settings

SettingTypeDefaultDescription
Config.SpawnDistancenumber100.0How close (in meters) a player must be before placed equipment appears for them
Config.RequireOwnershipbooleantrueWhen true, only the player who placed equipment can operate it or pick it up (see Features > Ownership)
Config.SpawnDistance = 100.0
Config.RequireOwnership = true

Per-Player Equipment Limits

How many of each piece of equipment one character can have placed in the world at the same time. The recycler's limit is Config.Recycler.maxPerPlayer (see recycler.lua).

SettingTypeDefaultDescription
Config.MaxPerPlayer.printersnumber3Maximum 3D printers per player
Config.MaxPerPlayer.benchesnumber2Maximum weapon benches per player
Config.MaxPerPlayer.tablesnumber5Maximum tables per player
Config.PrinterSpacingnumber0.5How far apart, in meters from centre to centre, two placed printers must stand. The server refuses a printer placed closer than that to another one ("Too close to another printer"). A printer placed on another printer's top panel is allowed. 0 turns the check off
Config.MaxPerPlayer = {
    printers = 3,
    benches = 2,
    tables = 5,
}

-- Placed printers stand at least this far apart (metres, centre to centre). 0 turns the check off.
Config.PrinterSpacing = 0.5

Set a Config.MaxPerPlayer value to 0 to remove the limit for that equipment type.

Safe Zones

Areas where placing equipment is blocked (printers, benches, recyclers and tables). Empty by default, so placement is allowed everywhere. A menu setting: draw zones in the world from /weaponprinting settings (Placement Zones). Only a zone's outline counts, at any height. Zones written in the file as below are copied into the menu on the first start.

SettingTypeDefaultDescription
Config.SafeZonestable{}List of areas (outlined by corner points) where placement is blocked
Config.SafeZones = {}
-- Example: block placement in a rectangular area.
-- Each vec2(x, y) is one corner of the area on the map.
-- Config.SafeZones = {
--     {
--         points = {
--             vec2(100.0, 100.0),
--             vec2(200.0, 100.0),
--             vec2(200.0, 200.0),
--             vec2(100.0, 200.0),
--         },
--     },
-- }

Printer Settings

SettingTypeDefaultDescription
Config.PrinterModelstring'prop_oxide_wp_printer'The 3D model used for the printer (included with the resource in its stream/ folder). Leave it as it is
Config.PrinterItemstring'3d_printer'Item name that places a printer
Config.FilamentItemstring'printer_filament'The filament the admin test kit (/weaponprinting kit) hands out. The printer itself takes its filament item names from Config.Filament.tiers (see filament.lua) — if you rename basic filament, change it in both places
Config.UsbItemstring'printer_usb'The permanent blueprint USB: its blueprint is stored on the printer
Config.UsbOnceItemstring'printer_usb_once'The one-time blueprint USB: loads its blueprint for one visit to the printer menu and is used up
Config.PrinterModel = 'prop_oxide_wp_printer'
Config.PrinterItem = '3d_printer'
Config.FilamentItem = 'printer_filament'
Config.UsbItem = 'printer_usb'
Config.UsbOnceItem = 'printer_usb_once'

If you change an item name here, register the new name in your inventory instead (see Installation), and update any store row that sells it under Economy > Store in /weaponprinting settings (after the first start, shared/config/store.lua no longer changes the store).

Models and HUD

SettingTypeDefaultDescription
Config.UseHudAccentbooleantrueIf your server runs Oxide HUD, the on-screen step header, key prompts and menus use the HUD's accent colour. false keeps this resource's own red
Config.ModelSwapstable{}Replaces a model your game build doesn't have with one it does. Each row is { from = 'model_the_resource_uses', to = 'model_your_game_has' }. from is the model as the warning names it; its joaat hash, signed or unsigned, matches too. A menu setting: after the first start, add rows in /weaponprinting settings (Core > Compatibility > Model replacements)
Config.SettingsCommandstring'/weaponprinting settings'The command the missing-model warning names. The warning adds the page: /weaponprinting settings > Compatibility > Model replacements
Config.ModelHintstableevery model the resource spawns from stream/Marks the models this resource ships in its own stream/ folder, so a missing one is reported as a broken install rather than an old game build. Leave it as it is
Config.UseHudAccent = true

-- Add one row per model to replace, for example:
-- Config.ModelSwaps = {
--     { from = 'model_the_resource_uses', to = 'model_your_game_has' },
-- }
Config.ModelSwaps = {}

Config.SettingsCommand = '/weaponprinting settings'

Config.ModelHints = {
    prop_oxide_wp_printer = 'bundled', prop_oxide_wp_printer_screen = 'bundled',
    -- ... every model in the resource's stream/ folder
}

How the missing-model warning works: if a player's game can't load the model of a placed printer, bench, recycler or table, the placement preview, a supplier or buyer NPC, or a weapon put in their bench's vise, every online admin gets an on-screen message naming the model (once per model). For a model listed in Config.ModelHints the message says the install is incomplete (re-copy the resource's stream/ folder). For any other model it says the model isn't on that game build and names the page to fix it: /weaponprinting settings > Compatibility > Model replacements. Add a row there to use a model your build has instead. The models drawn on the equipment (the part on the plate, the spool, the one-time USB, the failed print, the screen, the vise jaw and the tools in hand) are left out without a warning.

Target Settings

The interaction options on printers, shown through your target resource (ox_target, qb-target and the others o-link supports).

SettingTypeDefaultDescription
Config.Target.iconstring'fas fa-print'Icon shown on the option (a Font Awesome icon name)
Config.Target.labelstring'Use Printer'Text shown on the option
Config.Target.distancenumber1.5How close (meters) the player must be. The Remove Printer option uses the same distance
Config.Target = {
    icon = 'fas fa-print',
    label = 'Use Printer',
    distance = 1.5,
}

Bench Settings

The bench model is the first of Config.BenchScene.models in shared/config/bench/scene.lua that the game build has (prop_oxide_wp_bench, then gr_prop_gr_bench_04b).

SettingTypeDefaultDescription
Config.BenchItemstring'weaponbench'Item name that places a bench
Config.BenchItem = 'weaponbench'

Bench Target Settings

The interaction options on weapon benches.

SettingTypeDefaultDescription
Config.BenchTarget.iconstring'fas fa-wrench'Icon shown on the option
Config.BenchTarget.labelstring'Use Workbench'Text shown on the option
Config.BenchTarget.distancenumber1.5How close (meters) the player must be. The Remove Bench option uses the same distance
Config.BenchTarget = {
    icon = 'fas fa-wrench',
    label = 'Use Workbench',
    distance = 1.5,
}

Table Settings

SettingTypeDefaultDescription
Config.TableModelstring'bkr_prop_weed_table_01b'The 3D model used for the placeable table
Config.TableItemstring'placeable_table'Item name that places a table
Config.TableModel = 'bkr_prop_weed_table_01b'
Config.TableItem = 'placeable_table'

Config File: shared/config/printer.lua

Everything about using a printer: its menu, the calibration minigame, failed prints, and what everyone sees on the printer.

Printer Menu

SettingTypeDefaultDescription
Config.PrinterMenu.rangenumber4.0How close (meters) the player must stay to the printer to use its menu
Config.PrinterMenu.cameratable(see below)The menu's camera, relative to the printer (the front of the printer is -Y)
Config.PrinterMenu.camera.clearnumber0.40The menu camera keeps a clear view from this far (meters) in front of the printer: a wall or prop behind the shot pulls the camera in front of it, instead of the view starting inside the wall
Config.PrinterMenu.bedCameratable(see below)The camera during the bed-levelling step, looking in at the build plate
Config.PrinterMenu.nozzleCameratable(see below)The camera during the nozzle-heating step
Config.PrinterMenu.animtable{ dict = 'mini@repair', clip = 'fixing_a_ped', flag = 1 }The animation other players see while someone uses the printer
Config.PrinterMenu.fixAnimtable{ dict = 'mini@repair', clip = 'fixing_a_player' }The animation played while fixing a failed print

Each camera has an offset (position relative to the printer), a rotation (angle), and a fov (field of view — lower is more zoomed in). The defaults are fitted to the printer model, so you usually won't need to touch them.

Config.PrinterMenu = {
    range = 4.0,
    camera = { offset = vector3(0.0, -1.25, 0.55), rotation = vector3(-12.0, 0.0, 0.0), fov = 45.0, clear = 0.40 },
    bedCamera = { offset = vector3(0.0, -0.62, 0.52), rotation = vector3(-30.0, 0.0, 0.0), fov = 46.0 },
    nozzleCamera = { offset = vector3(0.16, -0.48, 0.34), rotation = vector3(-12.0, 0.0, 16.0), fov = 42.0 },
    anim = { dict = 'mini@repair', clip = 'fixing_a_ped', flag = 1 },
    fixAnim = { dict = 'mini@repair', clip = 'fixing_a_player' },
}

Calibration

The print-start minigame. The first part a player queues on each visit starts it; the score (0-100) becomes the quality of every part queued on that visit, held to the filament's quality cap. See Features > Calibration for how it plays.

Bed levelling (all distances in millimetres):

SettingTypeDefaultDescription
Config.Calibration.bed.targetnumber0.10The gap that counts as level
Config.Calibration.bed.bandnumber0.02How far either side of the target still counts as level (full marks)
Config.Calibration.bed.zeroAtnumber0.30How far off the target a corner scores nothing
Config.Calibration.bed.stepnumber0.01How far one notch of a knob moves its corner
Config.Calibration.bed.startOfftable{ 0.12, 0.40 }How far above the target a loose corner starts — a random distance in this range. Each corner starts either loose or tight. A tight corner starts anywhere from touching the nozzle (a gap of 0) to just outside the level band, because a gap can't go below 0 — so this range only sets the loose corners
Config.Calibration.bed.limitnumber1.00The most a knob can open or close a gap

Nozzle temperature (°C):

SettingTypeDefaultDescription
Config.Calibration.temperature.ambientnumber25.0Room temperature — the nozzle starts here and cools towards it
Config.Calibration.temperature.heatRatenumber60.0Degrees added per second while the heater is held
Config.Calibration.temperature.coolRatenumber0.16Share of the difference to room temperature lost every second (0.16 = 16%)
Config.Calibration.temperature.soakSecondsnumber8.0How long the soak lasts once the nozzle first reaches the band
Config.Calibration.temperature.tickMsnumber100How often (milliseconds) the server updates the temperature. Leave it as it is
Config.Calibration.temperature.maxTempnumber320.0The hottest the nozzle can get
Config.Calibration.temperature.bandstable(see below)For each filament tier: the band to hold (low to high) and the scorch line

Score:

SettingTypeDefaultDescription
Config.Calibration.weightstable{ bed = 0.5, temperature = 0.5 }Share of the score from each step. Keep the two adding up to 1.0
Config.Calibration = {
    bed = {
        target = 0.10,              -- mm
        band = 0.02,                -- mm either side of the target
        zeroAt = 0.30,              -- mm off the target where a corner scores nothing
        step = 0.01,                -- mm per knob notch
        startOff = { 0.12, 0.40 },  -- mm a loose corner starts above the target
        limit = 1.00,               -- mm
    },
    temperature = {
        ambient = 25.0,
        heatRate = 60.0,            -- °C per second while held
        coolRate = 0.16,            -- share of the gap to ambient lost per second
        soakSeconds = 8.0,
        tickMs = 100,
        maxTemp = 320.0,
        bands = {
            basic      = { low = 195.0, high = 215.0, scorch = 235.0 },
            reinforced = { low = 230.0, high = 250.0, scorch = 270.0 },
            carbon     = { low = 255.0, high = 275.0, scorch = 295.0 },
        },
    },
    weights = { bed = 0.5, temperature = 0.5 },
}

Things to keep in mind when you change these:

  • Every filament tier in Config.Filament.tiers needs a band here with the same name (basic, reinforced, carbon)
  • The hottest a nozzle can get with the heater held is ambient + heatRate / coolRate (400°C with the defaults), and never above maxTemp. Keep every band's low comfortably under that, or players won't be able to reach it
  • A corner that starts further off than zeroAt scores nothing until the player turns it closer

A print can fail part-way (a warped part or "spaghetti"). The chance is shown on every part before it's queued and rolled when it's queued. See Features > Failed Prints.

SettingTypeDefaultDescription
Config.Failure.enabledbooleantrueSet to false and prints never fail (every part shows a 0% chance)
Config.Failure.baseChancenumber15Starting failure chance, in percent
Config.Failure.levelReductionnumber1.0Percent removed per printing level
Config.Failure.minChancenumber2The chance never drops below this
Config.Failure.maxChancenumber40The chance never goes above this
Config.Failure.windowtable{ 0.25, 0.75 }How far through a print a failure can happen (0.25 = a quarter of the way)
Config.Failure.fixTimenumber6000How long fixing a failed print takes, in milliseconds
Config.Failure.kindstable{ 'warp', 'spaghetti' }The kinds of failure, picked at random. Leave it as it is — these are the two the printer knows how to show
Config.Failure = {
    enabled = true,
    baseChance = 15,
    levelReduction = 1.0,
    minChance = 2,
    maxChance = 40,
    window = { 0.25, 0.75 },
    fixTime = 6000,  -- 6 seconds
    kinds = { 'warp', 'spaghetti' },
}

Formula: chance = baseChance - coolingReduction - (playerLevel × levelReduction), held between minChance and maxChance. The Cooling Fan's reduction is Config.Upgrades.cooling.failureReduction (see Upgrade Categories).

Printer Scene

What every player sees on a printer: the part growing on the plate, the moving print head, the light strip, the spool, a one-time USB in the port, a failed print, the status cards, and the live touch screen. Most of these settings are fitted to the printer model — the ones you may want to change are layers, the card distances (tagRange, idleTagRange, tagHeight), the glow colours (led.colours), the spool stages (spool.full, spool.half) and screen.range.

SettingTypeDefaultDescription
Config.PrinterScene.layersnumber40How many layers a part is built in — the part rises one layer at a time
Config.PrinterScene.platevector3vector3(0.0, 0.0, 0.190)The middle of the build plate's top, relative to the printer. Leave it as it is
Config.PrinterScene.plateSizenumber0.340The plate's width in meters. A part longer than this is laid across the plate's diagonal
Config.PrinterScene.bedCornerstable{ x = 0.15, y = 0.15 }Where the four bed knobs sit, measured from the plate's middle. Leave it as it is
Config.PrinterScene.gantrytable(see below)The moving print head's models, travel, and speed. Leave it as it is
Config.PrinterScene.led.rowstable{ idle = 0, heating = 1, printing = 2, failed = 3, ready = 4, paused = 5 }Which colour row of the printer model's built-in light-strip palette each state uses. Leave it as it is
Config.PrinterScene.led.colourstable(see below)The colour (red, green, blue — 0 to 255 each) of the glow inside the printer for each state
Config.PrinterScene.led.lightvector3vector3(0.0, -0.18, 0.46)Where the glow comes from inside the printer
Config.PrinterScene.led.rangenumber0.5How far the glow reaches, in meters
Config.PrinterScene.led.intensitynumber1.6How bright the glow is
Config.PrinterScene.spool.socketvector3vector3(0.320, 0.050, 0.400)Where the spool sits on the printer's side holder. Leave it as it is
Config.PrinterScene.spool.modelstring'prop_oxide_wp_spool_%s_%s'The spool models, by filament tier and fill (prop_oxide_wp_spool_basic_full ...). Leave it as it is
Config.PrinterScene.spool.fullnumber2 / 3At or above this share of the spool's capacity, the spool shows full
Config.PrinterScene.spool.halfnumber1 / 3At or above this share it shows half; below it, nearly empty. An empty spool leaves the holder bare
Config.PrinterScene.usbOncetable{ model = 'prop_oxide_wp_usb_once', socket = vector3(-0.070, -0.2724, 0.060) }The one-time USB shown in the front port while its visit lasts. Leave it as it is
Config.PrinterScene.failedPrintstring'prop_oxide_wp_failprint'What a failed print leaves on the plate. Leave it as it is
Config.PrinterScene.tagRangenumber6.0How close (meters) a player must be to see a printer's status card
Config.PrinterScene.tagHeightnumber0.78How high (meters) above the printer the card floats
Config.PrinterScene.idleTagRangenumber2.5How close (meters) a player must be to see an idle printer's card
Config.PrinterScene.screen.rangenumber3.0How close (meters) the nearest printer must be for its touch screen to go live
Config.PrinterScene.screen.twin, .txd, .texturestring(see below)The live screen's model and texture. Leave them as they are
Config.PrinterScene.screen.width, .heightnumber512, 256The live screen page's size in pixels

The led.colours only change the glow cast inside the printer. The light strips themselves are part of the printer model and take their colours from the model's own palette (picked by led.rows), so the strips stay as shipped.

Config.PrinterScene = {
    layers = 40,

    plate = vector3(0.0, 0.0, 0.190),
    plateSize = 0.340,

    bedCorners = { x = 0.15, y = 0.15 },

    gantry = {
        frame = 'prop_oxide_wp_printer_gantry_frame',
        beam = 'prop_oxide_wp_printer_beam',
        head = 'prop_oxide_wp_printer_head',
        travel = 0.155,
        top = 0.240,
        park = vector3(0.10, 0.10, 0.200),
        calibrate = vector3(0.0, 0.0, 0.012),
        speed = { x = 0.9, y = 0.37 },
    },

    led = {
        rows = { idle = 0, heating = 1, printing = 2, failed = 3, ready = 4, paused = 5 },
        colours = {
            idle     = { 115, 178, 255 },
            heating  = { 255, 150, 50 },   -- being calibrated
            printing = { 255, 245, 230 },
            paused   = { 255, 190, 60 },
            ready    = { 64, 255, 102 },   -- finished parts waiting
            failed   = { 255, 31, 20 },
        },
        light = vector3(0.0, -0.18, 0.46),
        range = 0.5,
        intensity = 1.6,
    },

    spool = {
        socket = vector3(0.320, 0.050, 0.400),
        model = 'prop_oxide_wp_spool_%s_%s',   -- tier, fill
        full = 2 / 3,
        half = 1 / 3,
    },

    usbOnce = { model = 'prop_oxide_wp_usb_once', socket = vector3(-0.070, -0.2724, 0.060) },
    failedPrint = 'prop_oxide_wp_failprint',

    tagRange = 6.0,
    tagHeight = 0.78,
    idleTagRange = 2.5,

    screen = {
        twin = 'prop_oxide_wp_printer_screen',
        txd = 'oxide_weaponprinting',
        texture = 'owp_printer_screen_live_d',
        range = 3.0,
        width = 512,
        height = 256,
    },
}

Config File: shared/config/filament.lua

The filament tiers and the spool a printer holds. One filament item is one unit. A printer holds one spool of one tier at a time. See Features > Filament and the Spool.

SettingTypeDefaultDescription
Config.Filament.spoolCapacitynumber20How many units of filament a printer's spool holds
Config.Filament.ordertable{ 'basic', 'reinforced', 'carbon' }The order tiers are listed in the printer menu and the handbook. The first tier is also the one the filament recycler makes, and the one assumed for parts printed before 2.0
Config.Filament.tiers.<tier>.itemstring(see below)The inventory item for that tier
Config.Filament.tiers.<tier>.labelstring(see below)The name players see in the menu, on the status card, and in part descriptions
Config.Filament.tiers.<tier>.qualityCapnumber70 / 85 / 100The highest quality a part printed with this tier can have (0-100)
Config.Filament.tiers.<tier>.durabilityCapnumber80 / 90 / 100The highest durability a weapon built from these parts can start with. A weapon uses the lowest cap among its parts
Config.Filament = {
    spoolCapacity = 20,

    order = { 'basic', 'reinforced', 'carbon' },

    tiers = {
        basic = {
            item = 'printer_filament',
            label = 'Basic Filament',
            qualityCap = 70,
            durabilityCap = 80,
        },
        reinforced = {
            item = 'printer_filament_reinforced',
            label = 'Reinforced Filament',
            qualityCap = 85,
            durabilityCap = 90,
        },
        carbon = {
            item = 'printer_filament_carbon',
            label = 'Carbon Filament',
            qualityCap = 100,
            durabilityCap = 100,
        },
    },
}

Adding or renaming a tier: give the tier a temperature band with the same name in Config.Calibration.temperature.bands (shared/config/printer.lua), add it to order, and register its item in your inventory (see Installation). If you rename the basic filament item, also change Config.FilamentItem in shared/config.lua so the admin kits hand out the right item, and the store rows that sell it (Economy > Store in /weaponprinting settings). The resource only ships spool models for the three default tiers (Config.PrinterScene.spool.model), so a new tier shows no spool on the printer, with no warning. Printing with it still works.

Config File: shared/config/upgrades.lua

Upgrade Categories

Each upgrade category lists its items (one per tier) and what each tier does. psuRequired is which PSU tier must already be installed (0 = none).

Config.Upgrades = {
    nozzle = {
        label = 'Nozzle',
        maxTier = 3,
        items = { 'printer_nozzle_mk1', 'printer_nozzle_mk2', 'printer_nozzle_mk3' },
        speedMultiplier = { [0] = 1.0, [1] = 0.85, [2] = 0.7, [3] = 0.55 },
        psuRequired = { [1] = 0, [2] = 1, [3] = 2 },
    },
    storage = {
        label = 'Storage Drive',
        maxTier = 3,
        items = { 'printer_storage_mk1', 'printer_storage_mk2', 'printer_storage_mk3' },
        slots = { [0] = 1, [1] = 3, [2] = 5, [3] = 8 },
        -- Jobs the printer holds at once: queued, printing, failed and finished parts not yet collected.
        queue = { [0] = 1, [1] = 2, [2] = 3, [3] = 4 },
        psuRequired = { [1] = 0, [2] = 1, [3] = 2 },
    },
    cooling = {
        label = 'Cooling Fan',
        maxTier = 3,
        items = { 'printer_cooling_mk1', 'printer_cooling_mk2', 'printer_cooling_mk3' },
        malfunctionReduction = { [0] = 0, [1] = 10, [2] = 20, [3] = 30 },
        -- Percentage points off a print's failure chance (Config.Failure).
        failureReduction = { [0] = 0, [1] = 4, [2] = 8, [3] = 12 },
        psuRequired = { [1] = 0, [2] = 0, [3] = 1 },
    },
    buildplate = {
        label = 'Build Plate',
        maxTier = 3,
        items = { 'printer_buildplate_mk1', 'printer_buildplate_mk2', 'printer_buildplate_mk3' },
        qualityBonus = { [0] = 0, [1] = 3, [2] = 6, [3] = 10 },
        psuRequired = { [1] = 0, [2] = 1, [3] = 2 },
    },
    psu = {
        label = 'Power Supply',
        maxTier = 2,
        items = { 'printer_psu_mk1', 'printer_psu_mk2' },
    },
}

What each tier value does:

SettingWhat it changes
Config.Upgrades.nozzle.speedMultiplierPrint time multiplier. For example, [2] = 0.7 means a Mk II nozzle makes prints take 70% of their normal time (30% faster)
Config.Upgrades.storage.slotsHow many blueprints the printer can store
Config.Upgrades.storage.queueHow many jobs the printer holds at once — parts waiting, printing, failed, and finished but not collected (see Features > The Print Queue)
Config.Upgrades.cooling.malfunctionReductionPercent taken off the chance a permanent USB corrupts when loaded
Config.Upgrades.cooling.failureReductionPercent taken off a print's failure chance (see Print Failures)
Config.Upgrades.buildplate.qualityBonusQuality added to weapons the owner assembles at a bench (the best plate across their printers)

Give every tier from [0] (stock) to maxTier a value in each of these lists. The level each tier needs is in Config.Progression.upgradeLevels (see Upgrade Level Gates).

Updating from 1.x?

storage.queue and cooling.failureReduction are new in 2.0. If you copy an old upgrades.lua over the new one, they're missing and the printer menu stops working — re-apply your changes to the new file instead.

USB Malfunction

These settings only apply to the permanent printer_usb. One-time USBs never malfunction.

SettingTypeDefaultDescription
Config.UsbMalfunction.baseChancenumber25Starting percent chance a USB is destroyed on load
Config.UsbMalfunction.levelReductionnumber1.5Percent removed per player level
Config.UsbMalfunction.minimumChancenumber5The chance never drops below this
Config.UsbMalfunction = {
    baseChance = 25,
    levelReduction = 1.5,
    minimumChance = 5,
}

Formula: chance = max(minimumChance, baseChance - (playerLevel × levelReduction) - coolingReduction)

Config File: shared/config/blueprints.lua

Defines all 52 weapon blueprints and the parts each one can print. Each part has these fields:

FieldTypeDescription
idstringInternal name for the part within the blueprint
labelstringDisplay name players see
itemstringInventory item the player receives when the part is printed
modelstringProp model that grows on the printer's build plate while the part prints
filamentCostnumberFilament units taken from the printer's spool when the part is queued
printTimenumberPrint duration in seconds (before nozzle upgrades and mastery)
Config.Blueprints = {
    pistol = {
        label = 'Pistol',
        parts = {
            { id = 'slide', label = 'Slide', item = '3d_printed_pistol_slide', model = 'prop_pistol_slide', filamentCost = 2, printTime = 1200 },
            { id = 'grip', label = 'Grip', item = '3d_printed_pistol_grip', model = 'prop_pistol_grip', filamentCost = 2, printTime = 1200 },
            { id = 'clip', label = 'Magazine', item = '3d_printed_pistol_clip', model = 'prop_pistol_clip', filamentCost = 2, printTime = 1200 },
        },
    },
    -- ... 52 weapon blueprints in total
}

Costs scale with how powerful the weapon is — from 1 filament and 600 seconds (10 minutes) per part for the starter pistols (SNS Pistol, Vintage Pistol, Flare Gun), up to 5 filament and 4500 seconds (75 minutes) per part for the heavy snipers, the Combat MGs and the Perico Pistol. You can freely adjust any part's cost or time.

The level each blueprint needs is in Config.Progression.blueprintLevels (see Blueprint Level Gates), and its weapon class in shared/config/classes.lua.

Config File: shared/config/items.lua

Your own item prints. The attachments, finish kits and weapon kits that come with the resource are in shared/config/bench/itemprints.lua, which also lists the extra fields an item print may use (category, count, metadata, level, parts).

Config.ItemPrints

Each entry is one printable item. The key (e.g. lockpick) is the blueprint name used in the USB's blueprint metadata.

FieldTypeRequiredDescription
labelstringYesDisplay name shown in the printer menu
itemstringYesInventory item the player receives
modelstring or nilNoProp model that grows on the build plate while it prints. Leave it out (or set nil) and nothing shows on the plate
filamentCostnumberYesFilament units taken from the printer's spool when the item is queued
printTimenumberYesPrint duration in seconds (before nozzle upgrades)
Config.ItemPrints = {
    lockpick = {
        label = 'Lockpick',
        item = 'lockpick',
        model = 'm25_1_prop_m51_lockpick_01a',
        filamentCost = 2,
        printTime = 900,
    },
    -- radio = {
    --     label = 'Radio',
    --     item = 'radio',
    --     model = nil,
    --     filamentCost = 3,
    --     printTime = 1200,
    -- },
}

Notes

  • The item an entry makes (item) must exist in your inventory. The lockpick print makes your server's own lockpick item
  • A key here must not also exist in Config.Blueprints — if both exist, the weapon blueprint wins
  • To lock an item behind a level, give the entry a level, or add its key to Config.Progression.blueprintLevels in shared/config/progression.lua. The higher of the two counts
  • To set how big the prop looks on the build plate, add the model name to Config.GhostProps in shared/config/ghostprops.lua
  • The lockpick's default model (m25_1_prop_m51_lockpick_01a) comes from a recent GTA update. If your game build doesn't have it, the lockpick still prints — nothing just shows on the plate. To show a different prop instead, add a row to Config.ModelSwaps (see Models and HUD)
  • Printed items carry the print's quality and filament tier, plus anything in the entry's metadata. They have no durability or serial number
  • An entry without a category shows under Tools in the printer's item library

Config File: shared/config/bench/itemprints.lua

Adds the item prints that come with the resource to Config.ItemPrints, and defines the categories of the printer's item library. See Features > Item Printing.

Fields Every Item Print May Use

FieldTypeRequiredDescription
labelstringYesName in the printer's library
itemstringYesThe item it makes
categorystringNoA Config.ItemCategories id, grouping it in the printer's library ('tools' if unset)
countnumberNoHow many of item one print makes (1 if unset)
metadatatableNoData the made item carries (a finish kit's { finish = 'gold' })
levelnumberNoPrinting level it needs (1 if unset)
model, filamentCost, printTimeFor one-print itemsAs in shared/config/items.lua
partstableFor items put together at the benchA list like a weapon blueprint's parts: { id, label, item, model, filamentCost, printTime }. The printer prints each part, and the finished item is put together at the weapon bench. The parts go in along the item's longest side in the order listed: from the front back on a long item, from the base up on a tall one
modelstringNo, for items put together at the benchThe model the bench holds in its vise while the item is put together. Left out, the bench uses the model of the attachment the item is (Config.Attachments)

Shipped Item Prints

KeyMakesCategoryLevelHow it prints
suppressorprinted_suppressorAttachments3Front Baffles + Rear Baffles (each a 3d_printed_compact_barrel, 2 filament, 900 s), put together at the bench
extended_magprinted_extended_magAttachments2One print: 2 filament, 900 s
drum_magprinted_drum_magAttachments5Drum Shell (3d_printed_drum_mag, 3 filament, 1500 s) + Feed Tower (3d_printed_rifle_mag, 2 filament, 1200 s), put together at the bench
flashlightprinted_flashlightAttachments2One print: 1 filament, 600 s
scopeprinted_scopeAttachments4One print: 3 filament, 1200 s
gripprinted_gripAttachments3One print: 1 filament, 600 s
repair_kitprinted_repair_kitMaintenance2One print: 2 filament, 900 s
cleaning_kitprinted_cleaning_kitMaintenance1One print: 1 filament, 600 s
finish_<id>printed_finish_kit with { finish = '<id>' }Finishes2 (tints), 5 (liveries)One print, from Config.FinishPrints (below)

Config.ItemCategories

The categories of the printer's item library, in the order the left and right arrows step through them.

Config.ItemCategories = {
    { id = 'attachments', label = 'Attachments', icon = 'fas fa-crosshairs' },
    { id = 'finishes', label = 'Finishes', icon = 'fas fa-palette' },
    { id = 'maintenance', label = 'Maintenance', icon = 'fas fa-screwdriver-wrench' },
    { id = 'tools', label = 'Tools', icon = 'fas fa-toolbox' },
}

Config.FinishPrints

Makes one finish kit blueprint per listed finish, keyed finish_<id> (finish_gold, finish_skull ...). Liveries need a higher level than plain tints.

SettingTypeDefaultDescription
Config.FinishPrints.tinttable{ level = 2, filamentCost = 1, printTime = 600 }Level, filament and print time (seconds) of every tint finish kit
Config.FinishPrints.liverytable{ level = 5, filamentCost = 2, printTime = 900 }The same for every Mk II livery finish kit
Config.FinishPrints.finishestableall 19 finishesWhich finishes get a blueprint (ids from Config.Finishes)

Config File: shared/config/ghostprops.lua

Sets how big each part looks on the printer's build plate while it prints. Config.GhostProps has one entry per part model, and its scale is the part's size on the plate (0.2 is a fifth of the model's full size). A model that isn't listed uses 0.2. A part longer than the plate is turned to lie across the plate's diagonal by itself. The bench uses the same scale for parts in its tray, times Config.BenchScene.partScale.

SettingTypeDefaultDescription
Config.GhostProps[model].scalenumber0.1 to 0.25, per modelThe part's size on the build plate
Config.GhostProps = {
    prop_pistol_slide = { scale = 0.2 },
    prop_pistol_compact_frame = { scale = 0.1 },
    -- ... one entry per part model
}

To give an item print's model (from Config.ItemPrints) its own size, add an entry for it here.

Config File: shared/config/assembly.lua

Defines the weapon bench recipes — which parts make which weapon. The key (e.g. pistol) matches the weapon's blueprint key.

FieldTypeDescription
weaponstringThe GTA weapon item to give (e.g. 'weapon_pistol'). It must exist in your inventory
labelstringDisplay name players see
modelstringThe weapon's world model (the bench clamps it in the vise)
craftTimenumberNot used since the assembly minigame; left in so existing recipes load unchanged
classstringOptional. The weapon class (pistol, smg, shotgun, rifle, sniper, mg) for mastery and buyer prices. Without it, the class comes from Config.BlueprintClasses (see classes.lua)
partstableThe parts needed, each with item, label and amount, fitted in this order. A part may name where it fits on the weapon with spot (a Config.BenchScene.fitSpots key)
Config.Assembly = {
    pistol = {
        weapon = 'weapon_pistol', label = 'Pistol', model = 'w_pi_pistol', craftTime = 30,
        parts = {
            { item = '3d_printed_pistol_slide', label = 'Pistol Slide', amount = 1 },
            { item = '3d_printed_pistol_grip', label = 'Pistol Grip', amount = 1 },
            { item = '3d_printed_pistol_clip', label = 'Magazine', amount = 1 },
        },
    },
    -- ... 52 assembly recipes in total
}

The level each recipe needs is in Config.Progression.assemblyLevels (see Blueprint Level Gates).

Config File: shared/config/classes.lua

Weapon classes group blueprints for mastery, goals and buyer prices.

SettingTypeDefaultDescription
Config.WeaponClassestablepistol, smg, rifle, shotgun, sniper, mg, item, otherEach class and the name players see ({ label = 'Pistols' } ...). Item prints are item, and anything without a class is other; neither earns mastery
Config.BlueprintClassestableall 52 weapon blueprintsWhich class each weapon blueprint belongs to (pistol = 'pistol', carbine_rifle = 'rifle' ...)

A blueprint's class is read from its Config.Assembly recipe's class first, then from Config.BlueprintClasses, then other. If you add your own weapon blueprint, add it to Config.BlueprintClasses so it earns mastery and sells at its class's price.

Config.BlueprintClasses = {
    sns_pistol = 'pistol', vintage_pistol = 'pistol', flare_gun = 'pistol', pistol = 'pistol',
    -- ...
    micro_smg = 'smg', -- ...
    assault_rifle = 'rifle', -- ...
    pump_shotgun = 'shotgun', -- ...
    sniper_rifle = 'sniper', -- ...
    mg = 'mg', combat_mg = 'mg', combat_mg_mk2 = 'mg',
}

Config File: shared/config/quality.lua

How printed parts and the assembly decide a weapon's quality. See Features > Quality System.

SettingTypeDefaultDescription
Config.Quality.partWeightnumber0.5Share of the blend taken by the parts' average quality. 0 = parts don't matter, 1 = only parts count; the rest is the level roll
Config.Quality.assemblySwingnumber10The most the assembly minigame moves quality either way: a perfect assembly adds this, the worst takes it off, an average one changes nothing
Config.Quality.minnumber5The lowest quality a weapon can have
Config.Quality.maxnumber95The highest quality a weapon can have
Config.Quality.legacyPartnumber50The quality a part printed before 2.0 counts as (it carries none of its own)
Config.Quality = {
    partWeight = 0.5,
    assemblySwing = 10,
    min = 5,
    max = 95,
    legacyPart = 50,
}

Config File: shared/config/bench/scene.lua

The weapon bench's model, its work points, cameras, sounds and the tools other players see. Points are in the bench's own space: X across the top, -Y toward the player, Z up from the floor. Most of these are fitted to the bench model — leave the points and cameras as they are unless you use your own bench model.

SettingTypeDefaultDescription
Config.BenchScene.modelstable{ 'prop_oxide_wp_bench', 'gr_prop_gr_bench_04b' }The first model the game has is used. Police can seize only the first (the bench's own model)
Config.BenchScene.points[model].visetablesee fileThe vise's middle and the weapon's rotation in it. The jaws hold each weapon by its lowest point (the base of its magazine or grip), so everything a part fits to stays above them
Config.BenchScene.points[model].jawtablesee fileThe vise's movable jaw: its model, the fixed pad's face, the gap when empty, the widest gap (maxGap) and how deep the weapon sits between the pads (hold). It closes on the weapon; a magazine wider than maxGap hangs free and the grip is held
Config.BenchScene.points[model].traytablesee fileWhere parts land: the first spot, columns, spacing
Config.BenchScene.points[model].carryHeightnumber1.06Height an attachment is carried at when it has no spot on the weapon
Config.BenchScene.points[model].lamptablesee fileThe work lamp lit while someone works
Config.BenchScene.points[model].camerastablesee fileThe overview shot (the menu, and picking parts for an item print) and the vise shot (pressing an item print's pins, and its torque). Building a weapon frames the weapon itself (fitViews)
Config.BenchScene.points.defaulttablesee fileThe points used for a bench model that has no row of its own
Config.BenchScene.animtable{ dict = 'mini@repair', clip = 'fixing_a_player', flag = 1 }What other players see the worker do
Config.BenchScene.handPropstablescrewdriver, wrenchThe tool other players see in the worker's hand: a screwdriver while fitting, a wrench for torque
Config.BenchScene.partScalenumber1.0Part size at the bench, times the part's Config.GhostProps scale
Config.BenchScene.fallbackParttable{ model = 'prop_cs_cardbox_01', scale = 0.25 }Stands in for a part or attachment model the game lacks
Config.BenchScene.snapRadiusnumber0.06How close (meters) a carried attachment must be to its spot to fit, at most. On a weapon it is a share of the weapon's length, so a pistol's spots are as easy to hit as a rifle's
Config.BenchScene.weaponScaletable1.0 per classWeapon size in the vise, per weapon class
Config.BenchScene.fitSpotstablesee fileWhere each kind of part fits, measured on the weapon in the vise: the stretch along it the part fills (from, to) and its height (z, top, bottom), between named points taken from the weapon's own bones and bounds (muzzle, breech, grip, trigger, mag, scope, butt and more; the file lists them). At the assembly a part's pins spread over its stretch, on the weapon's bore line. A part matches the longest key its item name contains
Config.BenchScene.attachmentSpotstablesee fileThe same for each attachment slot. Attachments keep their tray size
Config.BenchScene.partPosestablesee fileHow each part and attachment model lies when fitted: the model axis that faces the muzzle (front) and the one that faces up (up). The models are made lying flat, as printed; a model with no row is fitted as made
Config.BenchScene.fitOverridestablesee fileCorrections for the few weapons built unlike the rest (the sawn-off, the double barrel, the compact rifle, the flare gun, the marksman pistol), by weapon name: points moves or adds a named point, and by spot key rule replaces that spot's row, offset and scale nudge it. A weapon with no row, an add-on weapon included, uses the rules as they are
Config.BenchScene.weaponShapestablesee file (shared/config/bench/weaponshapes.lua)Each catalog weapon's real size, read from its mesh: its bounds, its lowest point (where the vise holds it) and how far its frame runs back from the trigger. A row applies only to the model it names; an add-on weapon uses the size the game reports for its model
Config.BenchScene.fitViewstablesee fileThe shots while building a weapon: pick frames the weapon and the tray, fit closes in on the weapon while its pins are pressed and for the torque, each sized to the weapon; blendMs is the blend between them
Config.BenchScene.finishMsnumber1500How long (milliseconds) the button is held to brush on a finish
Config.BenchScene.finishRevealMsnumber1500How long (milliseconds) the finished weapon stays in shot after a finish before the bench menu comes back
Config.BenchScene.soundRangenumber12.0How far (meters) bench sounds carry
Config.BenchScene.soundstablesee fileGTA sound name and set for each bench sound (pick, fit, wrong, torque, tight, stripped, done, remove, shred). A name the game lacks just plays nothing

Config File: shared/config/bench/minigame.lua

Config.AssemblyGame: the assembly minigame's scoring. See Features > The Assembly Score.

SettingTypeDefaultDescription
Config.AssemblyGame.fumblePenaltynumber15Fitting points lost per wrong pick
Config.AssemblyGame.fitWeight / torqueWeightnumber0.4 / 0.6Shares of the score from fitting (the pins, less the fumbles) and from torque. Keep them adding up to 1
Config.AssemblyGame.pins.perPartnumber2Pins to press per part
Config.AssemblyGame.pins.fillMsnumber1200Milliseconds to fill a pin's ring while the button is held. Holding to full cracks the part and the pin scores 0
Config.AssemblyGame.pins.windownumber0.18Width of a pin's green window, as a share of the ring
Config.AssemblyGame.pins.centretable{ 0.50, 0.85 }Where a pin's window centre may land, as shares of the ring
Config.AssemblyGame.pins.falloffnumber0.25How far outside the window (share of the ring) a release still scores; nearer scores in proportion
Config.AssemblyGame.torque.passesnumber2Fasteners (torque passes) per assembly, each with its own window
Config.AssemblyGame.torque.fillMsnumber2400Milliseconds to fill the ring while the button is held. Holding to full strips the thread and the pass scores 0
Config.AssemblyGame.torque.windownumber0.14Width of the green window, as a share of the ring
Config.AssemblyGame.torque.centretable{ 0.45, 0.85 }Where a window's centre may land, as shares of the ring
Config.AssemblyGame.torque.falloffnumber0.20How far outside the window (share of the ring) a release still scores; nearer scores in proportion
Config.AssemblyGame.minInputGapMsnumber120The fewest milliseconds between two picks, counted over the whole step
Config.AssemblyGame = {
    fumblePenalty = 15,
    fitWeight = 0.4,
    torqueWeight = 0.6,
    pins = {
        perPart = 2,
        fillMs = 1200,
        window = 0.18,
        centre = { 0.50, 0.85 },
        falloff = 0.25,
    },
    torque = {
        passes = 2,
        fillMs = 2400,
        window = 0.14,
        centre = { 0.45, 0.85 },
        falloff = 0.20,
    },
    minInputGapMs = 120,
}

How much the score moves quality is Config.Quality.assemblySwing (see quality.lua).

Config File: shared/config/bench/attachments.lua

SettingTypeDescription
Config.AttachmentstableEach attachment: its item, label, slot, model, and components — the GTA weapon component it becomes on each weapon (upper case weapon names). A weapon left out of an attachment's components can't take it
Config.AttachmentSlotstableThe order the slots show in at the bench, and their names: Muzzle, Magazine, Flashlight, Optic, Grip
Config.Attachments = {
    suppressor = {
        item = 'printed_suppressor', label = 'Suppressor', slot = 'muzzle', model = 'prop_oxide_wp_att_suppressor',
        components = {
            WEAPON_PISTOL = 'COMPONENT_AT_PI_SUPP_02',
            -- ...
        },
    },
    -- extended_mag, drum_mag, flashlight, scope, grip
}

To let an add-on weapon take an attachment, add its name and component to that attachment's components.

Config File: shared/config/bench/finishes.lua

SettingTypeDefaultDescription
Config.FinishKitItemstring'printed_finish_kit'The one finish kit item; its metadata names the finish it applies
Config.Finishes[id].labelstring(see file)The finish's name
Config.Finishes[id].tint / mk2Tintnumber(see file)Tint index on a standard weapon / on a Mk II weapon (the game has a separate palette for Mk II)
Config.Finishes[id].liverystring(see file)A Mk II camo: the end of the weapon's camo component name (COMPONENT_<WEAPON>_<livery>). Liveries fit Mk II weapons only
Config.Finishes[id].swatchstring(see file)Colour shown in the menus
Config.FinishOrdertableall 19The order finishes show in at the bench and in the printer's library

The 19 shipped finishes are 8 tints (black, green, gold, pink, army, lspd, orange, platinum) and 11 Mk II liveries (digital_camo, brushstroke, woodland, skull, sessanta_nove, perseus, leopard, zebra, geometric, boom, patriotic).

Config.Finishes = {
    gold = { label = 'Gold', tint = 2, mk2Tint = 23, swatch = '#c9a440' },
    skull = { label = 'Skull', livery = 'CAMO_04', swatch = '#d8d2c4' },
    -- ...
}

Config File: shared/config/durability.lua

This file holds two independent systems, each with its own on/off switch: Config.Durability (weapons wear down per shot and can break) and Config.Jam (weapons can jam while firing). Either can run without the other.

Config.Durability

SettingTypeDefaultDescription
Config.Durability.enabledbooleantrueMaster switch for weapon wear. Turn it off if your inventory already handles weapon decay (ak47_qb_inventory, qs-inventory, codem-inventory, etc.) to avoid double wear or crashes
Config.Durability.degradePerShotnumber0.15Durability lost per shot
Config.Durability.shotSyncIntervalnumber10How many shots between durability saves (lower = more accurate, more server work)
Config.Durability.breakAtZerobooleantrueDestroy the weapon when durability hits 0

When Config.Durability.enabled = false:

  • Freshly assembled weapons get no durability number at all
  • No durability tracking happens while shooting
  • Weapons never break from this resource — your inventory's own decay (if any) is the only wear

Config.Jam

SettingTypeDefaultDescription
Config.Jam.enabledbooleantrueMaster switch for the jam mechanic. Works with or without durability
Config.Jam.flatChancenumber5Per-shot jam chance (percent) used when durability is disabled
Config.Jam.durabilityTierstable(see below)Jam chance per durability range, used when durability is enabled
Config.Jam.unjamTimenumber3000How long clearing a jam takes, in milliseconds
Config.Jam.unjamAnimtable{ dict = 'anim@mp_player_intupperknuckle_crunch', name = 'idle_a' }Animation played while clearing a jam
Config.Durability = {
    enabled = true,
    degradePerShot = 0.15,
    shotSyncInterval = 10,
    breakAtZero = true,
}

Config.Jam = {
    enabled = true,
    flatChance = 5,
    durabilityTiers = {
        { maxDurability = 100, minDurability = 80, chance = 0 },
        { maxDurability = 80,  minDurability = 60, chance = 2 },
        { maxDurability = 60,  minDurability = 40, chance = 5 },
        { maxDurability = 40,  minDurability = 20, chance = 10 },
        { maxDurability = 20,  minDurability = 0,  chance = 20 },
    },
    unjamTime = 3000,
    unjamAnim = { dict = 'anim@mp_player_intupperknuckle_crunch', name = 'idle_a' },
}

Jam Chance Ranges (durability mode)

Durability RangeJam ChanceDescription
80-1000%No jams while in good condition
60-802%Rare jams begin
40-605%Noticeable jam frequency
20-4010%Frequent jams
0-2020%Very frequent jams, weapon near breaking

A weapon cleaned with a cleaning kit uses the band for its durability cap instead (see kits.lua).

Config File: shared/config/bench/kits.lua

The repair and cleaning kits, used from the inventory on a 3D-printed weapon. See Features > Repair and Cleaning Kits.

SettingTypeDefaultDescription
Config.RepairKit.enabledbooleantrueThe repair kit on or off
Config.RepairKit.itemstring'printed_repair_kit'The repair kit item
Config.RepairKit.restorenumber25Durability restored, never past the weapon's durability cap
Config.RepairKit.durationnumber6000How long the progress bar takes, in milliseconds
Config.RepairKit.animtable{ dict = 'mini@repair', clip = 'fixing_a_player', flag = 49 }The animation while repairing
Config.CleaningKit.enabledbooleantrueThe cleaning kit on or off
Config.CleaningKit.itemstring'printed_cleaning_kit'The cleaning kit item
Config.CleaningKit.cleanShotsnumber150Shots after a cleaning that jam as rarely as a new weapon
Config.CleaningKit.durationnumber4000How long the progress bar takes, in milliseconds
Config.CleaningKit.animtable{ dict = 'mini@repair', clip = 'fixing_a_player', flag = 49 }The animation while cleaning
Config.RepairKit = {
    enabled = true,
    item = 'printed_repair_kit',
    restore = 25,
    duration = 6000,
    anim = { dict = 'mini@repair', clip = 'fixing_a_player', flag = 49 },
}

Config.CleaningKit = {
    enabled = true,
    item = 'printed_cleaning_kit',
    cleanShots = 150,
    duration = 4000,
    anim = { dict = 'mini@repair', clip = 'fixing_a_player', flag = 49 },
}

Config File: shared/config/bench/recycler.lua

The filament recycler, which shreds junk into basic filament. See Features > Filament Recycler.

SettingTypeDefaultDescription
Config.Recycler.enabledbooleantrueThe recycler on or off
Config.Recycler.itemstring'filament_recycler'The item that places a recycler
Config.Recycler.modelstable{ 'prop_oxide_wp_recycler', 'prop_generator_03b' }The first model the game has is used. Police can seize only the first (the recycler's own model); the others are stand-ins
Config.Recycler.maxPerPlayernumber2Recyclers one character can place (0 = no limit)
Config.Recycler.hopper / drop / outputvector3see filePoints on prop_oxide_wp_recycler: the hopper mouth, where junk is shredded, and the winder spool where filament collects. Leave them as they are
Config.Recycler.cameratablesee fileThe camera while feeding
Config.Recycler.target.iconstring'fas fa-recycle'Icon of the Use Recycler option
Config.Recycler.target.labelstring'Use Recycler'Text of the option. Remove the key to use the locale text (bench.recycler_use) instead
Config.Recycler.target.distancenumber1.6How close (meters) the player must be. Pick Up Recycler uses the same distance
Config.Recycler.inputstableplastic 4, rubber 5, fabric 5The junk it takes: { item, label, ratio, yield } — ratio items make yield basic filament; label names the item when your inventory has no label for it
Config.Recycler.msPerItemnumber900Holding time (milliseconds) per item shredded
Config.Recycler.maxPerHoldnumber20Most items one hold takes
Config.Recycler.animtable{ dict = 'mini@repair', clip = 'fixing_a_ped', flag = 1 }What other players see while someone feeds it
Config.Recycler = {
    enabled = true,
    item = 'filament_recycler',
    models = { 'prop_oxide_wp_recycler', 'prop_generator_03b' },
    maxPerPlayer = 2,
    -- hopper, drop, output and camera: points on the recycler model (see file)
    target = { icon = 'fas fa-recycle', label = 'Use Recycler', distance = 1.6 },
    inputs = {
        { item = 'plastic', label = 'Plastic', ratio = 4, yield = 1 },
        { item = 'rubber', label = 'Rubber', ratio = 5, yield = 1 },
        { item = 'fabric', label = 'Fabric', ratio = 5, yield = 1 },
    },
    msPerItem = 900,
    maxPerHold = 20,
    anim = { dict = 'mini@repair', clip = 'fixing_a_ped', flag = 1 },
}

Junk items: the defaults are stock items — plastic and rubber on QBCore and Qbox, fabric on ESX. Add your server's own junk to inputs; every item you add must exist in your inventory. A junk item your inventory doesn't have just shows with none to feed. See Installation > Recycler Junk Items.

Config File: shared/config/progression.lua

Level Requirements

SettingTypeDescription
Config.Progression.metadataKeystringWhere progression is saved on the character ('weaponprinting'). Don't change this after players have progress — they would appear to start over
Config.Progression.levelstableThe total XP needed for each level
Config.Progression = {
    metadataKey = 'weaponprinting',
    levels = {
        { level = 1,  xpRequired = 0 },
        { level = 2,  xpRequired = 200 },
        { level = 3,  xpRequired = 600 },
        { level = 4,  xpRequired = 1400 },
        { level = 5,  xpRequired = 2800 },
        { level = 6,  xpRequired = 5000 },
        { level = 7,  xpRequired = 8500 },
        { level = 8,  xpRequired = 14000 },
        { level = 9,  xpRequired = 22000 },
        { level = 10, xpRequired = 35000 },
    },
}

Level Unlocks

Config.Progression.unlocks is the name of what each level opens, shown on the level-up banner, the profile and the handbook. It's only text: what actually unlocks is set by the level gates below. The level-up banner also lists the blueprints the new level opens, and the maker's mark at its level.

Config.Progression.unlocks = {
    { level = 1, label = 'Basic Pistols & Placement' },
    { level = 2, label = 'SMGs & Shotguns' },
    { level = 3, label = 'Mk II Upgrades' },
    { level = 4, label = 'Standard Rifles' },
    { level = 5, label = 'Military Weapons' },
    { level = 6, label = 'Mk III Upgrades' },
    { level = 7, label = 'Sniper Rifles' },
    { level = 8, label = 'Heavy Weapons & MGs' },
    { level = 9, label = 'Exotic Weapons' },
    { level = 10, label = 'Master Printer' },
}

XP Rewards

These are base values. Print and assembly XP is multiplied by filament cost, so bigger weapons give more XP, and by the quality of what was made (see Features > XP Rewards).

SettingTypeDefaultDescription
Config.Progression.xpRewards.loadUsbnumber5XP for loading a permanent USB
Config.Progression.xpRewards.loadUsbOncenumber0XP for loading a one-time USB
Config.Progression.xpRewards.printCompletenumber15XP per filament the part cost, when a printed part is collected
Config.Progression.xpRewards.assembleWeaponnumber30XP times the weapon's average part filament cost, on assembly
Config.Progression.xpRewards.itemBuiltnumber15XP for building an item at the bench from printed parts (a suppressor, a drum magazine); never a weapon assembly
Config.Progression.xpRewards.fixFailurenumber20XP for fixing a failed print at the printer
Config.Progression.xpRewards.fitAttachmentnumber15XP for fitting an attachment or a finish at the bench
Config.Progression.xpRewards.sellWeaponnumber25XP for selling a printed weapon to a buyer
Config.Progression.qualityXptable{ low = 0.75, high = 1.25 }Print, assembly and item build XP multiplier at quality 0 (low) and 100 (high), in a straight line between. Parts printed before 2.0 pay 1.0
Config.Progression.flawlessScorenumber90The assembly minigame score from which an assembly counts as flawless for goals and milestones
Config.Progression.levelUpNotifybooleantrueA message and a banner listing what a new level unlocked
Config.Progression.showXpGainsbooleantrue"+XP" pop-ups as XP is earned
Config.Progression.xpRewards = {
    loadUsb = 5,
    loadUsbOnce = 0,
    printComplete = 15,
    assembleWeapon = 30,
    itemBuilt = 15,
    fixFailure = 20,
    fitAttachment = 15,
    sellWeapon = 25,
}

Blueprint Level Gates

Config.Progression.blueprintLevels lists the minimum level needed to print each weapon, and Config.Progression.assemblyLevels the minimum level to assemble it. Both use the blueprint key (e.g. pistol = 1). To make a weapon easier or harder to reach, change its number in both tables. See Installation > Valid Blueprint Keys for every key and its default level.

An item print can be gated here too (for example lockpick = 2), or with its own level; the higher of the two counts.

Upgrade Level Gates

The minimum player level for each upgrade tier ([tier] = level). The Gunsmith Supply sells each upgrade from the same level.

SettingDefault
Config.Progression.upgradeLevels.nozzle{ [1] = 1, [2] = 3, [3] = 6 }
Config.Progression.upgradeLevels.storage{ [1] = 1, [2] = 3, [3] = 6 }
Config.Progression.upgradeLevels.cooling{ [1] = 1, [2] = 3, [3] = 6 }
Config.Progression.upgradeLevels.buildplate{ [1] = 2, [2] = 4, [3] = 7 }
Config.Progression.upgradeLevels.psu{ [1] = 2, [2] = 5 }

Experience Bonuses

The lifetime quality bonus from 1.x. Mastery replaces it: a character that had progress before 2.0 keeps the bonus it had reached as the least quality bonus in every class (see Mastery), and new characters earn their bonus through mastery. These numbers only work out that carried-over bonus.

SettingTypeDefaultDescription
Config.Progression.experienceBonus.printsPerBonusnumber50Lifetime prints needed per quality bonus step
Config.Progression.experienceBonus.printBonusPercentnumber2Quality bonus per step
Config.Progression.experienceBonus.assembliesPerBonusnumber25Lifetime assemblies needed per quality bonus step
Config.Progression.experienceBonus.assemblyBonusPercentnumber3Quality bonus per step
Config.Progression.experienceBonus.maxBonusnumber20Cap on the combined bonus
Config.Progression.experienceBonus = {
    printsPerBonus = 50,
    printBonusPercent = 2,
    assembliesPerBonus = 25,
    assemblyBonusPercent = 3,
    maxBonus = 20,
}

Quality Grades

The quality grades and the level gap needed to reach them. gap is how many levels above the weapon's requirement the builder must be; min/max is the range of the level roll at that grade. The final quality also blends in the parts, the assembly and the bonuses (see quality.lua), and the grade a weapon gets is the band its final quality lands in.

Config.Progression.quality = {
    { gap = 0, min = 20, max = 30, grade = 'Poor' },
    { gap = 1, min = 35, max = 45, grade = 'Decent' },
    { gap = 2, min = 50, max = 60, grade = 'Standard' },
    { gap = 3, min = 65, max = 75, grade = 'Quality' },
    { gap = 4, min = 80, max = 90, grade = 'Superior' },
}

Mastery

Work in a weapon class earns that class mastery points; each tier pays its XP once, and the highest tier reached sets the class's quality bonus and print speed. Item prints don't earn mastery.

SettingTypeDefaultDescription
Config.Mastery.enabledbooleantrueMastery on or off. Off, no class earns points, a tier bonus or a print speed; a character carried over from 1.x still keeps its old bonus while keepLegacyBonus is on
Config.Mastery.pointstable{ printCollected = 1, assembled = 4, attachmentFitted = 1, sold = 0 }Mastery points per part collected, weapon assembled, attachment or finish fitted and weapon sold, in that action's class
Config.Mastery.tierstable4 tiers{ points, qualityBonus, printSpeed, xp, badge, label? }: the points the tier starts at, the quality added to weapons of the class, the print time multiplier of its parts (0.9 = 10% faster), XP paid once, and whether the profile shows a badge
Config.Mastery.keepLegacyBonusbooleantrueA character with progress from before 2.0 keeps the lifetime bonus it had reached (experienceBonus, at most maxBonus) as the least quality bonus in every class
Config.Mastery = {
    enabled = true,
    points = { printCollected = 1, assembled = 4, attachmentFitted = 1, sold = 0 },
    tiers = {
        { points = 25,  qualityBonus = 2,  printSpeed = 0.95, xp = 100,  badge = false },
        { points = 100, qualityBonus = 5,  printSpeed = 0.90, xp = 250,  badge = false },
        { points = 250, qualityBonus = 8,  printSpeed = 0.85, xp = 500,  badge = true },
        { points = 600, qualityBonus = 12, printSpeed = 0.80, xp = 1000, badge = true },
    },
    keepLegacyBonus = true,
}

Tiers are named Familiar, Skilled, Expert and Master in the locale file; give a tier a label to name it yourself. Raising a tier's xp after players reached it pays them the difference on their next grant in that class, once.

Goals

SettingTypeDefaultDescription
Config.Goals.enabledbooleantrueDaily and weekly goals on or off
Config.Goals.notifybooleantrueA message when a goal is done, besides the "+XP" pop-up
Config.Goals.dailyCount / weeklyCountnumber3 / 2Goals per day and per week (up to 6)
Config.Goals.resetHournumber0The hour (0-23, server time) a day starts
Config.Goals.resetDaystring'monday'The day a week starts
Config.Goals.rerollsnumber1Unfinished daily goals a player can swap each day
Config.Goals.levelScalenumber0.1Targets and XP grow this much per level above 1 (1.9 times at level 10)
Config.Goals.pooltable15 rowsThe goals to draw from (below)

A pool row is { id, period, type, target, xp, weight, minLevel, class?, minQuality? }:

  • period: 'daily' or 'weekly'
  • type: print (parts collected), assemble (weapons assembled), flawless (assemblies scored at least flawlessScore), fit (attachments and finishes fitted), fix (failed prints fixed), sell (printed weapons sold to buyers), build (items built at the bench from printed parts)
  • target, xp: before level scaling
  • weight: how often the row is drawn against the others (0 = never)
  • minLevel: the lowest level it is drawn for
  • class: print, assemble and sell only, one weapon class (pistol, smg, shotgun, rifle, sniper, mg)
  • minQuality: print and assemble only, the lowest quality that counts
{ id = 'weekly_rifle', period = 'weekly', type = 'assemble', target = 2, class = 'rifle', xp = 450, weight = 5, minLevel = 4 },

Milestones

SettingTypeDefaultDescription
Config.Milestones.enabledbooleantrueMilestones on or off
Config.Milestones.notifybooleantrueA message when one is reached
Config.Milestones.listtable20 rowsThe milestones (below)

A row is { id, type, target, class?, category?, label?, reward }:

  • type: print, assemble, flawless, fit, fix, sell, build (as for goals), level (the level reached), mastery (a mastery tier reached; target is the tier number), quality (the best quality of an assembled weapon)
  • class: assemble, sell and mastery only, one weapon class
  • category: build only, one Config.ItemCategories id (attachments, finishes, maintenance, tools); left out, any item counts
  • label: optional; replaces the generated name
  • reward: { xp = n, cash = n, items = { { item = 'name', count = n } }, usb = { blueprint = 'key', once = true } }, any of them

The default milestones pay XP, and prints_250 also pays 10 carbon filament:

{ id = 'prints_250', type = 'print', target = 250, reward = { xp = 1000, items = { { item = 'printer_filament_carbon', count = 10 } } } },

None of the defaults give a blueprint USB. To make a milestone a blueprint source, add a usb reward, for example:

-- Example: the first sniper rifle also gives a one-time Marksman Rifle USB
{ id = 'first_sniper', type = 'assemble', class = 'sniper', target = 1, reward = { xp = 200, usb = { blueprint = 'marksman_rifle', once = true } } },

Milestones count everything a character has done, so a row you add is reached at once by players already past it. Never reuse an id: claims are saved by it.

Maker's Mark

SettingTypeDefaultDescription
Config.MakerMark.enabledbooleantrueMaker's marks on or off. Off, weapons carry no mark
Config.MakerMark.requiredLevelnumber6The level a player can register a mark from
Config.MakerMark.pricenumber25000What registering or changing a mark costs (paid as set in Config.Payment)
Config.MakerMark.renameDaysnumber7Days before a mark can be changed again (0 = any time)
Config.MakerMark.nameMin / nameMaxnumber3 / 20Length limits
Config.MakerMark.blocklisttablea list of slurs and swear wordsWords a mark may not contain. A word is blocked as a whole word or as the whole mark; a word starting with * also inside any word. Digits and l read as the letters they look like, and spaces, hyphens and apostrophes are ignored
Config.MakerMark.allowlisttable{ 'scunthorpe', 'ashkenazi', 'shitake', 'snigger' }Exact words the blocklist would otherwise catch

Marks are kept unique across every character in the weaponprinting_maker_marks table, which the resource creates at start. /weaponprinting clearmark removes a player's mark (see Admin Guide).

Payment

SettingTypeDefaultDescription
Config.Payment.modestring'account'How the maker's mark and the dark web charge: 'account' (money) or 'item'
Config.Payment.accountstring'cash'The account in account mode ('cash', 'bank', 'black_money' ...)
Config.Payment.itemstring'black_money'The item in item mode ('black_money', 'markedbills' ...)
Config.Payment = {
    mode = 'account',       -- 'account' or 'item'
    account = 'cash',
    item = 'black_money',
}

Account names differ between frameworks: ESX has a black_money account, while QBCore and Qbox keep dirty money as an item. Check the name against your framework before changing it. The Gunsmith Supply always charges cash; the buyers have their own payment setting (see Buyers).

Config File: shared/config/store.lua

Gunsmith Supply

Config.Store is the NPC supplier. Each location gets its own NPC. See Features > Gunsmith Supply.

The supplier is off by default: most servers sell these items through their own shops (see Installation > Selling the Items in Your Own Shops). To turn it on, type /weaponprinting settings, open Economy > Store and switch on Enabled, then click Save. The supplier, his blip and his target appear for every player at once, and switching it off removes them the same way. No restart is needed.

SettingTypeDefaultDescription
Config.Store.enabledbooleanfalseThe store on or off (NPCs, blips, targets). Off by default
Config.Store.locationstableone, by the stock pallets at the north end of the Grand Senora YouTool{ coords, heading, model, scenario } per supplier. coords is the NPC's position, about 1 m above the ground, and the centre of its interaction zone
Config.Store.interactDistancenumber2.5How close (meters) the player must be to the NPC
Config.Store.targetRadiusnumber1.5The size (meters) of the NPC's interaction zone
Config.Store.bliptableonThe supplier's map blip (see Map blips below). label is progression.store_blip, "Gunsmith Supply"
Config.Store.itemstable(see below)The rows: { item, label, price, category, requiredLevel?, blueprint?, metadata? }
Config.Store.customItemstable{}Your own rows, in the same shape. Rows in the custom category show under the Other section
Config.Store.categoriestableFilament, Equipment, Printer Upgrades, Blueprints, Attachments, Kits, OtherThe store's sections, in display order: { id, label }

A store row:

  • item: the inventory item sold. It must exist in your inventory (see Installation)
  • label, price (cash per unit), category (which section)
  • requiredLevel: optional printing level needed to buy it
  • blueprint: USB rows only. The blueprint the USB carries (a Config.Blueprints or Config.ItemPrints key); item is printer_usb or printer_usb_once
  • metadata: optional data the bought item carries. A finish kit row names its finish: { finish = 'gold' } (a Config.Finishes key)
{ item = 'printer_filament_reinforced', label = 'Reinforced Filament', price = 140, category = 'filament', requiredLevel = 3 },
{ item = 'printer_usb_once', blueprint = 'pistol', label = 'Pistol Blueprint', price = 1200, category = 'blueprints' },
{ item = 'printed_finish_kit', metadata = { finish = 'gold' }, label = 'Gold Finish Kit', price = 1500, category = 'kits' },

A row opens at the highest of its own requiredLevel, the level of the upgrade it sells (Config.Progression.upgradeLevels), the level of the item print that makes it (an attachment's or kit's level in Config.ItemPrints) and the level of the blueprint it carries. Payment is always cash.

Without an interior map, players can't go inside the YouTool: its shop floor is painted behind solid walls. That is why the default supplier stands outside. If your server streams a YouTool interior, move the location behind its counter. The default spot is also clear of the YouTool front door, where the ox_inventory and qb-shops hardware stores put their own clerk.

Map blips

Config.Store.blip and Config.Buyers.blip take the same options. Change them under Map blip in Economy > Store or Economy > Buyers in /weaponprinting settings. Each blip is made again as soon as you save.

OptionTypeStore defaultBuyers defaultDescription
enabledbooleantruefalseShow the blip. Off hides it from the map and keeps the NPC where it is
spritenumber402110The GTA blip icon id
colornumber11The GTA blip colour id (1 is red)
scalenumber0.60.6The blip's size
shortRangebooleantruetrueOn: the minimap shows the blip only when the player is nearby. Off: the minimap shows it from anywhere. The pause map always shows it
labelstringprogression.store_blipprogression.buyer_blipThe blip's name, as a key in the locales/*.json files (en.json, fr.json). A buyer's blip shows the buyer's own name instead, so label isn't used there

Buyers

Config.Buyers are the NPCs who buy 3D-printed weapons. See Features > Selling Printed Weapons.

SettingTypeDefaultDescription
Config.Buyers.enabledbooleantrueBuyers on or off
Config.Buyers.paymenttable{ mode = 'account', account = 'cash', item = 'black_money' }What buyers pay in, the same way as Config.Payment
Config.Buyers.locationstabledocks, airfield{ id, label, coords, heading, model, scenario, priceMultiplier, classes?, requiredLevel? }. id must be unique. classes limits the weapon classes a buyer takes; requiredLevel is the level a player needs to deal with them
Config.Buyers.interactDistancenumber2.0How close (meters) the player must be to a buyer
Config.Buyers.targetRadiusnumber1.2The size (meters) of a buyer's interaction zone
Config.Buyers.bliptableoffA blip per buyer, named after the buyer (see Map blips)
Config.Buyers.basePricetable{ pistol = 2500, smg = 5000, shotgun = 5500, rifle = 9000, sniper = 12000, mg = 15000, other = 2000 }Base price per weapon class
Config.Buyers.weaponPricestable{}A base price for one weapon item, in place of its class's (weapon_pistol50 = 4000)
Config.Buyers.qualitytable{ low = 0.4, high = 1.6 }Share of the base paid at quality 0 and 100, in a straight line between
Config.Buyers.attachmentValuenumber0.08Share of the base each attachment adds
Config.Buyers.finishValuenumber0.1Share of the base a finish adds
Config.Buyers.wear / wearFloorboolean / numbertrue / 0.25Scale the price by the weapon's condition (durability against its maximum), never below this share
Config.Buyers.limittable{ count = 3, hours = 1 }How many weapons one buyer takes from one character in that many hours. The count is kept in memory and resets when the server restarts
Config.Buyers.locations = {
    { id = 'docks', label = 'Dockside Fence', coords = vec3(1208.5, -3115.4, 5.54), heading = 0.0,
      model = 'g_m_m_armgoon_01', scenario = 'WORLD_HUMAN_SMOKING', priceMultiplier = 1.0 },
    { id = 'airfield', label = 'Airfield Broker', coords = vec3(1734.5, 3307.3, 41.22), heading = 195.0,
      model = 'g_m_y_salvagoon_01', scenario = 'WORLD_HUMAN_STAND_IMPATIENT', priceMultiplier = 1.15,
      classes = { 'rifle', 'sniper', 'mg' }, requiredLevel = 4 },
}

Price = base × (quality share + attachments × attachmentValue + finishValue if it has a finish) × wear × the buyer's priceMultiplier.

Config File: shared/config/app.lua

Config.GunsmithApp

The Gunsmith app for Oxide Phone and Oxide Tablet. See Features > Gunsmith App.

SettingTypeDefaultDescription
Config.GunsmithApp.enabledbooleantrueThe Gunsmith app on or off
Config.GunsmithApp.phonebooleantrueOffer it on Oxide Phone
Config.GunsmithApp.tabletbooleantrueOffer it on Oxide Tablet
Config.GunsmithApp.widgetbooleantrueThe level and goals home-screen widgets

Config.DarkWeb

The app's dark web section, selling blueprint USBs. It is optional and off by default: a USB bought there appears in the player's inventory straight from the phone, and most servers want USBs to come from the supplier, dealers or loot.

To turn it on, open /weaponprinting settings, go to Economy > Dark Web and switch Enabled on. It applies at once, with no restart: players see the Dark Web tab the next time the Gunsmith app loads. Changing enabled in shared/config/app.lua only sets the value a fresh install starts with; once the settings are saved, the menu value is the one used.

SettingTypeDefaultDescription
Config.DarkWeb.enabledbooleanfalseThe dark web section on or off
Config.DarkWeb.requiredLevelnumber2The level it opens at
Config.DarkWeb.dailyLimitnumber3USBs one character may buy a day (0 = no limit)
Config.DarkWeb.listingstable22 listings{ blueprint, once, price, requiredLevel? } (below)

A listing:

  • blueprint: a blueprint key — a weapon, or an item print such as suppressor, extended_mag, drum_mag, flashlight, scope, grip, repair_kit, cleaning_kit, lockpick or finish_<id> (finish_gold ...)
  • once: true sells the one-time USB, false the permanent one
  • price: what it costs, paid as set in Config.Payment
  • requiredLevel: optional. The listing opens at this level or its blueprint's own level, whichever is higher
{ blueprint = 'carbine_rifle', once = true, price = 8500 },
{ blueprint = 'carbine_rifle', once = false, price = 55000 },
{ blueprint = 'special_carbine', once = true, price = 9500, requiredLevel = 5 },

Config File: shared/config/seizure.lua

Police seizure of placed equipment. See Features > Police Seizure.

SettingTypeDefaultDescription
Config.Seizure.enabledbooleantrueSeizure on or off
Config.Seizure.jobstable{ 'police' }Jobs that may seize (the job names your framework uses; capital letters don't matter)
Config.Seizure.dutyOnlybooleantrueOnly while on duty
Config.Seizure.durationnumber10000How long the seize job takes, in milliseconds
Config.Seizure.evidencebooleantrueHand the officer what a seized printer held: its stored blueprints as USBs, its finished parts and the filament on its spool
Config.Seizure.equipmenttable{ printer = true, bench = true, recycler = true }Which kinds of equipment can be seized
Config.Seizure = {
    enabled = true,
    jobs = { 'police' },
    dutyOnly = true,
    duration = 10000,
    evidence = true,
    equipment = { printer = true, bench = true, recycler = true },
}

To let more jobs seize, list them all, for example jobs = { 'police', 'sheriff', 'statepolice' }.

Config File: shared/config/dispatch.lua

Police alerts for long prints in public places. See Features > Dispatch Alerts.

SettingTypeDefaultDescription
Config.Dispatch.enabledbooleantruePrint alerts on or off
Config.Dispatch.minSecondsnumber1200The shortest print (in seconds, after every speed bonus) that can alert
Config.Dispatch.chancenumber0.25The chance (0-1) a qualifying print alerts when it starts
Config.Dispatch.cooldownnumber600Seconds before the same printer can alert again
Config.Dispatch.zonestable5 zonesThe public places: { label, coords, radius, chance? } for a circle, or { label, points = { vec2(...), ... }, chance? } for an outlined area. A zone's chance replaces the default; -1 or no chance uses the default
Config.Dispatch.jobstable{ 'police' }Who the alert is for
Config.Dispatch.code, title, message, priority, icon, blipData(see below)The alert as the dispatch system shows it
Config.Dispatch = {
    enabled = true,
    minSeconds = 1200,
    chance = 0.25,
    cooldown = 600,
    zones = {
        { label = 'Legion Square', coords = vec3(195.0, -934.0, 30.7), radius = 180.0, chance = -1 },
        { label = 'Vespucci Beach', coords = vec3(-1350.0, -1450.0, 4.4), radius = 260.0, chance = -1 },
        { label = 'Del Perro Pier', coords = vec3(-1700.0, -1100.0, 13.1), radius = 160.0, chance = -1 },
        { label = 'Sandy Shores', coords = vec3(1850.0, 3700.0, 33.9), radius = 220.0, chance = 0.15 },
        { label = 'Paleto Bay', coords = vec3(-200.0, 6300.0, 31.5), radius = 250.0, chance = 0.15 },
    },

    jobs     = { 'police' },
    code     = '10-32',
    title    = 'Suspicious Machinery',
    message  = 'Caller reports a machine running for hours and parts that look like gun pieces.',
    priority = 2,
    icon     = 'fas fa-print',
    blipData = { sprite = 110, color = 1, scale = 1.0, radius = 80 },
}

Alerts go through your dispatch resource with o-link, so they work with any dispatch resource it supports. Remove every zone, or set enabled = false, to turn alerts off.

Text and Translations

Most messages and menu text players see are in locales/, in English (en.json) and French (fr.json). For French, add setr ox:locale "fr" to your server.cfg. Some names come from the config files and settings instead and stay as written there whatever the language: the Use Printer and Use Workbench options (Config.Target.label, Config.BenchTarget.label), the Use Recycler option while Config.Recycler.target.label is set, and the blueprint, part, item, finish, filament tier, level unlock, store row, buyer and dispatch alert texts. Translate those where they are set. Open the locale file for your language in a text editor to reword anything else — for example the supplier's blip name (progression.store_blip) or the buyers' option (progression.buyer_talk). Keep the %s markers: they're where the resource puts numbers and names. Restart the resource after saving.

Next Steps

On this page

The in-game settings menuThe settings editorThe database is the source of truthWhat the config files are still forWhat is in the menuSettings that stay in the fileWiping everything back to defaultsConfig File: shared/config.luaGeneral SettingsPer-Player Equipment LimitsSafe ZonesPrinter SettingsModels and HUDTarget SettingsBench SettingsBench Target SettingsTable SettingsConfig File: shared/config/printer.luaPrinter MenuCalibrationPrint FailuresPrinter SceneConfig File: shared/config/filament.luaConfig File: shared/config/upgrades.luaUpgrade CategoriesUSB MalfunctionConfig File: shared/config/blueprints.luaConfig File: shared/config/items.luaConfig.ItemPrintsNotesConfig File: shared/config/bench/itemprints.luaFields Every Item Print May UseShipped Item PrintsConfig.ItemCategoriesConfig.FinishPrintsConfig File: shared/config/ghostprops.luaConfig File: shared/config/assembly.luaConfig File: shared/config/classes.luaConfig File: shared/config/quality.luaConfig File: shared/config/bench/scene.luaConfig File: shared/config/bench/minigame.luaConfig File: shared/config/bench/attachments.luaConfig File: shared/config/bench/finishes.luaConfig File: shared/config/durability.luaConfig.DurabilityConfig.JamJam Chance Ranges (durability mode)Config File: shared/config/bench/kits.luaConfig File: shared/config/bench/recycler.luaConfig File: shared/config/progression.luaLevel RequirementsLevel UnlocksXP RewardsBlueprint Level GatesUpgrade Level GatesExperience BonusesQuality GradesMasteryGoalsMilestonesMaker's MarkPaymentConfig File: shared/config/store.luaGunsmith SupplyMap blipsBuyersConfig File: shared/config/app.luaConfig.GunsmithAppConfig.DarkWebConfig File: shared/config/seizure.luaConfig File: shared/config/dispatch.luaText and TranslationsNext Steps