ix.item

Item manipulation and helper functions.

Functions

ix.item.Get(identifier)

View source »

Retrieves an item table.

Parameters

  • identifier string

    Unique ID of the item

Returns

  • item

    Item table

Example Usage

print(ix.item.Get("example"))
 > "item[example][0]"

ix.item.Spawn(uniqueID, position, callback, angles, data)

View source »

Instances and spawns a given item type.

Parameters

  • uniqueID string

    Unique ID of the item

  • position vector

    The position in which the item's entity will be spawned

  • callback function default: nil

    Function to call when the item entity is created

  • angles angle default: angle_zero

    The angles at which the item's entity will spawn

  • data table default: nil

    Additional data for this item instance