Installation Guide
Complete installation instructions for the Oxide 3D Weapon Printing system including database setup, item registration, upgrading from 1.x, and framework configuration.
This guide takes you from a fresh download to a working printer on your server. Follow the steps in order and you'll be printing on the first try.
Prerequisites
Required Resources
These must be installed and started on your server. A "resource" is one folder in your resources/ directory that your server runs.
| Resource | Minimum Version | Purpose |
|---|---|---|
| ox_lib | v3.0.0+ | Utility library, translations, input dialogs and progress bars |
| oxmysql | latest | Saves printers, benches, recyclers, print queues and maker's marks to your database |
| o-link | latest | The bridge that lets this resource work with your framework, inventory and other scripts |
| A target resource o-link supports | any | The interaction options on equipment, the supplier and the buyers ("Use Printer", "Browse supplies" ...). One of: ox_target, qb-target, sleepless_interact, tgiann-target or oxide-target |
Important
Without a target resource, players can't use printers, benches or recyclers, or talk to the supplier and buyers. Most QBCore servers run qb-target, and most Qbox and ESX servers run ox_target. If you already have one running, you're set.
Optional Resources
None of these are required. Each feature turns on by itself when its resource is running.
| Resource | What it adds |
|---|---|
| Oxide Phone or Oxide Tablet | The Gunsmith app and its home-screen widgets (players install it from the device's app store) |
| A dispatch resource o-link supports (Oxide Dispatch, ps-dispatch, cd_dispatch ...) | Alerts for long prints in public places show in your dispatch system. Without one, o-link still sends players with the police job a simple alert with a map blip |
| Oxide HUD | Lets players move the on-screen stage header and control hints, the level-up banner and the XP pop-ups in the HUD editor |
| oxide-logger | More detailed logs, log files and Discord log channels |
Supported Frameworks
| Framework | Support | Inventory |
|---|---|---|
| QBCore | Full | qb-inventory |
| Qbox (qbx_core) | Full | ox_inventory |
| ESX | Full | ox_inventory |
ESX servers: use ox_inventory
ESX's own built-in weapon loadout keeps no extra data on weapons, so on it printed weapons lose their quality, durability, attachments, finish and maker's mark, and can't be sold to buyers. With ox_inventory, ESX works exactly like Qbox.
Installation Steps
-
Put the resource in your resources folder. Extract the download so you have a folder named
oxide-weaponprinting, for exampleresources/[oxide]/oxide-weaponprinting. Keep the folder name exactly as it is. -
Add it to your
server.cfg. Yourserver.cfgis the text file that tells your server which resources to start. Add the start line as shown in Load Order below. -
Register the items. Every item this resource uses must exist in your inventory, and its icon must be copied over. See Item Registration. This is the step people most often miss.
-
Choose where players buy the gear. The Gunsmith Supply, the resource's own NPC supplier, is off by default. Either sell the items in your own shops (see Selling the Items in Your Own Shops), or turn the supplier on: as an admin, type
/weaponprinting settingsand switch on Enabled under Economy > Store. It appears at once, with no restart.The supplier (when on) and the two weapon buyers stand at spots on the standard GTA map. If your map has something else there, move them under Store > Suppliers and Buyers > Buyers, using Place to set each one in the world. Gameplay settings like these are copied from the config files into your database on the first start, and from then on the saved values replace the files — see Configuration > The in-game settings menu.
-
Start your server. There's nothing to import into your database. The resource creates its own tables the first time it starts (see Database Setup).
-
Test it with the steps in Verification.
Updating an existing 1.x install?
Follow Upgrading from 1.x instead.
Load Order
Every Oxide resource follows the same four-tier load order in server.cfg:
# 1. Framework — everything your framework requires (qb-core, es_extended, qbx_core, etc.)
ensure <framework>
# 2. Scripts — your other resources (phone, inventory, garages, etc.)
ensure <your-other-scripts>
# 3. o-link — the bridge. Starts after your framework/scripts, before any Oxide resource.
ensure o-link
# 4. Oxide resources — keep these together, ideally in a folder named [oxide]
ensure oxide-weaponprintingox_libandoxmysqlbelong in tier 1 with your framework. Most servers already start them there.- Your inventory and your target resource belong in tier 2 (or tier 1, if your framework starts them).
- If you run several Oxide resources, keep them all in a folder named
[oxide]and start them together with one line:ensure [oxide].
Language
The resource ships in English (locales/en.json) and French (locales/fr.json). It follows ox_lib's language setting. To switch to French, add this line to your server.cfg and restart:
setr ox:locale "fr"Without it, the resource is in English. To add your own language, copy locales/en.json to locales/<code>.json, translate the values (keep the keys), and set ox:locale to that code. Keep every line: a line your file lacks shows in English in messages, but as its key name in the menus.
In the admin settings menu (/weaponprinting settings), the section and setting names, choices and help text are in English only, whatever the language setting, because they come from shared/settings_schema.lua, not the locale files.
Database Setup
You don't need to import anything. When the resource starts, it creates the tables it needs. On a database from 1.x, it adds the new columns and moves your existing prints into the new print queue by itself. Each one-time update is written down in a small table (weaponprinting_migrations) so it only ever runs once.
The resource uses these tables:
| Table | Purpose |
|---|---|
3d_printers | Placed 3D printers with position, owner, name, upgrades, stored blueprints, and the loaded filament spool |
weapon_benches | Placed weapon benches with position and owner |
placeable_tables | Placed tables with position and owner |
active_prints | Each printer's print queue: parts waiting, printing, failed, and finished but not yet collected |
weapon_bench_sessions | The parts an assembly in progress took, so they can be given back if the assembly is cut short |
weapon_recyclers | Placed filament recyclers with position and owner |
weaponprinting_maker_marks | Players' maker's marks, kept unique across every character |
weaponprinting_migrations | A record of which one-time database updates have already run |
oxide_settings | The values saved in /weaponprinting settings, one row per setting. Shared with other Oxide Studios resources that have a settings menu |
Progression (level, XP, mastery, goals, milestones) is saved on the character through o-link and needs no table.
If the tables can't be created or updated
The database user your server logs in with needs permission to create and alter (change) tables. Most setups already have this. If yours doesn't, the resource stops during startup and the server console shows:
could not create or upgrade the tables; the database user needs permission to create and alter tablesTo fix it:
- Best option: give that database user permission to create and alter tables (in your host's database panel, or ask your host), then restart the server
- If your host allows creating tables but not altering them: run the update by hand. Open your database tool (HeidiSQL, phpMyAdmin, or whichever program you use to look at your database), import
sql/migrate_2_0_0.sql, then restart the server. This file is safe to run more than once
sql/install.sql is a reference copy of the full set of tables, if you want to see what the resource creates.
Updating from 2.0.0
Replace the resource folder. There are no database, config or item changes, and no newer o-link is needed (2.0.1 works with o-link 1.14.0).
Weapons finished under 2.0.0 keep showing their tint. The inventory's own copy of the tint is written the next time the weapon is changed at a bench.
Upgrading from 1.x
Your placed printers, their upgrades and stored blueprints, and any prints that were running or waiting to be collected all carry over to 2.0. Follow these steps in order:
-
Back up your database. Nothing should go wrong, but a backup costs nothing and lets you go back if it does
-
Write down the settings you changed. Open your current config files (
shared/config.luaand the files inshared/config/) and note every value you changed from the default -
Replace the resource folder with the new version
-
Re-apply your changes by hand in the new config files, before the first start. On that start the gameplay settings are copied from the files into your database; after it you change them in
/weaponprinting settings. Don't copy your old config files over the new ones: 2.0 adds new settings to them (for example the print queue length inshared/config/upgrades.lua) and new files (shared/config/bench/,store.lua,app.luaand more), and an old file without them stops the printer menu from working -
Register the 13 new items and copy their icons. 2.0 adds these items, each with an icon of the same name in
itemimages/:printer_filament_reinforced,printer_filament_carbon,printer_usb_onceprinted_suppressor,printed_extended_mag,printed_drum_mag,printed_flashlight,printed_scope,printed_gripprinted_finish_kit,printed_repair_kit,printed_cleaning_kit,filament_recycler
See Item Registration. On QBCore, also change the 30 printed parts and the
3d_printeritem tounique = true— the snippet below already has this. Coming from 1.1.3 or older? 1.1.4 renamed the bench item: changeweapon_benchtoweaponbenchin your item list too (the snippets below use the new name), and give players new bench items for anyweapon_benchthey still hold. -
Start the server. The resource updates the database by itself on the first start. In the server console you'll see lines like these, once:
[INFO][oxide-weaponprinting][schema] column added [INFO][oxide-weaponprinting][schema] migration applied
What carries over
| From 1.x | In 2.0 |
|---|---|
| Placed printers, benches, and tables | Stay where they are. Printers and benches show the new models |
| Printer upgrades and stored blueprints | Kept |
| A print that was running | Keeps running as the first job in that printer's queue |
| A finished print nobody had collected | Waits on the printer, ready to collect |
printer_filament items | Become the basic filament tier |
printer_usb items | Stay permanent blueprint USBs |
| Parts printed in 1.x | Work as before, and count as quality 50 at the bench |
| Players' level, XP and lifetime totals | Kept. The lifetime quality bonus a player had reached is kept as their least bonus in every weapon class, and the print and assembly milestones their totals already reached are marked done (without paying the reward again) |
Players will need to load filament onto a printer's spool before they can queue new prints — printers no longer take filament straight from the player's inventory (see Features > Filament and the Spool).
The Gunsmith Supply is new in 2.0 and starts off as well: sell the items in your own shops (see Selling the Items in Your Own Shops), or turn it on under Economy > Store in /weaponprinting settings. A server that has already saved its settings keeps the value it saved for it too.
The Gunsmith app's dark web is new in 2.0 and starts off. Turn it on under Economy > Dark Web in /weaponprinting settings if you want players to buy blueprint USBs from the app. A server that has already saved its settings keeps the value it saved: an update never switches the dark web on or off by itself.
Item Registration
This resource uses 63 items. Each one must be added to your inventory's item list (this is called "registering" the item), and each one has an icon in the resource's itemimages/ folder with exactly the same name as the item. Every one of the 63 items has its icon — none is missing.
Item List
Equipment, Filament, USBs and the Handbook (9)
| Item Name | Label | Icon | Notes |
|---|---|---|---|
3d_printer | 3D Printer | 3d_printer.png | Usable: places a printer. A picked-up printer keeps its upgrades on the item |
printer_usb | Printer USB | printer_usb.png | Permanent blueprint USB. Carries the blueprint it holds |
printer_usb_once | One-Time Printer USB | printer_usb_once.png | Loads its blueprint for one visit to a printer, then it's used up. Carries the blueprint it holds |
printer_filament | Printer Filament | printer_filament.png | Basic filament |
printer_filament_reinforced | Reinforced Filament | printer_filament_reinforced.png | Better filament: higher-quality parts |
printer_filament_carbon | Carbon Filament | printer_filament_carbon.png | The best filament: the highest-quality parts |
weaponbench | Weapon Bench | weaponbench.png | Usable: places a weapon bench |
placeable_table | Table | placeable_table.png | Usable: places a decorative table |
printer_manual | The Ghost Gunner's Handbook | printer_manual.png | Usable: opens the in-game guide book |
Printed Weapon Parts (30)
Every part carries its own quality and filament tier.
| Item Name | Label | Icon |
|---|---|---|
3d_printed_pistol_slide | Printed Pistol Slide | 3d_printed_pistol_slide.png |
3d_printed_pistol_grip | Printed Pistol Grip | 3d_printed_pistol_grip.png |
3d_printed_pistol_clip | Printed Pistol Magazine | 3d_printed_pistol_clip.png |
3d_printed_pistol_compact_frame | Printed Compact Frame | 3d_printed_pistol_compact_frame.png |
3d_printed_revolver_frame | Printed Revolver Frame | 3d_printed_revolver_frame.png |
3d_printed_revolver_receiver | Printed Revolver Receiver | 3d_printed_revolver_receiver.png |
3d_printed_trigger_group | Printed Trigger Group | 3d_printed_trigger_group.png |
3d_printed_smg_barrel | Printed SMG Barrel | 3d_printed_smg_barrel.png |
3d_printed_smg_receiver | Printed SMG Receiver | 3d_printed_smg_receiver.png |
3d_printed_smg_mag | Printed SMG Magazine | 3d_printed_smg_mag.png |
3d_printed_compact_barrel | Printed Compact Barrel | 3d_printed_compact_barrel.png |
3d_printed_folding_stock | Printed Folding Stock | 3d_printed_folding_stock.png |
3d_printed_rifle_barrel | Printed Rifle Barrel | 3d_printed_rifle_barrel.png |
3d_printed_rifle_upper | Printed Rifle Upper | 3d_printed_rifle_upper.png |
3d_printed_rifle_lower | Printed Rifle Lower | 3d_printed_rifle_lower.png |
3d_printed_rifle_handguard | Printed Rifle Handguard | 3d_printed_rifle_handguard.png |
3d_printed_rifle_mag | Printed Rifle Magazine | 3d_printed_rifle_mag.png |
3d_printed_rifle_stock | Printed Rifle Stock | 3d_printed_rifle_stock.png |
3d_printed_bullpup_chassis | Printed Bullpup Chassis | 3d_printed_bullpup_chassis.png |
3d_printed_shotgun_barrel | Printed Shotgun Barrel | 3d_printed_shotgun_barrel.png |
3d_printed_shotgun_receiver | Printed Shotgun Receiver | 3d_printed_shotgun_receiver.png |
3d_printed_shotgun_stock | Printed Shotgun Stock | 3d_printed_shotgun_stock.png |
3d_printed_pump_handle | Printed Pump Handle | 3d_printed_pump_handle.png |
3d_printed_double_barrel_set | Printed Double Barrel Set | 3d_printed_double_barrel_set.png |
3d_printed_sniper_barrel | Printed Sniper Barrel | 3d_printed_sniper_barrel.png |
3d_printed_sniper_receiver | Printed Sniper Receiver | 3d_printed_sniper_receiver.png |
3d_printed_sniper_mag | Printed Sniper Magazine | 3d_printed_sniper_mag.png |
3d_printed_sniper_stock | Printed Sniper Stock | 3d_printed_sniper_stock.png |
3d_printed_long_scope | Printed Long Scope | 3d_printed_long_scope.png |
3d_printed_drum_mag | Printed Drum Magazine | 3d_printed_drum_mag.png |
Printer Upgrades (14)
| Item Name | Label | Icon |
|---|---|---|
printer_nozzle_mk1 | Nozzle Mk I | printer_nozzle_mk1.png |
printer_nozzle_mk2 | Nozzle Mk II | printer_nozzle_mk2.png |
printer_nozzle_mk3 | Nozzle Mk III | printer_nozzle_mk3.png |
printer_storage_mk1 | Storage Drive Mk I | printer_storage_mk1.png |
printer_storage_mk2 | Storage Drive Mk II | printer_storage_mk2.png |
printer_storage_mk3 | Storage Drive Mk III | printer_storage_mk3.png |
printer_cooling_mk1 | Cooling Fan Mk I | printer_cooling_mk1.png |
printer_cooling_mk2 | Cooling Fan Mk II | printer_cooling_mk2.png |
printer_cooling_mk3 | Cooling Fan Mk III | printer_cooling_mk3.png |
printer_buildplate_mk1 | Build Plate Mk I | printer_buildplate_mk1.png |
printer_buildplate_mk2 | Build Plate Mk II | printer_buildplate_mk2.png |
printer_buildplate_mk3 | Build Plate Mk III | printer_buildplate_mk3.png |
printer_psu_mk1 | Power Supply Mk I | printer_psu_mk1.png |
printer_psu_mk2 | Power Supply Mk II | printer_psu_mk2.png |
Bench Items (10)
Attachments, finish kits, weapon kits and the filament recycler.
| Item Name | Label | Icon | Notes |
|---|---|---|---|
printed_suppressor | Printed Suppressor | printed_suppressor.png | Attachment, fitted at a weapon bench |
printed_extended_mag | Printed Extended Magazine | printed_extended_mag.png | Attachment, fitted at a weapon bench |
printed_drum_mag | Printed Drum Magazine | printed_drum_mag.png | Attachment, fitted at a weapon bench |
printed_flashlight | Printed Flashlight | printed_flashlight.png | Attachment, fitted at a weapon bench |
printed_scope | Printed Scope | printed_scope.png | Attachment, fitted at a weapon bench |
printed_grip | Printed Grip | printed_grip.png | Attachment, fitted at a weapon bench |
printed_finish_kit | Finish Kit | printed_finish_kit.png | One item for every finish: each kit carries the finish it applies |
printed_repair_kit | Weapon Repair Kit | printed_repair_kit.png | Usable: restores durability on a printed weapon |
printed_cleaning_kit | Weapon Cleaning Kit | printed_cleaning_kit.png | Usable: makes a printed weapon jam less for a while |
filament_recycler | Filament Recycler | filament_recycler.png | Usable: places a filament recycler |
Items From Your Own Server
The resource also uses a few items that come with your framework or inventory, not with this resource. They already have their own icons. Make sure they exist on your server, or change the settings that use them.
| Item | What uses it | Where to change it |
|---|---|---|
lockpick | The Lockpick item print makes your server's lockpick item. The Gunsmith Supply sells its blueprint | Config.ItemPrints.lockpick in shared/config/items.lua |
plastic, rubber (QBCore, Qbox), fabric (ESX) | Junk the filament recycler shreds (see Recycler Junk Items) | Recycler > What it takes in /weaponprinting settings |
weapon_pistol, weapon_smg ... | The weapons the bench makes are your inventory's normal weapon items | Config.Assembly in shared/config/assembly.lua |
black_money, markedbills ... | Only used if you switch a payment to an item (Pay with: An item). By default everything is paid in cash | Payment and Buyers > Pays with in /weaponprinting settings |
Copy the Item Icons
Copy every .png file from oxide-weaponprinting/itemimages/ into your inventory's image folder:
- qb-inventory (QBCore):
qb-inventory/html/images/ - ox_inventory (Qbox and ESX):
ox_inventory/web/images/
The file names already match the item names, so there's nothing to rename. Updating from 1.x? Copy the whole folder again — it now has 63 icons, 13 of them new, and 3d_printer.png, weaponbench.png and printer_filament.png changed in 2.0.
QBCore Item Registration
This is for QBCore servers using qb-inventory, QBCore's default inventory.
- Open
qb-core/shared/items.luain a text editor (Notepad++, VS Code or similar) - Scroll to the end of the item list. Paste the block below above the file's final closing brace
} - Save the file
- Restart your server (items are only read when the server starts)
-- oxide-weaponprinting: Equipment, filament, USBs and the handbook
['3d_printer'] = { name = '3d_printer', label = '3D Printer', weight = 10000, type = 'item', image = '3d_printer.png', unique = true, useable = true, shouldClose = true, description = 'A portable 3D printer for manufacturing parts' },
['printer_usb'] = { name = 'printer_usb', label = 'Printer USB', weight = 100, type = 'item', image = 'printer_usb.png', unique = true, useable = false, shouldClose = true, description = 'A USB drive containing a 3D printing blueprint' },
['printer_filament'] = { name = 'printer_filament', label = 'Printer Filament', weight = 500, type = 'item', image = 'printer_filament.png', unique = false, useable = false, shouldClose = true, description = 'Filament spool for 3D printers' },
['printer_filament_reinforced'] = { name = 'printer_filament_reinforced', label = 'Reinforced Filament', weight = 500, type = 'item', image = 'printer_filament_reinforced.png', unique = false, useable = false, shouldClose = true, description = 'Fibre-reinforced filament: stronger printed parts' },
['printer_filament_carbon'] = { name = 'printer_filament_carbon', label = 'Carbon Filament', weight = 500, type = 'item', image = 'printer_filament_carbon.png', unique = false, useable = false, shouldClose = true, description = 'Carbon-fibre filament: the strongest printed parts' },
['printer_usb_once'] = { name = 'printer_usb_once', label = 'One-Time Printer USB', weight = 100, type = 'item', image = 'printer_usb_once.png', unique = true, useable = false, shouldClose = true, description = 'Loads its blueprint for one visit to a printer, then it is used up' },
['weaponbench'] = { name = 'weaponbench', label = 'Weapon Bench', weight = 15000, type = 'item', image = 'weaponbench.png', unique = false, useable = true, shouldClose = true, description = 'A portable workbench for assembling weapon parts' },
['placeable_table'] = { name = 'placeable_table', label = 'Table', weight = 8000, type = 'item', image = 'placeable_table.png', unique = false, useable = true, shouldClose = true, description = 'A placeable table' },
['printer_manual'] = { name = 'printer_manual', label = "The Ghost Gunner's Handbook", weight = 500, type = 'item', image = 'printer_manual.png', unique = false, useable = true, shouldClose = true, description = 'An in-game guide to 3D weapon printing' },
-- oxide-weaponprinting: Printed weapon parts
['3d_printed_pistol_slide'] = { name = '3d_printed_pistol_slide', label = 'Printed Pistol Slide', weight = 300, type = 'item', image = '3d_printed_pistol_slide.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed pistol slide' },
['3d_printed_pistol_grip'] = { name = '3d_printed_pistol_grip', label = 'Printed Pistol Grip', weight = 400, type = 'item', image = '3d_printed_pistol_grip.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed pistol grip and frame' },
['3d_printed_pistol_clip'] = { name = '3d_printed_pistol_clip', label = 'Printed Pistol Magazine', weight = 200, type = 'item', image = '3d_printed_pistol_clip.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed pistol magazine' },
['3d_printed_pistol_compact_frame'] = { name = '3d_printed_pistol_compact_frame', label = 'Printed Compact Frame', weight = 200, type = 'item', image = '3d_printed_pistol_compact_frame.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed compact pistol frame' },
['3d_printed_revolver_frame'] = { name = '3d_printed_revolver_frame', label = 'Printed Revolver Frame', weight = 300, type = 'item', image = '3d_printed_revolver_frame.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed revolver frame' },
['3d_printed_revolver_receiver'] = { name = '3d_printed_revolver_receiver', label = 'Printed Revolver Receiver', weight = 300, type = 'item', image = '3d_printed_revolver_receiver.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed revolver receiver' },
['3d_printed_trigger_group'] = { name = '3d_printed_trigger_group', label = 'Printed Trigger Group', weight = 100, type = 'item', image = '3d_printed_trigger_group.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed trigger assembly' },
['3d_printed_smg_barrel'] = { name = '3d_printed_smg_barrel', label = 'Printed SMG Barrel', weight = 200, type = 'item', image = '3d_printed_smg_barrel.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed SMG barrel' },
['3d_printed_smg_receiver'] = { name = '3d_printed_smg_receiver', label = 'Printed SMG Receiver', weight = 300, type = 'item', image = '3d_printed_smg_receiver.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed SMG receiver' },
['3d_printed_smg_mag'] = { name = '3d_printed_smg_mag', label = 'Printed SMG Magazine', weight = 150, type = 'item', image = '3d_printed_smg_mag.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed SMG magazine' },
['3d_printed_compact_barrel'] = { name = '3d_printed_compact_barrel', label = 'Printed Compact Barrel', weight = 150, type = 'item', image = '3d_printed_compact_barrel.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed compact barrel' },
['3d_printed_folding_stock'] = { name = '3d_printed_folding_stock', label = 'Printed Folding Stock', weight = 250, type = 'item', image = '3d_printed_folding_stock.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed folding stock' },
['3d_printed_rifle_barrel'] = { name = '3d_printed_rifle_barrel', label = 'Printed Rifle Barrel', weight = 400, type = 'item', image = '3d_printed_rifle_barrel.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed rifle barrel' },
['3d_printed_rifle_upper'] = { name = '3d_printed_rifle_upper', label = 'Printed Rifle Upper', weight = 300, type = 'item', image = '3d_printed_rifle_upper.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed rifle upper receiver' },
['3d_printed_rifle_lower'] = { name = '3d_printed_rifle_lower', label = 'Printed Rifle Lower', weight = 300, type = 'item', image = '3d_printed_rifle_lower.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed rifle lower receiver' },
['3d_printed_rifle_handguard'] = { name = '3d_printed_rifle_handguard', label = 'Printed Rifle Handguard', weight = 200, type = 'item', image = '3d_printed_rifle_handguard.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed rifle handguard' },
['3d_printed_rifle_mag'] = { name = '3d_printed_rifle_mag', label = 'Printed Rifle Magazine', weight = 200, type = 'item', image = '3d_printed_rifle_mag.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed rifle magazine' },
['3d_printed_rifle_stock'] = { name = '3d_printed_rifle_stock', label = 'Printed Rifle Stock', weight = 300, type = 'item', image = '3d_printed_rifle_stock.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed rifle stock' },
['3d_printed_bullpup_chassis'] = { name = '3d_printed_bullpup_chassis', label = 'Printed Bullpup Chassis', weight = 500, type = 'item', image = '3d_printed_bullpup_chassis.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed bullpup chassis' },
['3d_printed_shotgun_barrel'] = { name = '3d_printed_shotgun_barrel', label = 'Printed Shotgun Barrel', weight = 500, type = 'item', image = '3d_printed_shotgun_barrel.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed shotgun barrel' },
['3d_printed_shotgun_receiver'] = { name = '3d_printed_shotgun_receiver', label = 'Printed Shotgun Receiver', weight = 400, type = 'item', image = '3d_printed_shotgun_receiver.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed shotgun receiver' },
['3d_printed_shotgun_stock'] = { name = '3d_printed_shotgun_stock', label = 'Printed Shotgun Stock', weight = 300, type = 'item', image = '3d_printed_shotgun_stock.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed shotgun stock' },
['3d_printed_pump_handle'] = { name = '3d_printed_pump_handle', label = 'Printed Pump Handle', weight = 150, type = 'item', image = '3d_printed_pump_handle.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed pump action handle' },
['3d_printed_double_barrel_set'] = { name = '3d_printed_double_barrel_set', label = 'Printed Double Barrel Set', weight = 600, type = 'item', image = '3d_printed_double_barrel_set.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed double barrel assembly' },
['3d_printed_sniper_barrel'] = { name = '3d_printed_sniper_barrel', label = 'Printed Sniper Barrel', weight = 600, type = 'item', image = '3d_printed_sniper_barrel.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed sniper barrel' },
['3d_printed_sniper_receiver'] = { name = '3d_printed_sniper_receiver', label = 'Printed Sniper Receiver', weight = 400, type = 'item', image = '3d_printed_sniper_receiver.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed sniper receiver' },
['3d_printed_sniper_mag'] = { name = '3d_printed_sniper_mag', label = 'Printed Sniper Magazine', weight = 200, type = 'item', image = '3d_printed_sniper_mag.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed sniper magazine' },
['3d_printed_sniper_stock'] = { name = '3d_printed_sniper_stock', label = 'Printed Sniper Stock', weight = 400, type = 'item', image = '3d_printed_sniper_stock.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed sniper stock' },
['3d_printed_long_scope'] = { name = '3d_printed_long_scope', label = 'Printed Long Scope', weight = 300, type = 'item', image = '3d_printed_long_scope.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed long range scope' },
['3d_printed_drum_mag'] = { name = '3d_printed_drum_mag', label = 'Printed Drum Magazine', weight = 400, type = 'item', image = '3d_printed_drum_mag.png', unique = true, useable = false, shouldClose = true, description = 'A 3D printed drum magazine' },
-- oxide-weaponprinting: Printer upgrades
['printer_nozzle_mk1'] = { name = 'printer_nozzle_mk1', label = 'Nozzle Mk I', weight = 200, type = 'item', image = 'printer_nozzle_mk1.png', unique = false, useable = false, shouldClose = true, description = 'Basic printer nozzle upgrade' },
['printer_nozzle_mk2'] = { name = 'printer_nozzle_mk2', label = 'Nozzle Mk II', weight = 200, type = 'item', image = 'printer_nozzle_mk2.png', unique = false, useable = false, shouldClose = true, description = 'Advanced printer nozzle upgrade' },
['printer_nozzle_mk3'] = { name = 'printer_nozzle_mk3', label = 'Nozzle Mk III', weight = 200, type = 'item', image = 'printer_nozzle_mk3.png', unique = false, useable = false, shouldClose = true, description = 'Precision printer nozzle upgrade' },
['printer_storage_mk1'] = { name = 'printer_storage_mk1', label = 'Storage Drive Mk I', weight = 100, type = 'item', image = 'printer_storage_mk1.png', unique = false, useable = false, shouldClose = true, description = 'Basic storage expansion' },
['printer_storage_mk2'] = { name = 'printer_storage_mk2', label = 'Storage Drive Mk II', weight = 100, type = 'item', image = 'printer_storage_mk2.png', unique = false, useable = false, shouldClose = true, description = 'Advanced storage expansion' },
['printer_storage_mk3'] = { name = 'printer_storage_mk3', label = 'Storage Drive Mk III', weight = 100, type = 'item', image = 'printer_storage_mk3.png', unique = false, useable = false, shouldClose = true, description = 'High-capacity storage expansion' },
['printer_cooling_mk1'] = { name = 'printer_cooling_mk1', label = 'Cooling Fan Mk I', weight = 300, type = 'item', image = 'printer_cooling_mk1.png', unique = false, useable = false, shouldClose = true, description = 'Basic cooling system' },
['printer_cooling_mk2'] = { name = 'printer_cooling_mk2', label = 'Cooling Fan Mk II', weight = 300, type = 'item', image = 'printer_cooling_mk2.png', unique = false, useable = false, shouldClose = true, description = 'Advanced cooling system' },
['printer_cooling_mk3'] = { name = 'printer_cooling_mk3', label = 'Cooling Fan Mk III', weight = 300, type = 'item', image = 'printer_cooling_mk3.png', unique = false, useable = false, shouldClose = true, description = 'Industrial cooling system' },
['printer_buildplate_mk1'] = { name = 'printer_buildplate_mk1', label = 'Build Plate Mk I', weight = 500, type = 'item', image = 'printer_buildplate_mk1.png', unique = false, useable = false, shouldClose = true, description = 'Improved build plate' },
['printer_buildplate_mk2'] = { name = 'printer_buildplate_mk2', label = 'Build Plate Mk II', weight = 500, type = 'item', image = 'printer_buildplate_mk2.png', unique = false, useable = false, shouldClose = true, description = 'Advanced build plate' },
['printer_buildplate_mk3'] = { name = 'printer_buildplate_mk3', label = 'Build Plate Mk III', weight = 500, type = 'item', image = 'printer_buildplate_mk3.png', unique = false, useable = false, shouldClose = true, description = 'Precision build plate' },
['printer_psu_mk1'] = { name = 'printer_psu_mk1', label = 'Power Supply Mk I', weight = 800, type = 'item', image = 'printer_psu_mk1.png', unique = false, useable = false, shouldClose = true, description = 'Upgraded power supply unit' },
['printer_psu_mk2'] = { name = 'printer_psu_mk2', label = 'Power Supply Mk II', weight = 800, type = 'item', image = 'printer_psu_mk2.png', unique = false, useable = false, shouldClose = true, description = 'High-output power supply unit' },
-- oxide-weaponprinting: Bench items: attachments, kits and the recycler
['printed_suppressor'] = { name = 'printed_suppressor', label = 'Printed Suppressor', weight = 400, type = 'item', image = 'printed_suppressor.png', unique = false, useable = false, shouldClose = true, description = 'A 3D printed suppressor, fitted at a weapon bench' },
['printed_extended_mag'] = { name = 'printed_extended_mag', label = 'Printed Extended Magazine', weight = 300, type = 'item', image = 'printed_extended_mag.png', unique = false, useable = false, shouldClose = true, description = 'A 3D printed extended magazine, fitted at a weapon bench' },
['printed_drum_mag'] = { name = 'printed_drum_mag', label = 'Printed Drum Magazine', weight = 600, type = 'item', image = 'printed_drum_mag.png', unique = false, useable = false, shouldClose = true, description = 'A 3D printed drum magazine, fitted at a weapon bench' },
['printed_flashlight'] = { name = 'printed_flashlight', label = 'Printed Flashlight', weight = 200, type = 'item', image = 'printed_flashlight.png', unique = false, useable = false, shouldClose = true, description = 'A 3D printed weapon flashlight, fitted at a weapon bench' },
['printed_scope'] = { name = 'printed_scope', label = 'Printed Scope', weight = 400, type = 'item', image = 'printed_scope.png', unique = false, useable = false, shouldClose = true, description = 'A 3D printed scope, fitted at a weapon bench' },
['printed_grip'] = { name = 'printed_grip', label = 'Printed Grip', weight = 200, type = 'item', image = 'printed_grip.png', unique = false, useable = false, shouldClose = true, description = 'A 3D printed foregrip, fitted at a weapon bench' },
['printed_finish_kit'] = { name = 'printed_finish_kit', label = 'Finish Kit', weight = 200, type = 'item', image = 'printed_finish_kit.png', unique = true, useable = false, shouldClose = true, description = 'Applies a tint or livery to a 3D printed weapon at a weapon bench' },
['printed_repair_kit'] = { name = 'printed_repair_kit', label = 'Weapon Repair Kit', weight = 500, type = 'item', image = 'printed_repair_kit.png', unique = false, useable = true, shouldClose = true, description = 'Restores durability on a 3D printed weapon' },
['printed_cleaning_kit'] = { name = 'printed_cleaning_kit', label = 'Weapon Cleaning Kit', weight = 300, type = 'item', image = 'printed_cleaning_kit.png', unique = false, useable = true, shouldClose = true, description = 'Cleans a 3D printed weapon so it jams less' },
['filament_recycler'] = { name = 'filament_recycler', label = 'Filament Recycler', weight = 12000, type = 'item', image = 'filament_recycler.png', unique = false, useable = true, shouldClose = true, description = 'A placeable shredder that turns junk into filament' },Keep the unique = true settings exactly as they are. See Why Some Items Must Not Stack.
Qbox and ESX Item Registration (ox_inventory)
Qbox and ESX servers register items in ox_inventory. Every item is ready to paste in itemimages/ox_inventory_items.lua, inside this resource:
- Open
itemimages/ox_inventory_items.luaand copy everything between itsreturn {and its final} - Open
ox_inventory/data/items.lua - Paste the entries above that file's final closing brace
} - Save the file and restart your server
If your items.lua already has an item with the same name, keep only one copy. Updating from 1.x? Paste just the 13 new entries listed in Upgrading from 1.x, plus weaponbench if you are coming from 1.1.3 or older.
printer_usb,printer_usb_onceandprinted_finish_kitare already set tostack = false. Leave them that way- The parts and the printer can stay
stack = true: ox_inventory only stacks items whose data matches, so parts of different quality stay apart on their own - Don't add a
consumevalue to the usable items (3d_printer,weaponbench,placeable_table,printer_manual,printed_repair_kit,printed_cleaning_kit,filament_recycler). The entries in the file have none, and they should stay that way so using the item reaches this resource
ESX
Paste the items into ox_inventory as above, not into an ESX items table in your database. See the ESX note under Supported Frameworks.
Why Some Items Must Not Stack
Some items remember something about that one copy (this extra information is called "metadata"):
| Item | What it remembers |
|---|---|
printer_usb, printer_usb_once | The blueprint on that USB (blueprint) |
Every printed part (3d_printed_*) | Its quality (0-100) and the filament tier it was printed with |
3d_printer | The upgrades of a printer that was picked up |
printed_finish_kit | The finish it applies (finish) |
| Printed weapons | Quality, grade, durability, attachments, finish, maker's mark and the "3D Printed" tag |
qb-inventory merges items that aren't unique into one stack, and a merged stack keeps only the first copy's information: a part's quality, a USB's blueprint, a finish kit's finish or a printer's upgrades would be lost. That's why these items are unique = true in the QBCore snippet. Weapons are unique in every inventory already.
Printed attachments and the repair and cleaning kits also carry a quality note in their description (the suppressor and drum magazine, put together at the bench, carry none), but nothing reads it, so they stay stackable. If they stack, the note just shows the first copy's numbers — the item works the same.
Weapon Tooltips in the Inventory
Printed parts carry a short description of their own, for example Quality 64 · Basic Filament.
Assembled weapons carry a ready-made description, for example:
3D Printed - Quality (72%) | Durability 64/90 | Suppressor, Scope | Gold finish | Made by GhostworksDurability shows only while durability tracking is on, and the attachments, finish and maker's mark only when the weapon has them. Inventories that show per-item descriptions (ox_inventory does this out of the box) display it automatically — no setup needed. Weapons also carry a display table with the same values (type, quality, durability, attachments, finish, maker) for inventories you have set up to show it.
Recycler Junk Items
The filament recycler shreds junk items into basic filament. Which junk it takes is set under Recycler > What it takes in /weaponprinting settings (Config.Recycler.inputs). The defaults are stock items that come with the frameworks:
| Framework | Default junk the recycler takes |
|---|---|
| QBCore | plastic, rubber |
| Qbox | plastic, rubber |
| ESX | fabric |
All three are in the list on every framework. A junk item your inventory doesn't have just shows in the recycler with none to feed, so it does no harm. To use your own junk, add a row for each item: pick the Item, then set Items (how many are shredded) and Filament made (how much basic filament they make). The defaults are 4 plastic, 5 rubber or 5 fabric for 1 filament.
Every item you add must exist in your inventory.
Framework Setup
There is no framework-specific setup beyond registering the items above. The o-link bridge detects whether you run QBCore, Qbox or ESX by itself and handles all the framework work for you: usable items, inventory changes, money, saving progression on the character, notifications, and interaction options.
- Admins: your existing framework admins can use the admin commands with no extra setup. See Admin Guide > Permissions
- Police: players with the
policejob (on duty) can seize equipment, and print alerts go to that job. If your police job has another name, add it under Police Seizure > Jobs and Dispatch > Alert jobs in/weaponprinting settings - Supplier and buyers: the Gunsmith Supply (off by default) and the two weapon buyers stand at spots you can move under Store and Buyers in
/weaponprinting settings. Every item the store sells must be registered in your inventory, like the items above
Verification
-
Start your server and look in the server console (the black window, or your host's live console) for a line like this:
[INFO][oxide-weaponprinting][lifecycle] resource initializedIt also lists how many printers, benches and tables were loaded from the database. A fresh install loads 0 of each — that's normal.
-
Get a starter kit. Join the server as an admin and type
/weaponprinting kitin chat (see Admin Guide). You should receive a 3D printer, a weapon bench, a table, a filament recycler, the handbook, a spool of basic filament, and the blueprint USBs and parts your level opens. -
Place the printer. Use the 3D Printer item from your inventory. A see-through copy of the printer appears where you're looking. Aim at the floor: its outline turns green. Press E to place it.
-
Open the printer. Walk up to the printer and choose Use Printer. The camera moves to the printer and its menu opens.
-
Print a part. In the menu, load the filament (Filament section), load the USB (Blueprint section), then pick a part in Parts and press ENTER. The calibration minigame starts. Finish it, and the part is queued. Leave the menu: a card floats over the printer with the layer and the time left.
-
Check the bench. Place the weapon bench from the kit the same way, and choose Use Workbench. The bench menu should open. The kit gave you a full set of pistol parts; type
/weaponprinting giveparts pistolfor another, and try an assembly.
If any step doesn't work, see Troubleshooting.
Selling the Items in Your Own Shops
With the Gunsmith Supply off (the default), players need another way to get the gear. Add these items to a shop your server already runs, at prices that suit your economy:
| What | Item names |
|---|---|
| To start | 3d_printer, weaponbench, printer_filament, printer_manual |
| Better filament | printer_filament_reinforced, printer_filament_carbon |
| More equipment | placeable_table, filament_recycler |
| Printer upgrades | printer_nozzle_mk1 to mk3, printer_storage_mk1 to mk3, printer_cooling_mk1 to mk3, printer_buildplate_mk1 to mk3, printer_psu_mk1, printer_psu_mk2 |
| Blueprint USBs | printer_usb and printer_usb_once, each with the blueprint in its metadata (see Adding USBs to a Shop) |
Attachments, repair and cleaning kits and finish kits are printed by players, so they don't need to be sold. Your shop doesn't apply the printing levels the Gunsmith Supply uses (an upgrade or a USB opens at its level there). Players can still only fit an upgrade or print a blueprint at the level it needs, wherever they bought it.
Distributing Blueprint USBs to Players
Out of the box, players get blueprint USBs from:
- The Gunsmith Supply, if you turn it on (it is off by default): a few starter blueprints (SNS Pistol and Pistol one-time USBs, permanent SNS Pistol, Lockpick, Cleaning Kit and Repair Kit USBs)
- The dark web in the Gunsmith app, on servers running Oxide Phone or Oxide Tablet. It is off by default; turn it on under Economy > Dark Web in
/weaponprinting settings - Milestone rewards, if you give a milestone a Blueprint USB reward under Milestones in
/weaponprinting settings(none of the default milestones give one)
See Features > Blueprint Sources. Beyond that, you choose how USBs enter your economy: shops, NPC dealers, crafting, loot drops, heists, black market dealers, or any other system.
From another server resource, the simplest way is the export, which builds the metadata for you:
exports['oxide-weaponprinting']:GiveBlueprintUsb(source, 'pistol') -- permanent USB
exports['oxide-weaponprinting']:GiveBlueprintUsb(source, 'pistol', true) -- one-time USBSee API Reference for the export and the matching server event.
USB Metadata Format
A printer_usb or printer_usb_once item must carry a blueprint value in its metadata (the extra information attached to that specific item) matching a key from Config.Blueprints in shared/config/blueprints.lua, or a key from Config.ItemPrints for item prints, such as lockpick. A USB without this cannot be loaded into a printer. Both kinds of USB use exactly the same metadata — only the item name differs (see Features > Permanent and One-Time USBs).
-- The metadata structure for a blueprint USB (permanent or one-time):
{ blueprint = 'pistol' } -- value must match a Config.Blueprints or Config.ItemPrints keyValid Blueprint Keys
These are the keys you can use in the blueprint metadata field. Each one is gated behind a printing level (see Features > Progression).
Weapon blueprints (Config.Blueprints):
| Level | Blueprint Keys |
|---|---|
| 1 | sns_pistol, vintage_pistol, flare_gun, pistol, sns_pistol_mk2, ceramic_pistol, double_action_revolver, marksman_pistol, machine_pistol |
| 2 | micro_smg, mini_smg, smg, smg_mk2, combat_pdw, assault_smg, pump_shotgun, sawnoff_shotgun, db_shotgun, auto_shotgun |
| 3 | combat_pistol, ap_pistol, pistol_mk2, heavy_pistol |
| 4 | assault_rifle, carbine_rifle, special_carbine, compact_rifle, bullpup_rifle, pump_shotgun_mk2, bullpup_shotgun, assault_shotgun |
| 5 | assault_rifle_mk2, carbine_rifle_mk2, special_carbine_mk2, bullpup_rifle_mk2, advanced_rifle, military_rifle, heavy_rifle, heavy_shotgun |
| 6 | pistol_50, heavy_revolver, heavy_revolver_mk2, navy_revolver |
| 7 | sniper_rifle, marksman_rifle, marksman_rifle_mk2 |
| 8 | mg, combat_mg, combat_mg_mk2, heavy_sniper, heavy_sniper_mk2 |
| 9 | perico_pistol |
Item blueprints (Config.ItemPrints):
| Level | Blueprint Keys |
|---|---|
| 1 | lockpick, cleaning_kit |
| 2 | extended_mag, flashlight, repair_kit, and the tint finish kits: finish_black, finish_green, finish_gold, finish_pink, finish_army, finish_lspd, finish_orange, finish_platinum |
| 3 | suppressor, grip |
| 4 | scope |
| 5 | drum_mag, and the Mk II livery finish kits: finish_digital_camo, finish_brushstroke, finish_woodland, finish_skull, finish_sessanta_nove, finish_perseus, finish_leopard, finish_zebra, finish_geometric, finish_boom, finish_patriotic |
Integration Examples
Adding USBs to a Shop
Add printer_usb (or printer_usb_once) entries to your shop's config with the blueprint in the metadata. The exact layout depends on your shop resource:
-- Example shop item entries (syntax varies by shop resource)
{
name = 'printer_usb',
price = 5000,
metadata = { blueprint = 'pistol' },
},
{
name = 'printer_usb_once',
price = 1500,
metadata = { blueprint = 'smg' },
},Giving a USB via Server Script
-- Recommended: the export works on every framework and fires the blueprintGiven event
exports['oxide-weaponprinting']:GiveBlueprintUsb(source, 'assault_rifle')
-- QBCore
local Player = QBCore.Functions.GetPlayer(source)
Player.Functions.AddItem('printer_usb', 1, nil, { blueprint = 'assault_rifle' })
-- Qbox / ESX (ox_inventory)
exports.ox_inventory:AddItem(source, 'printer_usb', 1, { blueprint = 'assault_rifle' })
-- A one-time USB takes the same metadata
exports.ox_inventory:AddItem(source, 'printer_usb_once', 1, { blueprint = 'assault_rifle' })Adding USBs to a Loot Table or Crafting Recipe
Use whatever loot or crafting system your server runs — the only requirement is that the resulting USB item carries the correct metadata. For example, if your crafting system supports metadata on output items:
-- Example crafting recipe (syntax varies by crafting resource)
{
name = 'printer_usb',
amount = 1,
metadata = { blueprint = 'pistol' },
ingredients = {
{ name = 'electronic_parts', amount = 3 },
{ name = 'usb_stick', amount = 1 },
},
}Important Notes
- Each USB is a unique, non-stackable item because each one can hold a different blueprint
- The
blueprintvalue is case-sensitive and must exactly match a key inConfig.BlueprintsorConfig.ItemPrints - A low-level player can load a high-level USB into a printer (the blueprint stores fine) — but they can't print from it until they reach the required level
- Loading a permanent USB has a malfunction chance (see Features > USB Malfunction) — the USB is used up when loaded and can be destroyed by a malfunction. One-time USBs never malfunction, but they're used up the moment they're loaded
- For testing, the admin commands
/weaponprinting giveusb <blueprint> [count] [id]and/weaponprinting giveusbonce <blueprint> [count] [id]give permanent and one-time USBs (see Admin Guide)
Filament
All three filament items (printer_filament, printer_filament_reinforced, printer_filament_carbon) are ordinary stackable items with no metadata. The Gunsmith Supply sells all three, and the filament recycler makes basic filament from junk. Add them to your own shops, loot or crafting the same way as any other item.