Defines the Vegetable Oil consumable item (vegetable_oil), which deals 5 damage to the player who drinks it and is not sold in the business menu.

Summary

Methods

Lets the item be dropped; nothing else happens.
Deals 5 damage to the player who drinks it.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_vegetable_oil.lua:24

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_vegetable_oil.lua:19

Deals 5 damage to the player who drinks it.

Parameters

  • player
  • itemEntity

Defined in