Skip to content

Client Exports ​

These read the local player's session. No arguments are needed. Call after fs_craftingtables has started. These exports only read status; they do not start crafting or give rewards.

IsCrafting()

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

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

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

lua
local craft = exports['fs_craftingtables']:GetCraftingSession()
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.countRequested recipe output count; use server data for confirmed totals

Changing this copy does not change the craft.

Client status ends when finishing or cancellation is requested. Use server hooks for confirmed results.

FWB Studio documentation.