Defines the Boxed Backpack item, which is opened to give a backpack unless the player already carries one.

Summary

Methods

Lets the item be dropped; nothing else happens.
Unpacks into a backpack, or keeps the box with a notification when the player already has one.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_boxed_backpack.lua:27

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_boxed_backpack.lua:15

Unpacks into a backpack, or keeps the box with a notification when the player already has one.

Parameters

  • player
  • itemEntity

Defined in