Oxide Drugsellingv2.2.0
MinorAdded
- Desert Glass and Black Diamond meth baggies from oxide-meth 2.0.0 can be sold.
- Signature recipe meth sells for more as the recipe's reputation grows, up to 15% with oxide-meth's default settings. oxide-meth sets the price through a new
export_multiplierrow in the meth entry ofshared/config/drugs.lua. Signature baggies get their own line in the sell menu. - Trap phone clients who order meth take Desert Glass and Black Diamond baggies too.
- The TrapFone text popup is a panel on Oxide HUD: move it or switch it off in
/hud.Config.UseHudAccent(config file only) uses the HUD's accent colour for TrapFone highlights.
Changed
- The meth
metaKeypassed toConfig.OnDrugSoldnow starts with the signature id, ornone, as innone:blue_sky:High. Update hooks that read the oldblue_sky:High. - The
SetSettingexport refuses a change while settings are still loading at startup and returnsfalse. Before, a change made in those first moments could be overwritten as the saved settings loaded. - Settings save errors can be translated (
settings.error.*inlocales/en.json).
Fixed
- A function inside a customized config no longer stops oxide-drugselling's settings from loading. The function is ignored and the server console names it, along with the two hooks the resource does read,
Config.OnDrugSoldandConfig.OnPhoneExamined. - When
/drugselling settingscan't save a change to the database, it says "could not be saved, see the server console" instead of "value rejected". A failed reset shows an error; before, nothing appeared. - A drug resource that runs without the price export its config row names (oxide-meth 1.7.0, for example) no longer empties the sell menu. That drug sells at its usual price and the server console warns once.
- Weed strains of one quality no longer merge into one sell line, and weed's strain sale credit now counts.
Documentation
- Configuration, features, exports, installation and README cover the meth signature key, the oxide-meth price row, the premium baggies, the Oxide HUD popup with its o-link version,
Config.UseHudAccent, and how the sell menu groups weed by strain and quality.
Migration Guide
Config.Drugsis file-only. If you customizedshared/config/drugs.lua, make these changes in themethentry:- in
items:meth_baggy_desert_glass = { label = 'Desert Glass Baggy', basePrice = 140 },andmeth_baggy_black_diamond = { label = 'Black Diamond Baggy', basePrice = 140 }, - replace
metaKeyFormatwithmetaKeyFormat = '{signature}:{variant}:{purity}', - in the
variant_multiplierrow'svariants:desert_glass = 1.7,andblack_diamond = 1.85, - as the last entry in
modifiers:{ type = 'export_multiplier', category = 'multiplier', exportResource = 'oxide-meth', exportName = 'PriceFor' },
- in
- If the meth row of What clients ask for (Orders in
/drugselling settings) still lists the eleven 2.1.0 baggies, the two premium baggies are added to it once on the first start. Rows you edited are left alone. - Works with oxide-meth 1.7.0: meth sells at its usual price, and the server console warns once that oxide-meth has no price export. Premium baggies and signature prices need oxide-meth 2.0.0.
- The HUD popup needs o-link 1.12.1 or newer. With older o-link it stays where it was.
- Merge the new
phone.ui.peek_sample_*,hud.panel_phoneandsettings.error.*keys into custom locales. Restart oxide-drugselling. No SQL or new items.