CityRP Documentation Repository

ITEM.Schematic

The schematic item base.

Registration ID
base_schematic
Inherits
ITEM → ITEM.Schematic

Functions

SharedITEM:AddProduct(uid, amt) → ITEM.SchematicSource ☍

AddProduct hook/override for this item base.

Parameters

  • uidany
  • amtnumber

Returns

  1. ITEM.Schematic
SharedITEM:AddRequirement(uid, amt) → ITEM.SchematicSource ☍

AddRequirement hook/override for this item base.

Parameters

  • uidany
  • amtnumber

Returns

  1. ITEM.Schematic
SharedITEM:onDestroy()Source ☍

onDestroy hook/override for this item base.

SharedITEM:onDrop()Source ☍

onDrop hook/override for this item base.

SharedITEM:onGive()Source ☍

onGive hook/override for this item base.

SharedITEM:onUse(ply) → booleanSource ☍

onUse hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:Schematic() → ITEM.SchematicSource ☍

Schematic hook/override for this item base.

Returns

  1. ITEM.Schematic

Tables

SharedITEM.createsSource ☍
SharedITEM.requiresSource ☍

Fields

SharedITEM.categorySource ☍
SharedITEM.createsSource ☍
SharedITEM.requiresSource ☍
SharedITEM.schematicSource ☍
SharedITEM.SetProductsSource ☍

Sets the products of this schematic.

SharedITEM.SetRequirementsSource ☍

Sets the requirements of this schematic.