Test item that shows what a minimal item file looks like: a stackable 2x1 item with a custom camera setup for its inventory icon and an on_use callback.

Summary

Methods

Returns the camera setup for the inventory icon of the test item.
Called on the server when a player uses the item.

Methods

Returns the camera setup for the inventory icon of the test item.

Returns

  • Map table with origin (Vector), angles (Angle) and fov (Number) fields

Called on the server when a player uses the item. Prints a message to the console.

Parameters

  • _actor Player

Defined in