Summary

Methods

Returns a field of the blueprint, or a fallback when the field is nil.
Returns the materials crafting the blueprint consumes.
Returns the attributes a player needs to craft the blueprint.
Returns the tools needed to craft the blueprint, which are not consumed.
Returns the items crafting the blueprint produces.
Returns the attributes crafting the blueprint progresses.
Registers the blueprint with cw.blueprints:Register.

Methods

CLASS_TABLE:__call(varName, failSafe)

shared gamemodes/cwhl2rp/plugins/craft/plugin/libraries/sh_blueprints.lua:68

Returns a field of the blueprint, or a fallback when the field is nil.

local name = blueprint('name', 'Unknown')

Parameters

  • varName String Name of the field
  • failSafe Any optional, defaults to nil Value returned when the field is nil

Returns

  • Any The field's value or failSafe

Returns the materials crafting the blueprint consumes.

Returns

  • List The recipe list of { itemID, amount } pairs

Returns the attributes a player needs to craft the blueprint.

Returns

  • List The reqatt list of { attributeID, minimum } pairs

Returns the tools needed to craft the blueprint, which are not consumed.

Returns

  • List The required list of { itemID, amount } pairs

Returns the items crafting the blueprint produces.

Returns

  • List The finish list of { itemID, amount } pairs

Returns the attributes crafting the blueprint progresses.

Returns

  • List The updatt list of { attributeID, amount } pairs

Registers the blueprint with cw.blueprints:Register.

Defined in