Defines the Bread food item, which boosts strength and endurance by 2 for two minutes.

Summary

Methods

Lets the item be dropped; nothing else happens.
Boosts strength and endurance by 2 for two minutes.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_bread.lua:22

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_bread.lua:16

Boosts strength and endurance by 2 for two minutes.

Parameters

  • player
  • itemEntity

Defined in