SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Workstation

Scripts · FiveM Ready

Product Overview

smx-workstation is an advanced crafting workstation system with category-based UI, resumable jobs, server-side validation and framework adapters for ESX/ESXOLD/QBCore.

3Framework modes
3Split config files
2Client + Server exports
SQLPersistent craft queue
Architecture: Station and recipe data is normalized server-side. Crafting is persisted in workstation_crafting and resumed after reconnect when pause mode is enabled.

Core Feature Set

Craft UI

Modern NUI with category tabs, search, inventory check and active craft status.

Persistence

Craft jobs are stored in SQL and can continue or complete after reconnect.

Validation

Server checks payload types, station distance, access rules, item amounts and carry capacity.

Integration Hooks

Dedicated events for craft start/complete/failed and UI open/close integration points.

Technical Notes

  • Dependency: oxmysql (server scripts load @oxmysql/lib/MySQL.lua)
  • UI entrypoint: html/index.html with script.js and style.css
  • Config split: config.lua, config.stations.lua, config.recipes.lua
  • Server callbacks/events currently use namespace esx_advanced_workstation:*
  • Hooks and exports use resource namespace smx-workstation