Defines the Chinese Takeout food item, which heals 10 health, boosts endurance by 2 for two minutes and leaves an empty takeout carton.

Summary

Methods

Lets the item be dropped; nothing else happens.
Heals 10 health, boosts endurance by 2 for two minutes and gives back an empty takeout carton.

Methods

ITEM:OnDrop(player, position)

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

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_chinese_takeout.lua:18

Heals 10 health, boosts endurance by 2 for two minutes and gives back an empty takeout carton.

Parameters

  • player
  • itemEntity

Defined in