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 settingsand 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.luaand the files insideshared/config/andshared/config/bench/. Open them with any text editor (Notepad++, VS Code), save, and restart the resource (typerestart oxide-weaponprintingin 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 category | Group | Config key |
|---|---|---|
| Core | General | Config.RequireOwnership, Config.MaxPerPlayer, Config.SpawnDistance, Config.PrinterSpacing |
| Core | Placement Zones | Config.SafeZones, drawn in the world |
| Core | Police Seizure | Config.Seizure |
| Core | Dispatch | Config.Dispatch. A zone's alert chance of -1 uses the alert chance above it |
| Core | Compatibility | Config.ModelSwaps. A replacement applies to equipment that spawns after the save |
| Printing | Filament | Config.Filament: spool size, and each tier's name, quality cap and durability cap |
| Printing | Calibration | Config.Calibration |
| Printing | Print Failures | Config.Failure, Config.UsbMalfunction |
| Printing | Printer Upgrades | Config.Upgrades: what each tier does. The nozzle's None row is the print time of every printer without a nozzle |
| Bench | Weapon Quality | Config.Quality |
| Bench | Assembly | Config.AssemblyGame |
| Bench | Durability & Jams | Config.Durability, Config.Jam |
| Bench | Weapon Kits | Config.RepairKit, Config.CleaningKit |
| Bench | Recycler | Config.Recycler. Turned off, placed recyclers leave the world until it is on again; they stay saved |
| Progression | Progression | Config.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 |
| Progression | Mastery | Config.Mastery |
| Progression | Goals | Config.Goals. Pool, count and scaling changes apply to goals drawn after them |
| Progression | Milestones | Config.Milestones |
| Progression | Maker's Mark | Config.MakerMark |
| Progression | Payment | Config.Payment |
| Progression | Gunsmith App | Config.GunsmithApp |
| Economy | Store | Config.Store |
| Economy | Buyers | Config.Buyers |
| Economy | Dark Web | Config.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'sitemand the tierorderConfig.Calibration:temperature.tickMsConfig.Upgrades: each upgrade'slabel,itemsandmaxTierConfig.Failure: the failurekindsConfig.Jam:unjamAnimConfig.RepairKit,Config.CleaningKit:itemandanimConfig.Recycler:item,models,hopper,drop,output,camera,targetandanimConfig.Progression:metadataKey,blueprintLevels,assemblyLevelsandexperienceBonus
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.
| Setting | What it is |
|---|---|
Config.PrinterItem, Config.FilamentItem, Config.UsbItem, Config.UsbOnceItem, Config.BenchItem, Config.TableItem, Config.FinishKitItem | Item names your inventory registers |
Config.PrinterModel, Config.TableModel | The models placed printers and tables spawn as |
Config.Blueprints, Config.ItemPrints, Config.FinishPrints, Config.Assembly | What 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.BlueprintClasses | Attachments, finishes, item categories and weapon classes |
Config.PrinterScene, Config.PrinterMenu, Config.BenchScene, Config.GhostProps | The printer and bench scenes: cameras, props, points and sounds |
Config.Target, Config.BenchTarget | The target options on printers and benches |
Config.UseHudAccent | Whether the stage HUD and menus take Oxide HUD's accent colour |
Config.ModelHints, Config.SettingsCommand | Only 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:
-
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'; -
Restart
oxide-weaponprinting(restart oxide-weaponprintingin 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.SpawnDistance | number | 100.0 | How close (in meters) a player must be before placed equipment appears for them |
Config.RequireOwnership | boolean | true | When true, only the player who placed equipment can operate it or pick it up (see Features > Ownership) |
Config.SpawnDistance = 100.0
Config.RequireOwnership = truePer-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).
| Setting | Type | Default | Description |
|---|---|---|---|
Config.MaxPerPlayer.printers | number | 3 | Maximum 3D printers per player |
Config.MaxPerPlayer.benches | number | 2 | Maximum weapon benches per player |
Config.MaxPerPlayer.tables | number | 5 | Maximum tables per player |
Config.PrinterSpacing | number | 0.5 | How 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.5Set 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.SafeZones | table | {} | 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.PrinterModel | string | '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.PrinterItem | string | '3d_printer' | Item name that places a printer |
Config.FilamentItem | string | '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.UsbItem | string | 'printer_usb' | The permanent blueprint USB: its blueprint is stored on the printer |
Config.UsbOnceItem | string | '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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.UseHudAccent | boolean | true | If 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.ModelSwaps | table | {} | 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.SettingsCommand | string | '/weaponprinting settings' | The command the missing-model warning names. The warning adds the page: /weaponprinting settings > Compatibility > Model replacements |
Config.ModelHints | table | every 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).
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Target.icon | string | 'fas fa-print' | Icon shown on the option (a Font Awesome icon name) |
Config.Target.label | string | 'Use Printer' | Text shown on the option |
Config.Target.distance | number | 1.5 | How 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).
| Setting | Type | Default | Description |
|---|---|---|---|
Config.BenchItem | string | 'weaponbench' | Item name that places a bench |
Config.BenchItem = 'weaponbench'Bench Target Settings
The interaction options on weapon benches.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.BenchTarget.icon | string | 'fas fa-wrench' | Icon shown on the option |
Config.BenchTarget.label | string | 'Use Workbench' | Text shown on the option |
Config.BenchTarget.distance | number | 1.5 | How 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.TableModel | string | 'bkr_prop_weed_table_01b' | The 3D model used for the placeable table |
Config.TableItem | string | '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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.PrinterMenu.range | number | 4.0 | How close (meters) the player must stay to the printer to use its menu |
Config.PrinterMenu.camera | table | (see below) | The menu's camera, relative to the printer (the front of the printer is -Y) |
Config.PrinterMenu.camera.clear | number | 0.40 | The 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.bedCamera | table | (see below) | The camera during the bed-levelling step, looking in at the build plate |
Config.PrinterMenu.nozzleCamera | table | (see below) | The camera during the nozzle-heating step |
Config.PrinterMenu.anim | table | { dict = 'mini@repair', clip = 'fixing_a_ped', flag = 1 } | The animation other players see while someone uses the printer |
Config.PrinterMenu.fixAnim | table | { 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):
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Calibration.bed.target | number | 0.10 | The gap that counts as level |
Config.Calibration.bed.band | number | 0.02 | How far either side of the target still counts as level (full marks) |
Config.Calibration.bed.zeroAt | number | 0.30 | How far off the target a corner scores nothing |
Config.Calibration.bed.step | number | 0.01 | How far one notch of a knob moves its corner |
Config.Calibration.bed.startOff | table | { 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.limit | number | 1.00 | The most a knob can open or close a gap |
Nozzle temperature (°C):
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Calibration.temperature.ambient | number | 25.0 | Room temperature — the nozzle starts here and cools towards it |
Config.Calibration.temperature.heatRate | number | 60.0 | Degrees added per second while the heater is held |
Config.Calibration.temperature.coolRate | number | 0.16 | Share of the difference to room temperature lost every second (0.16 = 16%) |
Config.Calibration.temperature.soakSeconds | number | 8.0 | How long the soak lasts once the nozzle first reaches the band |
Config.Calibration.temperature.tickMs | number | 100 | How often (milliseconds) the server updates the temperature. Leave it as it is |
Config.Calibration.temperature.maxTemp | number | 320.0 | The hottest the nozzle can get |
Config.Calibration.temperature.bands | table | (see below) | For each filament tier: the band to hold (low to high) and the scorch line |
Score:
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Calibration.weights | table | { 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.tiersneeds 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 abovemaxTemp. Keep every band'slowcomfortably under that, or players won't be able to reach it - A corner that starts further off than
zeroAtscores nothing until the player turns it closer
Print Failures
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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Failure.enabled | boolean | true | Set to false and prints never fail (every part shows a 0% chance) |
Config.Failure.baseChance | number | 15 | Starting failure chance, in percent |
Config.Failure.levelReduction | number | 1.0 | Percent removed per printing level |
Config.Failure.minChance | number | 2 | The chance never drops below this |
Config.Failure.maxChance | number | 40 | The chance never goes above this |
Config.Failure.window | table | { 0.25, 0.75 } | How far through a print a failure can happen (0.25 = a quarter of the way) |
Config.Failure.fixTime | number | 6000 | How long fixing a failed print takes, in milliseconds |
Config.Failure.kinds | table | { '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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.PrinterScene.layers | number | 40 | How many layers a part is built in — the part rises one layer at a time |
Config.PrinterScene.plate | vector3 | vector3(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.plateSize | number | 0.340 | The plate's width in meters. A part longer than this is laid across the plate's diagonal |
Config.PrinterScene.bedCorners | table | { 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.gantry | table | (see below) | The moving print head's models, travel, and speed. Leave it as it is |
Config.PrinterScene.led.rows | table | { 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.colours | table | (see below) | The colour (red, green, blue — 0 to 255 each) of the glow inside the printer for each state |
Config.PrinterScene.led.light | vector3 | vector3(0.0, -0.18, 0.46) | Where the glow comes from inside the printer |
Config.PrinterScene.led.range | number | 0.5 | How far the glow reaches, in meters |
Config.PrinterScene.led.intensity | number | 1.6 | How bright the glow is |
Config.PrinterScene.spool.socket | vector3 | vector3(0.320, 0.050, 0.400) | Where the spool sits on the printer's side holder. Leave it as it is |
Config.PrinterScene.spool.model | string | '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.full | number | 2 / 3 | At or above this share of the spool's capacity, the spool shows full |
Config.PrinterScene.spool.half | number | 1 / 3 | At or above this share it shows half; below it, nearly empty. An empty spool leaves the holder bare |
Config.PrinterScene.usbOnce | table | { 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.failedPrint | string | 'prop_oxide_wp_failprint' | What a failed print leaves on the plate. Leave it as it is |
Config.PrinterScene.tagRange | number | 6.0 | How close (meters) a player must be to see a printer's status card |
Config.PrinterScene.tagHeight | number | 0.78 | How high (meters) above the printer the card floats |
Config.PrinterScene.idleTagRange | number | 2.5 | How close (meters) a player must be to see an idle printer's card |
Config.PrinterScene.screen.range | number | 3.0 | How close (meters) the nearest printer must be for its touch screen to go live |
Config.PrinterScene.screen.twin, .txd, .texture | string | (see below) | The live screen's model and texture. Leave them as they are |
Config.PrinterScene.screen.width, .height | number | 512, 256 | The 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Filament.spoolCapacity | number | 20 | How many units of filament a printer's spool holds |
Config.Filament.order | table | { '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>.item | string | (see below) | The inventory item for that tier |
Config.Filament.tiers.<tier>.label | string | (see below) | The name players see in the menu, on the status card, and in part descriptions |
Config.Filament.tiers.<tier>.qualityCap | number | 70 / 85 / 100 | The highest quality a part printed with this tier can have (0-100) |
Config.Filament.tiers.<tier>.durabilityCap | number | 80 / 90 / 100 | The 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:
| Setting | What it changes |
|---|---|
Config.Upgrades.nozzle.speedMultiplier | Print 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.slots | How many blueprints the printer can store |
Config.Upgrades.storage.queue | How many jobs the printer holds at once — parts waiting, printing, failed, and finished but not collected (see Features > The Print Queue) |
Config.Upgrades.cooling.malfunctionReduction | Percent taken off the chance a permanent USB corrupts when loaded |
Config.Upgrades.cooling.failureReduction | Percent taken off a print's failure chance (see Print Failures) |
Config.Upgrades.buildplate.qualityBonus | Quality 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.UsbMalfunction.baseChance | number | 25 | Starting percent chance a USB is destroyed on load |
Config.UsbMalfunction.levelReduction | number | 1.5 | Percent removed per player level |
Config.UsbMalfunction.minimumChance | number | 5 | The 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:
| Field | Type | Description |
|---|---|---|
id | string | Internal name for the part within the blueprint |
label | string | Display name players see |
item | string | Inventory item the player receives when the part is printed |
model | string | Prop model that grows on the printer's build plate while the part prints |
filamentCost | number | Filament units taken from the printer's spool when the part is queued |
printTime | number | Print 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.
| Field | Type | Required | Description |
|---|---|---|---|
label | string | Yes | Display name shown in the printer menu |
item | string | Yes | Inventory item the player receives |
model | string or nil | No | Prop model that grows on the build plate while it prints. Leave it out (or set nil) and nothing shows on the plate |
filamentCost | number | Yes | Filament units taken from the printer's spool when the item is queued |
printTime | number | Yes | Print 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 ownlockpickitem - 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 toConfig.Progression.blueprintLevelsinshared/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.GhostPropsinshared/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 toConfig.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
categoryshows 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
| Field | Type | Required | Description |
|---|---|---|---|
label | string | Yes | Name in the printer's library |
item | string | Yes | The item it makes |
category | string | No | A Config.ItemCategories id, grouping it in the printer's library ('tools' if unset) |
count | number | No | How many of item one print makes (1 if unset) |
metadata | table | No | Data the made item carries (a finish kit's { finish = 'gold' }) |
level | number | No | Printing level it needs (1 if unset) |
model, filamentCost, printTime | For one-print items | As in shared/config/items.lua | |
parts | table | For items put together at the bench | A 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 |
model | string | No, for items put together at the bench | The 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
| Key | Makes | Category | Level | How it prints |
|---|---|---|---|---|
suppressor | printed_suppressor | Attachments | 3 | Front Baffles + Rear Baffles (each a 3d_printed_compact_barrel, 2 filament, 900 s), put together at the bench |
extended_mag | printed_extended_mag | Attachments | 2 | One print: 2 filament, 900 s |
drum_mag | printed_drum_mag | Attachments | 5 | Drum Shell (3d_printed_drum_mag, 3 filament, 1500 s) + Feed Tower (3d_printed_rifle_mag, 2 filament, 1200 s), put together at the bench |
flashlight | printed_flashlight | Attachments | 2 | One print: 1 filament, 600 s |
scope | printed_scope | Attachments | 4 | One print: 3 filament, 1200 s |
grip | printed_grip | Attachments | 3 | One print: 1 filament, 600 s |
repair_kit | printed_repair_kit | Maintenance | 2 | One print: 2 filament, 900 s |
cleaning_kit | printed_cleaning_kit | Maintenance | 1 | One print: 1 filament, 600 s |
finish_<id> | printed_finish_kit with { finish = '<id>' } | Finishes | 2 (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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.FinishPrints.tint | table | { level = 2, filamentCost = 1, printTime = 600 } | Level, filament and print time (seconds) of every tint finish kit |
Config.FinishPrints.livery | table | { level = 5, filamentCost = 2, printTime = 900 } | The same for every Mk II livery finish kit |
Config.FinishPrints.finishes | table | all 19 finishes | Which 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.GhostProps[model].scale | number | 0.1 to 0.25, per model | The 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.
| Field | Type | Description |
|---|---|---|
weapon | string | The GTA weapon item to give (e.g. 'weapon_pistol'). It must exist in your inventory |
label | string | Display name players see |
model | string | The weapon's world model (the bench clamps it in the vise) |
craftTime | number | Not used since the assembly minigame; left in so existing recipes load unchanged |
class | string | Optional. 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) |
parts | table | The 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.WeaponClasses | table | pistol, smg, rifle, shotgun, sniper, mg, item, other | Each class and the name players see ({ label = 'Pistols' } ...). Item prints are item, and anything without a class is other; neither earns mastery |
Config.BlueprintClasses | table | all 52 weapon blueprints | Which 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Quality.partWeight | number | 0.5 | Share 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.assemblySwing | number | 10 | The 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.min | number | 5 | The lowest quality a weapon can have |
Config.Quality.max | number | 95 | The highest quality a weapon can have |
Config.Quality.legacyPart | number | 50 | The 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.BenchScene.models | table | { '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].vise | table | see file | The 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].jaw | table | see file | The 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].tray | table | see file | Where parts land: the first spot, columns, spacing |
Config.BenchScene.points[model].carryHeight | number | 1.06 | Height an attachment is carried at when it has no spot on the weapon |
Config.BenchScene.points[model].lamp | table | see file | The work lamp lit while someone works |
Config.BenchScene.points[model].cameras | table | see file | The 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.default | table | see file | The points used for a bench model that has no row of its own |
Config.BenchScene.anim | table | { dict = 'mini@repair', clip = 'fixing_a_player', flag = 1 } | What other players see the worker do |
Config.BenchScene.handProps | table | screwdriver, wrench | The tool other players see in the worker's hand: a screwdriver while fitting, a wrench for torque |
Config.BenchScene.partScale | number | 1.0 | Part size at the bench, times the part's Config.GhostProps scale |
Config.BenchScene.fallbackPart | table | { model = 'prop_cs_cardbox_01', scale = 0.25 } | Stands in for a part or attachment model the game lacks |
Config.BenchScene.snapRadius | number | 0.06 | How 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.weaponScale | table | 1.0 per class | Weapon size in the vise, per weapon class |
Config.BenchScene.fitSpots | table | see file | Where 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.attachmentSpots | table | see file | The same for each attachment slot. Attachments keep their tray size |
Config.BenchScene.partPoses | table | see file | How 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.fitOverrides | table | see file | Corrections 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.weaponShapes | table | see 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.fitViews | table | see file | The 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.finishMs | number | 1500 | How long (milliseconds) the button is held to brush on a finish |
Config.BenchScene.finishRevealMs | number | 1500 | How long (milliseconds) the finished weapon stays in shot after a finish before the bench menu comes back |
Config.BenchScene.soundRange | number | 12.0 | How far (meters) bench sounds carry |
Config.BenchScene.sounds | table | see file | GTA 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.AssemblyGame.fumblePenalty | number | 15 | Fitting points lost per wrong pick |
Config.AssemblyGame.fitWeight / torqueWeight | number | 0.4 / 0.6 | Shares of the score from fitting (the pins, less the fumbles) and from torque. Keep them adding up to 1 |
Config.AssemblyGame.pins.perPart | number | 2 | Pins to press per part |
Config.AssemblyGame.pins.fillMs | number | 1200 | Milliseconds 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.window | number | 0.18 | Width of a pin's green window, as a share of the ring |
Config.AssemblyGame.pins.centre | table | { 0.50, 0.85 } | Where a pin's window centre may land, as shares of the ring |
Config.AssemblyGame.pins.falloff | number | 0.25 | How far outside the window (share of the ring) a release still scores; nearer scores in proportion |
Config.AssemblyGame.torque.passes | number | 2 | Fasteners (torque passes) per assembly, each with its own window |
Config.AssemblyGame.torque.fillMs | number | 2400 | Milliseconds to fill the ring while the button is held. Holding to full strips the thread and the pass scores 0 |
Config.AssemblyGame.torque.window | number | 0.14 | Width of the green window, as a share of the ring |
Config.AssemblyGame.torque.centre | table | { 0.45, 0.85 } | Where a window's centre may land, as shares of the ring |
Config.AssemblyGame.torque.falloff | number | 0.20 | How far outside the window (share of the ring) a release still scores; nearer scores in proportion |
Config.AssemblyGame.minInputGapMs | number | 120 | The 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
| Setting | Type | Description |
|---|---|---|
Config.Attachments | table | Each 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.AttachmentSlots | table | The 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.FinishKitItem | string | 'printed_finish_kit' | The one finish kit item; its metadata names the finish it applies |
Config.Finishes[id].label | string | (see file) | The finish's name |
Config.Finishes[id].tint / mk2Tint | number | (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].livery | string | (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].swatch | string | (see file) | Colour shown in the menus |
Config.FinishOrder | table | all 19 | The 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Durability.enabled | boolean | true | Master 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.degradePerShot | number | 0.15 | Durability lost per shot |
Config.Durability.shotSyncInterval | number | 10 | How many shots between durability saves (lower = more accurate, more server work) |
Config.Durability.breakAtZero | boolean | true | Destroy 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Jam.enabled | boolean | true | Master switch for the jam mechanic. Works with or without durability |
Config.Jam.flatChance | number | 5 | Per-shot jam chance (percent) used when durability is disabled |
Config.Jam.durabilityTiers | table | (see below) | Jam chance per durability range, used when durability is enabled |
Config.Jam.unjamTime | number | 3000 | How long clearing a jam takes, in milliseconds |
Config.Jam.unjamAnim | table | { 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 Range | Jam Chance | Description |
|---|---|---|
| 80-100 | 0% | No jams while in good condition |
| 60-80 | 2% | Rare jams begin |
| 40-60 | 5% | Noticeable jam frequency |
| 20-40 | 10% | Frequent jams |
| 0-20 | 20% | 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.RepairKit.enabled | boolean | true | The repair kit on or off |
Config.RepairKit.item | string | 'printed_repair_kit' | The repair kit item |
Config.RepairKit.restore | number | 25 | Durability restored, never past the weapon's durability cap |
Config.RepairKit.duration | number | 6000 | How long the progress bar takes, in milliseconds |
Config.RepairKit.anim | table | { dict = 'mini@repair', clip = 'fixing_a_player', flag = 49 } | The animation while repairing |
Config.CleaningKit.enabled | boolean | true | The cleaning kit on or off |
Config.CleaningKit.item | string | 'printed_cleaning_kit' | The cleaning kit item |
Config.CleaningKit.cleanShots | number | 150 | Shots after a cleaning that jam as rarely as a new weapon |
Config.CleaningKit.duration | number | 4000 | How long the progress bar takes, in milliseconds |
Config.CleaningKit.anim | table | { 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Recycler.enabled | boolean | true | The recycler on or off |
Config.Recycler.item | string | 'filament_recycler' | The item that places a recycler |
Config.Recycler.models | table | { '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.maxPerPlayer | number | 2 | Recyclers one character can place (0 = no limit) |
Config.Recycler.hopper / drop / output | vector3 | see file | Points 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.camera | table | see file | The camera while feeding |
Config.Recycler.target.icon | string | 'fas fa-recycle' | Icon of the Use Recycler option |
Config.Recycler.target.label | string | 'Use Recycler' | Text of the option. Remove the key to use the locale text (bench.recycler_use) instead |
Config.Recycler.target.distance | number | 1.6 | How close (meters) the player must be. Pick Up Recycler uses the same distance |
Config.Recycler.inputs | table | plastic 4, rubber 5, fabric 5 | The 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.msPerItem | number | 900 | Holding time (milliseconds) per item shredded |
Config.Recycler.maxPerHold | number | 20 | Most items one hold takes |
Config.Recycler.anim | table | { 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
| Setting | Type | Description |
|---|---|---|
Config.Progression.metadataKey | string | Where progression is saved on the character ('weaponprinting'). Don't change this after players have progress — they would appear to start over |
Config.Progression.levels | table | The 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).
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Progression.xpRewards.loadUsb | number | 5 | XP for loading a permanent USB |
Config.Progression.xpRewards.loadUsbOnce | number | 0 | XP for loading a one-time USB |
Config.Progression.xpRewards.printComplete | number | 15 | XP per filament the part cost, when a printed part is collected |
Config.Progression.xpRewards.assembleWeapon | number | 30 | XP times the weapon's average part filament cost, on assembly |
Config.Progression.xpRewards.itemBuilt | number | 15 | XP for building an item at the bench from printed parts (a suppressor, a drum magazine); never a weapon assembly |
Config.Progression.xpRewards.fixFailure | number | 20 | XP for fixing a failed print at the printer |
Config.Progression.xpRewards.fitAttachment | number | 15 | XP for fitting an attachment or a finish at the bench |
Config.Progression.xpRewards.sellWeapon | number | 25 | XP for selling a printed weapon to a buyer |
Config.Progression.qualityXp | table | { 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.flawlessScore | number | 90 | The assembly minigame score from which an assembly counts as flawless for goals and milestones |
Config.Progression.levelUpNotify | boolean | true | A message and a banner listing what a new level unlocked |
Config.Progression.showXpGains | boolean | true | "+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.
| Setting | Default |
|---|---|
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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Progression.experienceBonus.printsPerBonus | number | 50 | Lifetime prints needed per quality bonus step |
Config.Progression.experienceBonus.printBonusPercent | number | 2 | Quality bonus per step |
Config.Progression.experienceBonus.assembliesPerBonus | number | 25 | Lifetime assemblies needed per quality bonus step |
Config.Progression.experienceBonus.assemblyBonusPercent | number | 3 | Quality bonus per step |
Config.Progression.experienceBonus.maxBonus | number | 20 | Cap 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Mastery.enabled | boolean | true | Mastery 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.points | table | { 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.tiers | table | 4 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.keepLegacyBonus | boolean | true | A 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Goals.enabled | boolean | true | Daily and weekly goals on or off |
Config.Goals.notify | boolean | true | A message when a goal is done, besides the "+XP" pop-up |
Config.Goals.dailyCount / weeklyCount | number | 3 / 2 | Goals per day and per week (up to 6) |
Config.Goals.resetHour | number | 0 | The hour (0-23, server time) a day starts |
Config.Goals.resetDay | string | 'monday' | The day a week starts |
Config.Goals.rerolls | number | 1 | Unfinished daily goals a player can swap each day |
Config.Goals.levelScale | number | 0.1 | Targets and XP grow this much per level above 1 (1.9 times at level 10) |
Config.Goals.pool | table | 15 rows | The 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 leastflawlessScore),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 scalingweight: how often the row is drawn against the others (0= never)minLevel: the lowest level it is drawn forclass:print,assembleandsellonly, one weapon class (pistol,smg,shotgun,rifle,sniper,mg)minQuality:printandassembleonly, the lowest quality that counts
{ id = 'weekly_rifle', period = 'weekly', type = 'assemble', target = 2, class = 'rifle', xp = 450, weight = 5, minLevel = 4 },Milestones
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Milestones.enabled | boolean | true | Milestones on or off |
Config.Milestones.notify | boolean | true | A message when one is reached |
Config.Milestones.list | table | 20 rows | The 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;targetis the tier number),quality(the best quality of an assembled weapon)class:assemble,sellandmasteryonly, one weapon classcategory:buildonly, oneConfig.ItemCategoriesid (attachments,finishes,maintenance,tools); left out, any item countslabel: optional; replaces the generated namereward:{ 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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.MakerMark.enabled | boolean | true | Maker's marks on or off. Off, weapons carry no mark |
Config.MakerMark.requiredLevel | number | 6 | The level a player can register a mark from |
Config.MakerMark.price | number | 25000 | What registering or changing a mark costs (paid as set in Config.Payment) |
Config.MakerMark.renameDays | number | 7 | Days before a mark can be changed again (0 = any time) |
Config.MakerMark.nameMin / nameMax | number | 3 / 20 | Length limits |
Config.MakerMark.blocklist | table | a list of slurs and swear words | Words 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.allowlist | table | { '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
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Payment.mode | string | 'account' | How the maker's mark and the dark web charge: 'account' (money) or 'item' |
Config.Payment.account | string | 'cash' | The account in account mode ('cash', 'bank', 'black_money' ...) |
Config.Payment.item | string | '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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Store.enabled | boolean | false | The store on or off (NPCs, blips, targets). Off by default |
Config.Store.locations | table | one, 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.interactDistance | number | 2.5 | How close (meters) the player must be to the NPC |
Config.Store.targetRadius | number | 1.5 | The size (meters) of the NPC's interaction zone |
Config.Store.blip | table | on | The supplier's map blip (see Map blips below). label is progression.store_blip, "Gunsmith Supply" |
Config.Store.items | table | (see below) | The rows: { item, label, price, category, requiredLevel?, blueprint?, metadata? } |
Config.Store.customItems | table | {} | Your own rows, in the same shape. Rows in the custom category show under the Other section |
Config.Store.categories | table | Filament, Equipment, Printer Upgrades, Blueprints, Attachments, Kits, Other | The 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 itblueprint: USB rows only. The blueprint the USB carries (aConfig.BlueprintsorConfig.ItemPrintskey);itemisprinter_usborprinter_usb_oncemetadata: optional data the bought item carries. A finish kit row names its finish:{ finish = 'gold' }(aConfig.Finisheskey)
{ 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.
| Option | Type | Store default | Buyers default | Description |
|---|---|---|---|---|
enabled | boolean | true | false | Show the blip. Off hides it from the map and keeps the NPC where it is |
sprite | number | 402 | 110 | The GTA blip icon id |
color | number | 1 | 1 | The GTA blip colour id (1 is red) |
scale | number | 0.6 | 0.6 | The blip's size |
shortRange | boolean | true | true | On: the minimap shows the blip only when the player is nearby. Off: the minimap shows it from anywhere. The pause map always shows it |
label | string | progression.store_blip | progression.buyer_blip | The 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Buyers.enabled | boolean | true | Buyers on or off |
Config.Buyers.payment | table | { mode = 'account', account = 'cash', item = 'black_money' } | What buyers pay in, the same way as Config.Payment |
Config.Buyers.locations | table | docks, 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.interactDistance | number | 2.0 | How close (meters) the player must be to a buyer |
Config.Buyers.targetRadius | number | 1.2 | The size (meters) of a buyer's interaction zone |
Config.Buyers.blip | table | off | A blip per buyer, named after the buyer (see Map blips) |
Config.Buyers.basePrice | table | { pistol = 2500, smg = 5000, shotgun = 5500, rifle = 9000, sniper = 12000, mg = 15000, other = 2000 } | Base price per weapon class |
Config.Buyers.weaponPrices | table | {} | A base price for one weapon item, in place of its class's (weapon_pistol50 = 4000) |
Config.Buyers.quality | table | { low = 0.4, high = 1.6 } | Share of the base paid at quality 0 and 100, in a straight line between |
Config.Buyers.attachmentValue | number | 0.08 | Share of the base each attachment adds |
Config.Buyers.finishValue | number | 0.1 | Share of the base a finish adds |
Config.Buyers.wear / wearFloor | boolean / number | true / 0.25 | Scale the price by the weapon's condition (durability against its maximum), never below this share |
Config.Buyers.limit | table | { 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.GunsmithApp.enabled | boolean | true | The Gunsmith app on or off |
Config.GunsmithApp.phone | boolean | true | Offer it on Oxide Phone |
Config.GunsmithApp.tablet | boolean | true | Offer it on Oxide Tablet |
Config.GunsmithApp.widget | boolean | true | The 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.DarkWeb.enabled | boolean | false | The dark web section on or off |
Config.DarkWeb.requiredLevel | number | 2 | The level it opens at |
Config.DarkWeb.dailyLimit | number | 3 | USBs one character may buy a day (0 = no limit) |
Config.DarkWeb.listings | table | 22 listings | { blueprint, once, price, requiredLevel? } (below) |
A listing:
blueprint: a blueprint key — a weapon, or an item print such assuppressor,extended_mag,drum_mag,flashlight,scope,grip,repair_kit,cleaning_kit,lockpickorfinish_<id>(finish_gold...)once:truesells the one-time USB,falsethe permanent oneprice: what it costs, paid as set inConfig.PaymentrequiredLevel: 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Seizure.enabled | boolean | true | Seizure on or off |
Config.Seizure.jobs | table | { 'police' } | Jobs that may seize (the job names your framework uses; capital letters don't matter) |
Config.Seizure.dutyOnly | boolean | true | Only while on duty |
Config.Seizure.duration | number | 10000 | How long the seize job takes, in milliseconds |
Config.Seizure.evidence | boolean | true | Hand the officer what a seized printer held: its stored blueprints as USBs, its finished parts and the filament on its spool |
Config.Seizure.equipment | table | { 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.
| Setting | Type | Default | Description |
|---|---|---|---|
Config.Dispatch.enabled | boolean | true | Print alerts on or off |
Config.Dispatch.minSeconds | number | 1200 | The shortest print (in seconds, after every speed bonus) that can alert |
Config.Dispatch.chance | number | 0.25 | The chance (0-1) a qualifying print alerts when it starts |
Config.Dispatch.cooldown | number | 600 | Seconds before the same printer can alert again |
Config.Dispatch.zones | table | 5 zones | The 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.jobs | table | { '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
Installation Guide
Complete installation instructions for the Oxide 3D Weapon Printing system including database setup, item registration, upgrading from 1.x, and framework configuration.
Features
Complete overview of all Oxide 3D Weapon Printing features including printing, calibration, blueprints, upgrades, bench assembly, attachments, durability, progression, buyers, and police.