Requirements#
| Framework | qbx_core (Qbox). ESX and plain QBCore are not supported. |
| Resources | ox_lib, oxmysql, ox_target, ox_inventory |
| Server | FiveM artifact with OneSync enabled |
| Database | No tables of its own. The daily cap uses the resource KVP store, and the only table read is player_vehicles from Qbox. |
| Optional | glitch-minigames (the real temperature and pressure games), glitch-criminaltablet (Chemist contact and trust), glitch-xpSystem (chemistry XP and perks), ps-dispatch (police alerts), glitch-economy (crime ledger), glitch-admin (exploit log), glitch-drugSales (buyer hint after a first cook), glitch-humaneHeist (research bonus) |
The package was tested with qbx_core 1.24.0, ox_inventory 2.48.0, ox_lib 3.40.0, ox_target 1.17.2 and oxmysql 2.14.2. Every optional resource is detected at run time, and its feature is skipped when it is not running.
Installation steps#
Put the
glitch-methCarfolder in your resources folder. The folder name is case-sensitive.Add the items from
install/items.luatoox_inventory/data/items.lua. Skip any you already have, and add your own item images toox_inventory/web/images. The console warns at start about every missing item.There is no SQL to run.
Add to
server.cfg, after ox_lib, oxmysql, qbx_core, ox_inventory and ox_target:ensure ox_lib ensure oxmysql ensure qbx_core ensure ox_inventory ensure ox_target ensure glitch-minigames ensure glitch-methCarOpen
config.lua. Check the prices inConfig.Chemist.shop, the fallback ped position inConfig.Chemist.fallbackand the police job names inConfig.PoliceJobs.If you use glitch-criminaltablet, make sure the
chemistcontact exists. Without the tablet the fallback ped is used.Restart the server and look for
readyin the console. Any warning after it names what is missing.
[!NOTE]
Config.Chemist.unlockis only set whenglitch-humaneHeistis running. It then asks for two finished runs of thehumane_labstablet job before the Chemist sells anything, and only while the criminal tablet runs. On other servers it staysniland the shop opens straight away. Set your own{ jobId = '...', count = 2 }if you want a gate.
Permissions#
The resource adds no commands and no ACE entries. Staff testing bypasses come from glitch-criminaltablet, or from the glitchTestingMode global state flag when glitch-admin is running.
Updating#
Back up config.lua and locales/, replace the other files, then merge any new keys into your config. Restart the resource and check the console for item warnings.