Skip to main content

CanCraft

Usage​

  • Called when the player attempts to craft an item
  • Return true or false to override default behavior

Examples​

""
bool? CanCraft(ItemCrafter itemCrafter, ItemBlueprint itemBlueprint, int itemAmount, bool free)
{
Puts("CanCraft works!");
return null;
}
""
bool? CanCraft(PlayerBlueprints playerBlueprints, ItemDefinition itemDefinition, int skinItemId)
{
Puts("CanCraft works!");
return null;
}