Admin Guide
The /pills command — the live settings editor, the lab kit, setting levels, XP, mastery and master ranks, resetting journals, goals and perk picks, the tray test, the Lab Profile, Machine Test debug mode, police alerts and permissions.
Commands for testing and managing oxide-pills.
Everything runs through one command, /pills, followed by a subcommand. Typing /pills on its own shows the list of subcommands.
Commands Overview
| Command | What it does | Who can use it |
|---|---|---|
/pills stats | Opens the player's own Lab Profile: level, lab journal, line mastery, goals and master ranks | Everyone |
/pills pillid | Opens Pill ID, the brand and imprint lookup | Everyone |
/pills settings | Opens the in-game settings menu | Admins (see Permissions) |
/pills kit | Gives a full pill lab starter kit | Admins |
/pills setlevel [id] [level] | Sets a player's pill level | Admins (also works from the server console) |
/pills setxp [amount] [id] | Sets a player's total pill XP; their level follows, up or down | Admins (also works from the server console) |
/pills resetjournal [id] | Clears a player's lab journal, so first-time XP can be earned again | Admins (also works from the server console) |
/pills setmastery [line] [batches] [id] | Sets a player's batches of one product line; their mastery tier follows | Admins (also works from the server console) |
/pills resetgoals [id] | Clears a player's daily and weekly goals, so new ones are drawn | Admins (also works from the server console) |
/pills setrank [rank] [id] | Sets a player's master rank, by moving their XP to the start of that rank | Admins (also works from the server console) |
/pills respec [id] | Clears a player's master rank perk picks for free, so they can pick again | Admins (also works from the server console) |
/pills traytest [tint] [line] [symbol] | Fills a press tray with one tablet of every defect, to see what each looks like | Admins |
Settings Menu
/pills settings
Opens an in-game editor for the resource's settings: the values stored in the oxide_settings database table (see Configuration). Changes apply live and are saved to the database straight away, with no restart and no file editing.
- Settings are in a sidebar of four categories (Core, Lab, Players, and Advanced) holding 18 sections.
- A Basic / Advanced switch at the top picks which settings you see, and a search box jumps straight to a setting. Some sections (Usage Whitelist, Quality, Dispatch, Gang Activity) only appear once you switch to Advanced.
- Fields you've edited but not saved are marked changed, and Save Changes saves them. Reset to default puts a whole setting back to the value from the
shared/configfiles and saves it straight away. - The placement zones are drawn directly in the world: the menu hides, you place the corners of the area, then the menu comes back. Each zone has a Teleport button to jump to it.
- A few settings live only in the config files. Configuration explains which, and how to change them.
Only admins can open the menu, and every save is checked again on the server, so a non-admin can't change settings even by faking the request. Drawing zones in the world needs an up-to-date o-link (it provides the drawing tool). If yours is out of date, the menu tells you.
Admin Commands
/pills kit
Gives you everything you need to try every station:
- 1x Lab Workbench
- 1x every machine: Crank Press, Blade Grinder, Stand Mixer, Light Box, Die Engraver, Electric Press, Label Printer, Hardness Tester, Capsule Filling Board, Ball Mill, Blister Sealer, Reject Bin, Dust Collector, Drum Tumbler, Pan Coater, Rotary Press
- 1x Mortar & Pestle, 1x Granulating Screen, 1x Punch & Die Set, 1x Dust Mask, 1x Reagent Test Kit, 1x Pressing Manual
- 10x each raw active: Party Powder, Pharma Bottle, Mystery Powder
- 10x each additive: Tablet Filler, Tablet Binder, Die Lubricant, Tablet Dye
- 5x Cleaning Brush, 5x Cleaning Solvent
- 5x Granulating Fluid, 5x Coating Solution
- 100x Empty Capsule
- 10x each packaging: Pill Baggie, Pill Bottle, Blister Sheet
The kit is heavy. With the suggested item weights it comes to about 139 kg, more than a default player inventory holds on QBCore, QBX or ESX. Anything that doesn't fit, or that isn't registered in your inventory, is skipped, and you see "N of M kit items could not be given (inventory full or item not registered)" instead of "Pill lab kit received". Make room first, or give yourself the pieces you need with /giveitem [your server ID] [item name] [amount] (qb-inventory and ox_inventory both have it).
Each workbench holds 2 machines by default, and the kit gives one workbench. To try several benchtop machines at once, give yourself more pill_workbench items, or pack machines up and swap them.
Many stations are level-gated (see Features), so raise your own level with /pills setlevel to try them all.
Run it in game on a test character. From the server console it just tells you to run it in game, because the items go to a player.
/pills setlevel [id] [level]
Sets a player's pill level, and sets their XP to that level's starting amount.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | The player's server ID |
level | number | Yes | 1 to 10 (with the default level table) |
Examples:
/pills setlevel 1 5 -- player 1 to level 5 (electric press, label printer, VELA Blues, AXIA Percs)
/pills setlevel 1 10 -- player 1 to max levelOutput:
- Success: "Set player 1 pill level to 5 (1200 XP)"
- Failure: "Usage: /pills setlevel [id] [level]", "Invalid level. Valid: 1-10", "Player 1 is not online", "Player 1 has no loaded character", or "The progression could not be saved. Check the server console."
The player must be online with a character loaded. The new level applies straight away. When it's higher than their old level, the player sees the level-up banner, the same as when they earn it (see Features). Their master rank follows the new XP too, so setting a ranked player to level 10 takes them back to no rank (their perk picks are kept). To set a rank, use /pills setrank. This command also works from the live server console (txAdmin or terminal), where no permission is needed.
/pills setxp [amount] [id]
Sets a player's total pill XP. Their level follows from your level table, up or down. The change is saved to the database straight away.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | The total XP, a whole number from 0 to 10,000,000 |
id | number | No | The player's server ID. Leave it out to set your own XP. |
Note the order: the amount comes first, then the ID. That's the other way round from /pills setlevel.
Examples:
/pills setxp 0 -- your own XP back to 0 (level 1)
/pills setxp 1200 4 -- player 4 to 1200 XP (level 5 with the default level table)Output:
- Success: "Set PlayerName to 1200 pill XP (level 5)"
- Failure: "Usage: /pills setxp [amount] [id]", "Player 4 is not online", "Player 4 has no loaded character", or "The progression could not be saved. Check the server console."
When the new XP raises the player's level, they see the level-up banner. Lowering it shows them nothing. Their master rank follows the XP as well, and a higher rank shows the rank banner. Only XP, level and rank change: the lab journal, line mastery, goals, master rank perk picks and the pills made and sold totals stay as they are. XP set this way never counts toward a goal, and isn't sent to the skills mirror.
From the server console, always give an ID. Without one there's nobody to target, and you get "Player ? is not online".
/pills resetjournal [id]
Clears a player's lab journal (see Features): the first-time XP they've claimed, their best batch and best counterfeit, and their batch counts. They can then earn every first-time bonus again, and their next light box reading of their own batch sets a fresh best. Their level, XP, line mastery and goals don't change.
It's handy for testing the first-time rewards on a test character.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | No | The player's server ID. Leave it out to clear your own journal. |
/pills resetjournal -- clear your own journal
/pills resetjournal 4 -- clear player 4's journalOutput:
- Success: "Cleared PlayerName's lab journal"
- Failure: "Player 4 is not online", "Player 4 has no loaded character", or "The progression could not be saved. Check the server console."
The player must be online with a character loaded. From the server console, always give an ID.
/pills setmastery [line] [batches] [id]
Sets how many batches of one product line a player has made, for line mastery. Their tier on that line, and its rewards, follow the new count straight away. The change is saved to the database straight away.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
line | string | Yes | The product line: party (Party Pills), bar (NOVA Bars), blues (VELA Blues), perc (AXIA Percs) or capsule (AURA Capsules) |
batches | number | Yes | The number of batches, a whole number from 0 to 100,000. 0 clears the line. |
id | number | No | The player's server ID. Leave it out to set your own. |
Examples:
/pills setmastery blues 15 -- your own VELA Blues to 15 batches (Skilled with the default tiers)
/pills setmastery party 40 4 -- player 4's Party Pills to 40 batches (Master)
/pills setmastery bar 0 4 -- clear player 4's NOVA Bars masteryOutput:
-
Success: "Set PlayerName's VELA Blues to 15 batches"
-
Failure: "Usage: /pills setmastery [line] [batches] [id]", "No product line with the key xyz", "Player 4 is not online", "Player 4 has no loaded character", or "The progression could not be saved. Check the server console."
-
It never pays XP. The XP of every tier the new count reaches is marked as already paid. Paid tiers stay paid: if you lower the count, the player climbs back through those tiers in play without being paid for them again. Each tier's XP is paid once per line, ever.
-
0sets the batches to 0 and also clears that line's best batch and pills sold. Any other number only changes the batch count. -
The player isn't sent a message. Their Lab Profile shows the new tier the next time they open it.
-
While line mastery is switched off (Players → Line Mastery), every line gives "No product line with the key ...". Switch it on first.
The player must be online with a character loaded. From the server console, always give an ID.
/pills resetgoals [id]
Clears a player's daily and weekly lab goals, finished or not, along with the swaps they've used today. A fresh set is drawn the next time their goals are read: when they open the Lab Profile, or do something that counts toward a goal. Their level, XP, lab journal and line mastery don't change.
It's handy for testing goals. Goals the player had already finished can be drawn again and pay their XP again, so think twice before using it on a live server.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | No | The player's server ID. Leave it out to clear your own goals. |
/pills resetgoals -- clear your own goals
/pills resetgoals 4 -- clear player 4's goalsOutput:
- Success: "Cleared PlayerName's goals; new ones are drawn the next time they are read"
- Failure: "Player 4 is not online", "Player 4 has no loaded character", or "The progression could not be saved. Check the server console."
The player must be online with a character loaded. From the server console, always give an ID.
/pills setrank [rank] [id]
Sets a player's master rank. A rank comes from the player's total XP, so this sets their XP to the start of that rank: the XP of your top level, plus the rank times XP per rank. The change is saved to the database straight away.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
rank | number | Yes | 0 to the number of ranks (5 with the default settings). 0 puts the player at the top level with no rank. |
id | number | No | The player's server ID. Leave it out to set your own rank. |
Like /pills setxp, the rank comes first, then the ID.
Examples:
/pills setrank 1 -- your own rank to Master Presser I (15,000 XP with the defaults)
/pills setrank 5 4 -- player 4 to Master Presser V (31,000 XP)
/pills setrank 0 4 -- player 4 to level 10 with no rank (11,000 XP)Output:
-
Success: "Set PlayerName to master rank 1 (15000 XP)"
-
Failure: "Usage: /pills setrank [rank 0-5] [id]" (the highest rank shown is your Ranks setting), "Player 4 is not online", "Player 4 has no loaded character", or "The progression could not be saved. Check the server console."
-
It can lower XP as well as raise it. A player with 17,000 XP set to rank 1 goes down to 15,000.
-
Their level follows. A player below the top level goes straight to it, and sees the level-up banner.
-
When the rank goes up, the player sees the rank banner and any perk picks they now have waiting.
-
Their perk picks don't change. Picks above the new rank are kept, and work again once the player is back at that rank. To clear them, use
/pills respec. -
XP set this way never counts toward a goal, and isn't sent to the skills mirror.
-
While master ranks are switched off (Players → Master Ranks), the XP still moves, but no rank counts until you switch them back on.
The player must be online with a character loaded. From the server console, always give an ID.
/pills respec [id]
Clears every master rank perk pick a player has made, for free, so they can pick again. It's the same as the paid reset in the Lab Profile's Ranks tab, without the charge. Their XP and rank don't change.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | No | The player's server ID. Leave it out to clear your own picks. |
/pills respec -- clear your own picks
/pills respec 4 -- clear player 4's picksOutput:
- Success: "Cleared PlayerName's master rank picks"
- Failure: "Player 4 is not online", "Player 4 has no loaded character", or "The progression could not be saved. Check the server console."
The player isn't sent a message. Their Ranks tab shows the open ranks the next time they open the Lab Profile, and the Lab app on their phone or tablet updates within a few seconds. It's handy for testing, or to give a player a free reset after you've changed the perk pool.
The player must be online with a character loaded. From the server console, always give an ID.
/pills traytest [tint] [line] [symbol]
A visual check. Stand at a press (crank or electric press, or the capsule board) and run it: the press's tray fills with 12 tablets, one of each defect plus clean ones, at the real sorting camera. You can sort it like a real tray to see how each defect reads in game.
| Parameter | Type | Required | Description |
|---|---|---|---|
tint | number | No | Party pill colour, 0–7 (default 0) |
line | string | No | party, bar, blues or perc (default party). AURA Capsules can't be tested this way. |
symbol | string | No | A brand symbol to show on the good tablets (party only): pulse, bolt, star, crown, skull, heart, diamond, moon |
/pills traytest -- pink party pills
/pills traytest 3 party skull -- purple party pills with the Skull brand symbol
/pills traytest 0 bar -- NOVA Bars (includes a snapped bar)Which slot holds which defect is printed to the server console only, so whoever is looking at the tray isn't told the answer. The tray test uses nothing and produces nothing: finishing it gives no pills and no rejects.
It won't start on a press someone is working at ("Someone is already working at this press.") or on a press with a real tray waiting to be collected ("Somebody else left something on this press.", even when the tray is yours), because finishing the test clears the press's tray. Collect the real tray first, or use another press. Standing away from every press gives "Stand at a press to run the tray test."
Player Commands
/pills stats
Any player can run this. It opens their Lab Profile (see Features), a menu with up to four tabs. ← → switches tabs, ↑ ↓ selects a row, and BACKSPACE or ESC closes it.
- Overview: current level, XP and progress to the next level; total pills made and sold; how many unlocks they have; their Lab journal (best batch, batches made, first-time bonuses claimed, and a Counterfeit passed tick once one of their counterfeits has passed); their perks; what's coming up next; their line mastery badges; and their brands with their reputation word (never the number, which would give away a batch's quality before the light box)
- Lines: their mastery of each product line, with every tier and what it gives. Only shown while line mastery is on.
- Goals: their daily and weekly goals, with progress and the time left to the reset. Pressing ENTER twice on an unfinished daily goal swaps it. Only shown while lab goals are on.
- Ranks: their master ranks and the perk pool. Pressing ENTER twice on a perk picks it, and ENTER twice on Reset every pick at the end clears every pick for the respec price. Only shown while master ranks are on.
The best batch shows as a grade word, plus the number once their level shows numbers at the light box. The profile doesn't open while the player is working a station or has another pills menu open. From the server console, the command just tells you to run it in game.
On servers running oxide-phone or oxide-tablet, players can also open the same profile from the Lab app (see Features).
/pills pillid
Any player can run this. It opens Pill ID, the lookup for brands and counterfeit imprints (see Features). If oxide-tablet is running, it opens the Pill ID app on the tablet instead. On-duty officers with an evidence job also get the Log the pills I'm carrying button.
Machine Test (Debug Mode)
With Debug mode on (/pills settings → switch to Advanced → Core → General), a Machine Test option appears on every placed machine. It lets you start and stop the machine's moving parts, play each of its animations, and step through its visual states (for example a press die from clean to filthy). It's useful for checking a machine looks right on your server. Every player sees the option while Debug mode is on, but the server checks both Debug mode and admin permission, so it does nothing for players who aren't admins.
Debug mode also prints extra [oxide-pills] lines to the console. Turn it off on a live server.
Police Alerts
Under Advanced → Dispatch (switch the menu to Advanced to see it) you can make production carry a risk of being reported to police.
Set Alert chance above 0, and every time a player starts a stage the server rolls for a dispatch call at that station's location. Each stage can carry its own chance; leave it at -1 to follow the main chance.
Two settings stop it becoming noise:
- Site cooldown (default 5 minutes): after a station alerts, it doesn't alert again until the cooldown runs out. A roll that doesn't alert doesn't start it. Other stations are unaffected.
- Per-stage chance: turn the quiet stages down or off, and leave the press itself risky.
Alerts go into any dispatch resource o-link supports, including oxide-dispatch. Without one, officers only get a short notification and a 30-second blip on the lab (see Configuration).
Pharma delivery run handoffs are one of the stages (Delivery handoff). They alert at the doorstep with their own wording, and their cooldown is per player.
Everything is decided on the server from the station's saved position, so a player can't suppress an alert or make it point somewhere else. See Configuration for the full list.
Permissions
The admin subcommands (settings, kit, setlevel, setxp, resetjournal, setmastery, resetgoals, setrank, respec, traytest) check whether you're a server admin through o-link. The check uses FiveM's built-in permission system (called ACE), so there's nothing pills-specific to set up.
A player counts as an admin if any of these is true:
- They have the
commandpermission. Stock QBCore and QBXserver.cfgfiles already give this togroup.admin(add_ace group.admin command allow), so your existing framework admins can use the commands with no changes. - They're an admin in ESX (an ESX admin group).
- They have the
adminpermission.
If you need to make someone an admin, two lines in server.cfg do it: one to put the player in the admin group, and one to give that group the admin permission.
add_principal identifier.license:YOUR_LICENSE_HERE group.admin
add_ace group.admin admin allowReplace YOUR_LICENSE_HERE with the player's license identifier, then restart the server.
If a player without permission runs an admin subcommand, they get "You do not have permission to use this command".
The live server console is always allowed to run /pills setlevel, /pills setxp, /pills resetjournal, /pills setmastery, /pills resetgoals, /pills setrank and /pills respec (with a player ID). /pills stats and /pills pillid need no permission.
Next Steps
Features
How oxide-pills works — the production line, every station, the hidden tablet profile, product lines, brands, packaging, the rotary press crew, dust, reagent tests, overdoses, selling, the delivery run, Pill ID, progression, the lab journal, line mastery, lab goals, master ranks, the Lab Profile and the Lab app.
API Reference
Server exports and events provided by oxide-pills — progression and master ranks, XP and sales, buyer pricing through PriceFor, live settings, the level-up, rank-up and batch-seized events — plus the metadata every pill item carries.