Defines the Boxed Bag item, which is opened to give a small_bag unless the player already carries two.

Summary

Methods

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

Methods

ITEM:OnDrop(player, position)

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

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

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

Unpacks into a small bag, or keeps the box with a notification when the player already has two.

Parameters

  • player
  • itemEntity

Defined in