SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Workstation

Scripts · FiveM Ready

Operational Playbook

1. Approach Station

Go to marker location and press E when help notification appears.

2. Select Recipe

Choose category, inspect ingredient requirements, set amount and start crafting.

3. Wait / Reconnect Safe

Craft progress runs with server timing and can resume after reconnect (if enabled).

4. Collect Output

Finish craft when timer is ready and receive crafted item in inventory.

5. Parallel Jobs

When enabled, multiple different recipes can run in parallel on one station.

Integration Snippets

-- Client: open station UI from another script
exports["smx-workstation"]:OpenStation("weapon_mod_station")

-- Client: check UI state
local open = exports["smx-workstation"]:IsUiOpen()

-- Server: validate access for a player
local ok, reason = exports["smx-workstation"]:CanPlayerAccessStation(source, "weapon_mod_station")
Tip: Use the server hook smx-workstation:server:onCraftComplete for logging, XP rewards or analytics integrations.

Access Rule Example

access = {
    jobs = {
        police = 2,   -- minimum grade
        mechanic = 0
    },
    item = {
        name = "workstation_card",
        count = 1
    },
    deniedMessage = "Access denied."
}

Access can be open (false) or rule-based via job grade and optional required item.