Troubleshooting
Diagnose startup, inventory, equipment, cooking, crystallizing, effects, and progression issues in oxide-meth.
Common problems and how to fix them. Work top to bottom — most issues are item names or load order.
The resource doesn't start
- Check the server console for red errors mentioning
oxide-meth. - Make sure
ox_lib,oxmysql, ando-linkall start beforeoxide-methin yourserver.cfg. - The database tables are created automatically the first time the resource starts — but that only works if
oxmysqlis connected to your database. If the console showsoxmysqlconnection errors, fix those first. - Your framework and inventory resources must start before
o-link— if other Oxide resources work, this is already right.
To see detailed logging from the resource, set Config.Debug = true in shared/config.lua and restart it. Turn it back off when you're done.
"You don't have the required items" (but the player does)
This almost always means an item name doesn't match exactly.
- Compare the item names in your inventory against the tables in Installation — every letter and underscore must match (
hydrogen_peroxide, nothydrogen-peroxideorHydrogenPeroxide). - Make sure all the variant shard and baggy items exist. If a player cooked Blue Sky, breaking and bagging need
crystal_meth_blue_skyandmeth_baggy_blue_skyto exist. - If you also run
oxide-weed, make surebaggyandcannabis_leafare only defined once in your inventory.
Using an equipment item does nothing
- The item must be marked usable in your inventory (qb-inventory:
useable = true; ox_inventory: usable by default). - Equipment can't be used from inside a vehicle — the player gets a warning message.
- The crystallizer can have a level requirement (
requiredLevelinshared/config/equipment.lua) — it ships at 0, but check if you changed it. - Placement is blocked inside your configured safe zones — the player gets a "Can't place items in safe zones" message.
No interaction options on placed equipment
The walk-up options (Cook Meth, Break Meth, etc.) come through your targeting resource (usually ox_target) via o-link. If other Oxide resources' target options work, meth's will too. If none work, your targeting resource isn't running or isn't connected through o-link.
Cooking won't start
- The player needs at least 1 of each of the four ingredients:
hydrogen_peroxide,ammonia,hydrochloric_acid,sodium_benzoate. - The table must be one placed through this resource — a decoration prop won't work.
- If additives don't appear in the additive panel, the player either doesn't have any in their inventory or hasn't reached that additive's unlock level.
Trays won't dry / crystallizer looks empty after a restart
- Confirm the
drug_equipmentandmeth_drying_slotstables exist in your database. - Drying takes 5 minutes by default (
Config.Drying.dryingTime) — a tray collected early isn't ready, and the script will say so. - With ownership on (
Config.RequireOwnership = true, the default), only the player who placed a tray can collect it. Other players get no response by design. - If trays lose their variant/purity when going in or out of the crystallizer, your inventory resource isn't preserving item metadata — check that you're on a supported inventory (see
o-link's documentation).
Breaking or bagging gives nothing
- Breaking needs at least 1
crystallized_meth_trayin the player's inventory. - Bagging needs at least 3 shards of one product plus at least 1
baggy. - If the action completes but no item arrives, the player's inventory may be full — they'll get an "inventory is full" message and the materials are refunded.
- Make sure every variant's shard and baggy item is registered (this is the most common cause).
Gas mask doesn't show on the player
The mask is a clothing component. Config.GasMask ships with component 1, drawable 175 — those numbers are for the default GTA clothing. If your server uses a custom clothing pack, find a mask drawable that exists in your pack and update drawable (and texture) in shared/config.lua.
Usage effects look wrong or don't trigger
- Only bagged meth is usable — shards and trays are not.
- The baggy items must be marked usable in your inventory.
- There's a cooldown (120 seconds by default) after the previous high ends — the player gets a wait message.
- Meth can't be used inside a vehicle.
- If armour or healing seem to vanish instantly, another resource (a HUD or health script) may be overriding them.
Progression doesn't save
- Confirm the
drugs_progressiontable exists. - Watch the server console for
oxmysqlerrors — usually wrong database credentials or a missing table. - Progression is saved per character. If
/methstatsshows nothing, the character may not be fully loaded yet — have the player relog.
Quick test tools
/methkit— gives a full production kit (admin)/meth_sellkit— gives finished product with random variants/purities (admin)/setmethlvl [id] [level]— set a player's level to test unlocks (admin)/methstats— confirms the client can talk to the server and read progression
See Admin for the permission setup these need.