Defines the High Tier Ration Packet item (ration_high), which is opened for 100 tokens, premium supplements and two special Breen's waters and fires the PlayerUseRation hook.

Summary

Methods

Blocks quick-use pickup, with a notification, when the player cannot carry the ration.
Lets the item be dropped; nothing else happens.
Pays the player 100 tokens and gives them premium supplements and two special Breen's waters.

Methods

ITEM:CanPickup(player, quickUse, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_ration_high.lua:13

Blocks quick-use pickup, with a notification, when the player cannot carry the ration.

Parameters

  • player
  • quickUse
  • itemEntity

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_ration_high.lua:37

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_ration_high.lua:26

Pays the player 100 tokens and gives them premium supplements and two special Breen's waters.

Fires the PlayerUseRation hook.

Parameters

  • player
  • itemEntity

Defined in