Alcohol Base item
Item defined in core/items/sh_alcohol_base.lua
Defines the alcohol_base base item for alcoholic drinks: drinking one boosts the item's attributes and makes the
player drunk for expireTime seconds, then calls the item's optional OnDrink.
Summary
Methods
OnDrop(player, position)shared
Called when a player drops the drink; does nothing, so dropping is allowed.
Boosts the item's
attributes and makes the player drunk for expireTime seconds, then calls OnDrink.Methods
Called when a player drops the drink; does nothing, so dropping is allowed.
Parameters
- player
- position
Boosts the item's attributes and makes the player drunk for expireTime seconds, then calls OnDrink.
Parameters
- player
- itemEntity