Skip to content

Server Exports ​

Pass the player's server source ID as playerId. Call after fs_craftingtables has started. These exports only read status; they do not start crafting or give rewards.

IsCrafting(playerId)

Returns true while a crafting session is active, otherwise false.

lua
local busy = exports['fs_craftingtables']:IsCrafting(playerId)
GetCraftingSession(playerId)

Returns a copy of the active context, or nil when idle.

lua
local craft = exports['fs_craftingtables']:GetCraftingSession(playerId)
if craft then
    print(craft.stationId, craft.recipeId, craft.quantity)
end
FieldMeaning
stationIdStation instance ID
recipeIdRecipe ID
quantityNumber of crafts requested
durationDuration in seconds
output.itemReward item name
output.countTotal reward count for the batch

Changing this copy does not change the craft.

Use server completion hooks to react to confirmed rewards.

FWB Studio documentation.