Item:spawn

From Nutscript Developer Wiki


    Item:spawn(position, angles)

This function brings the item to the world in the specific position and the angle. To bring the item, Item's inventory ID must be the 0. Or you can just bring Logical Items in the [0] Inventory to the world.

Arguments[edit]

  • Vector position
  • Angle angles

Return Values[edit]

  • Entity

The entity that's created in the process of moving the item to the world.

Examples[edit]

none