ITEM.Food
The food item base. Restores hunger on use.
- SharedITEM:canUse(ply) → booleanSource ☍
-
canUsehook/override for this item base.Parameters
- plyPlayer
Returns
- boolean
- SharedITEM:Incrementors(food, alcohol, superfood) → ITEMSource ☍
-
Set the food and alcohol value of an item.
Parameters
- foodnumber?Food value.
- alcoholnumber?Alcohol value.
- superfoodnumber?Superfood value.
Returns
- SharedITEM:onDestroy(ply)Source ☍
-
onDestroyhook/override for this item base.Parameters
- plyPlayer
- SharedITEM:onDrop(ply, pos)Source ☍
-
onDrophook/override for this item base.Parameters
- SharedITEM:onGive(ply, to)Source ☍
-
onGivehook/override for this item base.Parameters
- SharedITEM:onPlace()Source ☍
-
onPlacehook/override for this item base. - SharedITEM:onUse(ply) → booleanSource ☍
-
onUsehook/override for this item base.Parameters
- plyPlayer
Returns
- boolean
- SharedITEM:postUse(ply) → booleanSource ☍
-
postUsehook/override for this item base.Parameters
- plyPlayer
Returns
- boolean
- SharedITEM:SetFood(f, a, s) → ITEMSource ☍
-
Set the food / alcohol values for this item, along with the category.
Parameters
- fnumber?Food value.
- anumber?Alcohol value.
- snumber?Superfood value.
Returns
- SharedITEM.alcoholvalueSource ☍
- SharedITEM.alcoholvalueSource ☍
- SharedITEM.foodvalueSource ☍
- SharedITEM.foodvalueSource ☍
- SharedITEM.SetBottleSource ☍
-
Set if the food returns an empty bottle after using.
- SharedITEM.SetHiddenSource ☍
-
Set if the food values are hidden for this item.
- SharedITEM.SetSoberingSource ☍
-
Set if the food resets alcohol state.
- SharedITEM.superfoodSource ☍
- SharedITEM.superfoodSource ☍