Mad Krell

AL Chemist

Server-authoritative pharmaceutical manufacturing modelled as a validated workflow graph.

Production is represented as a validated directed graph: a batch can split into parallel paths, wait for multiple parents, pass through quality gates, enter a bounded rework loop, and finish as medicine, an intermediate compound, a shipment or waste.

Compatible frameworks

Qbox,QBCore,ESX,Standalone

Built with

Lua,React,XYFlow,SQL

Dependencies

oxmysql, al-lib

Features

  • In-game React/XYFlow workflow editor with typed properties and server-side validation
  • Persistent, human-readable batches carrying workflow snapshots and audit trails — publishing a new revision cannot change a batch still running an older one
  • Physical laboratories with capacity-limited machines, condition and efficiency tracking, and restart recovery
  • Condition nodes accept only registered batch fields and safe operators; arbitrary Lua expressions are never evaluated
  • Condition cycles rejected unless the back edge is explicitly marked as rework with a traversal limit
  • Every start and completion is re-verified server-side against ownership, permissions, progression, certification, research, lab, machine, inventory, duration and distance
  • Material removal rolls back if persistence fails; unsupported inventories enter manual review rather than reissuing ambiguous output

All FiveM scripts