Admin Tools
Admin commands for testing and managing the Oxide 3D Weapon Printing system including kit commands, blueprint distribution, and progression management.
Commands and tools for testing and managing oxide-weaponprinting.
Every admin command is a subcommand of /weaponprinting. Typing /weaponprinting on its own shows a short usage line in game; in the server console it lists every subcommand with what it does.
Commands Overview
| Command | What it does | Who can use it |
|---|---|---|
/weaponprinting settings | Opens the in-game settings editor | Admins, in game |
/weaponprinting kit [id] | Gives a full test kit for the player's level | Admins (also works from the server console) |
/weaponprinting give <item> [count] [id] | Gives a printer, bench, recycler, table, handbook, repair or cleaning kit, or a printed attachment | Admins (also works from the server console) |
/weaponprinting givefilament <tier> [count] [id] | Gives filament of one tier | Admins (also works from the server console) |
/weaponprinting giveusb <blueprint> [count] [id] | Gives permanent blueprint USBs | Admins (also works from the server console) |
/weaponprinting giveusbonce <blueprint> [count] [id] | Gives one-time blueprint USBs | Admins (also works from the server console) |
/weaponprinting giveparts <recipe> [count] [id] | Gives every printed part a weapon or item recipe needs | Admins (also works from the server console) |
/weaponprinting givefinish <finish> [count] [id] | Gives finish kits | Admins (also works from the server console) |
/weaponprinting giveupgrade <category> <tier> [count] [id] | Gives printer upgrade items | Admins (also works from the server console) |
/weaponprinting place <printer|bench> | Places a printer or bench in front of you | Admins, in game |
/weaponprinting setlevel <id> <level> | Sets a player's printing level | Admins (also works from the server console) |
/weaponprinting setxp <amount> [id] | Sets a player's printing XP; the level follows, up or down | Admins (also works from the server console) |
/weaponprinting reset <id> | Starts a player's progression over at level 1 | Admins (also works from the server console) |
/weaponprinting clearmark <id> | Removes a player's maker's mark | Admins (also works from the server console) |
/weaponprinting info [id] | Shows a player's level, XP and totals | Admins (also works from the server console) |
/weaponprinting stats | Opens the player's own Gunsmith profile | Everyone, in game |
How the Arguments Work
<...>is required,[...]is optional.idis the player's server ID. Leave it out and the command acts on you. The player must be online with a character loaded.countis how many to give, from1to100. It defaults to1(to a full spool for filament). To give to another player while keeping the default, write the count anyway:/weaponprinting give printer 1 7.- Keys (
item,tier,blueprint,recipe,finish,category) are the names in your config files, typed as they appear there. Type one the command doesn't know and it answers with the list of keys it does know. - When you give something to another player, both of you get a message.
- From the server console (txAdmin or the terminal), type the command without the slash and always give an
id, for exampleweaponprinting give printer 1 7. The console needs no permission.settingsandplaceact on your own character in the world, so they only work in game; the console says so.
The Settings Editor (/weaponprinting settings)
Type /weaponprinting settings in chat while playing to open the settings editor. Only admins can open it. Run from the server console, it prints that it has to be run in game.
- Basic and Advanced tabs - Basic holds the settings most servers change; Advanced holds the rest. The search box finds a setting by name in either tab.
- Saving - Change as many settings as you like, then press Save changes. They apply at once for everyone, with no restart, and are kept in your server's database.
- Reset - The arrow on a card puts that setting back to its default from the config file and saves it at once.
- Placed in the world - Suppliers, buyers and dispatch zone centres are placed in the world, and safe zones drawn there, from inside the editor.
- One screen at a time - With another weapon printing screen open (a printer or bench menu, the store), the editor refuses with "Close the open screen first."
What is in the editor, what stays in the config files, and how saved settings replace the file: see Configuration > The in-game settings menu.
Test Kit
/weaponprinting kit [id]
Gives everything a full run from the printer to the bench takes, for the level the player is at:
- 1x 3D printer, 1x weapon bench and 1x placeable table
- 1x filament recycler (when
Config.Recycler.enabledis on) - 1x The Ghost Gunner's Handbook
- A full spool of basic filament (
Config.Filament.spoolCapacity, 20 by default, of the item inConfig.FilamentItem) - A permanent blueprint USB for every weapon blueprint the player's level opens
- The parts for every weapon recipe the player's level opens
/weaponprinting kit -- a kit for yourself, at your level
/weaponprinting kit 7 -- a kit for player 7, at their level
weaponprinting kit 7 -- the same, from the server consoleAt high levels this is a lot of items, and every USB takes its own slot. Make sure the inventory has room, or set a lower level first with /weaponprinting setlevel. If some items don't fit, the command says how many were not given.
Giving Items
/weaponprinting give <item> [count] [id]
Gives one of the resource's own items by a short name:
item | What it gives |
|---|---|
printer | The 3D printer (Config.PrinterItem) |
bench | The weapon bench (Config.BenchItem) |
recycler | The filament recycler (Config.Recycler.item), while the recycler is on |
table | The placeable table (Config.TableItem) |
handbook | The Ghost Gunner's Handbook (printer_manual) |
repair_kit | A repair kit (Config.RepairKit.item), while repair kits are on |
cleaning_kit | A cleaning kit (Config.CleaningKit.item), while cleaning kits are on |
suppressor, extended_mag, drum_mag, flashlight, scope, grip | The finished printed attachment, ready to fit at the bench (every key in Config.Attachments) |
/weaponprinting give printer -- a printer for yourself
/weaponprinting give table 3 -- 3 tables for yourself
/weaponprinting give suppressor 1 7 -- a printed suppressor for player 7
/weaponprinting give repair_kit 5 -- 5 repair kits for yourselfPrinted items made this way carry no print quality.
/weaponprinting givefilament <tier> [count] [id]
Gives filament of one tier from Config.Filament.tiers: basic, reinforced or carbon by default. Without a count it gives a full spool (Config.Filament.spoolCapacity, 20 by default).
/weaponprinting givefilament carbon -- a full spool of carbon filament
/weaponprinting givefilament basic 5 7 -- 5 basic filament for player 7/weaponprinting giveusb <blueprint> [count] [id]
Gives permanent blueprint USBs (Config.UsbItem). The key is any weapon blueprint (Config.Blueprints) or item print (Config.ItemPrints: lockpick, the attachments such as suppressor, the kits repair_kit and cleaning_kit, and the finishes such as finish_gold).
/weaponprinting giveusb pistol -- a pistol USB for yourself
/weaponprinting giveusb assault_rifle 2 7 -- 2 assault rifle USBs for player 7
/weaponprinting giveusb finish_gold -- a gold finish kit blueprint USBEvery USB fires the oxide-weaponprinting:server:blueprintGiven event with 'admin' as where it came from (see API Reference).
/weaponprinting giveusbonce <blueprint> [count] [id]
The same as giveusb, but gives one-time USBs (Config.UsbOnceItem): each loads its blueprint for one visit to the printer and is used up.
/weaponprinting giveusbonce pistol -- a one-time pistol USB for yourself/weaponprinting giveparts <recipe> [count] [id]
Gives every printed part one recipe needs, so you can test the bench without printing. The key is any weapon recipe (Config.Assembly: pistol, ap_pistol, assault_rifle, ...) or an item print that is built from parts (the suppressor and the drum_mag). count is how many full sets.
/weaponprinting giveparts pistol -- Pistol Slide, Pistol Grip, Magazine
/weaponprinting giveparts assault_rifle -- Rifle Upper, Lower, Barrel, Magazine, Stock
/weaponprinting giveparts suppressor 2 7 -- two sets of suppressor parts for player 7The parts carry no quality of their own, so the bench counts them as quality 50 (Config.Quality.legacyPart) on the first filament tier.
/weaponprinting givefinish <finish> [count] [id]
Gives finish kits (Config.FinishKitItem) for one finish from Config.Finishes, the same item a printer makes from a finish_<id> blueprint. The tints are black, green, gold, pink, army, lspd, orange and platinum; the Mk II liveries are digital_camo, brushstroke, woodland, skull, sessanta_nove, perseus, leopard, zebra, geometric, boom and patriotic. Liveries fit Mk II weapons only.
/weaponprinting givefinish gold -- a gold finish kit for yourself
/weaponprinting givefinish digital_camo 1 7 -- a digital camo kit for player 7/weaponprinting giveupgrade <category> <tier> [count] [id]
Gives printer upgrade items from Config.Upgrades. The categories are nozzle, storage, cooling and buildplate (tiers 1 to 3) and psu (tiers 1 and 2). Either may be all.
/weaponprinting giveupgrade nozzle 2 -- Nozzle Mk II
/weaponprinting giveupgrade storage all -- every Storage Drive tier
/weaponprinting giveupgrade all 3 -- the Mk III of every category that has one
/weaponprinting giveupgrade all all -- one of every upgrade item
/weaponprinting giveupgrade psu 1 1 7 -- a Power Supply Mk I for player 7Installing them still needs the player level and the PSU each tier asks for (see Features > Printer Upgrades).
Placing a Printer or Bench
/weaponprinting place <printer|bench>
Gives you a new printer or bench item and places it on the ground about a metre and a half in front of you, its front facing you. It goes through the same placement as using the item, so every placement rule still applies: not inside Config.SafeZones, a printer at least Config.PrinterSpacing from another, and the per-player limits in Config.MaxPerPlayer. You own what you place, and it counts towards your own limit.
/weaponprinting place printer
/weaponprinting place benchIf it can't be placed there (a safe zone, too close to a printer, your limit reached), you get the reason, and the new item stays in your inventory so you can place it by hand. Pick it up again like any other printer or bench. This command works in game only.
Progression
/weaponprinting setlevel <id> <level>
Sets a player's printing level, and their XP to that level's start. The level can go up or down; going up shows the player the level-up banner.
id— the player's server IDlevel— 1 to the highest level inConfig.Progression.levels(10 by default)
/weaponprinting setlevel 7 1 -- player 7 to level 1 (0 XP)
/weaponprinting setlevel 7 5 -- player 7 to level 5 (2800 XP)
weaponprinting setlevel 7 10 -- player 7 to level 10 (35000 XP), from the consoleBoth are required. Both you and the player get a confirmation message. Setting a level doesn't pay mastery, goals or milestones.
/weaponprinting setxp <amount> [id]
Sets a player's total printing XP, and their level to whatever that XP reaches, up or down.
amount— the total XP,0to1000000id— the player's server ID; leave it out to set your own
/weaponprinting setxp 5000 -- yourself to 5000 XP (level 6)
/weaponprinting setxp 0 7 -- player 7 to 0 XP (level 1)Use it to test a level-up: set the XP just below a level, then print or assemble once.
/weaponprinting reset <id>
Starts a player's progression over, as if they had never printed: level 1, no XP, no lifetime totals, no mastery, goals or milestones, and no maker's mark (the mark is freed for anyone to take). Their placed printers and benches, their items and the blueprints stored on their printers are left alone.
/weaponprinting reset 7The id is required, so you can't reset yourself by leaving it out. A reset can't be undone.
/weaponprinting info [id]
Shows a player's progression as a message: Name: level X | XP current/next | prints N | assembled N. At the highest level the next level reads MAX. Leave out the id to see your own; from the console it prints the line.
Maker's Marks
/weaponprinting clearmark <id>
Removes a player's maker's mark, for a mark that breaks your server's rules. The mark is freed for anyone to take, the player can register a new one at once, and weapons already made keep the old mark.
/weaponprinting clearmark 7 -- in chat
weaponprinting clearmark 7 -- in the server console (no slash)If the player has no mark, the command says so.
Player Command
/weaponprinting stats
Any player can type /weaponprinting stats to open their Gunsmith profile: level, XP, mastery, goals, milestones and maker's mark (see Features > The Gunsmith Profile). It doesn't open while the player is in a printer, bench or recycler scene. Run from the server console, it prints that it has to be run in game. The printer and bench menus' Gunsmith Profile row and the Gunsmith app open the same profile.
Messages Admins Receive
Every online admin gets an on-screen message for these:
| Message | What it means | What to do |
|---|---|---|
[oxide-weaponprinting] model "..." is missing -- it ships in this resource's stream/ folder, so the install is incomplete. | A player's game couldn't load one of the resource's own models | Copy the resource's stream/ folder over again, then restart the resource. See Troubleshooting > A printer, bench or recycler model is missing |
[oxide-weaponprinting] model "..." is not on this game build. Set a replacement in /weaponprinting settings > Compatibility > Model replacements. | A player's game build doesn't have a GTA model the resource uses | Add a row under Compatibility in /weaponprinting settings |
Weapon Printing could not refund character ...: [amount] for [reason]. Pay it by hand. | A purchase (maker's mark or dark web) failed after the money was taken, and giving it back failed too | Give that character the amount by hand |
Permissions
Every /weaponprinting subcommand except stats checks whether the player is a server admin before it does anything. A player without admin access who runs one gets a "You do not have permission to do that." message. /weaponprinting stats needs no permission.
Admin access uses FiveM's built-in permission system (called ACE). Give your admin group the admin permission, then add your admins to that group. In server.cfg:
add_ace group.admin admin allow
add_principal identifier.license:YOUR_LICENSE_HERE group.adminOn QBCore and Qbox, admins from the stock add_ace group.admin command allow line already pass, and on ESX so do players in an ESX admin group, so most servers need no extra setup.
Next Steps
Features
Complete overview of all Oxide 3D Weapon Printing features including printing, calibration, blueprints, upgrades, bench assembly, attachments, durability, progression, buyers, and police.
API Reference
Exports, events, hooks, and callbacks for connecting other resources to Oxide 3D Weapon Printing.