Defines the Pack of Sorbents medical item (sorbent) of the Diseases plugin, which cures diarrhea and restores health when it is swallowed or given to the player being looked at with its Give action.

Summary

Methods

Gives the sorbents to the player being looked at with "Give", curing their diarrhea and healing them.
Lets the item be dropped, with no extra effect.
Cures the player's diarrhea, heals them and fires PlayerHealed.

Methods

ITEM:OnCustomFunction(player, name)

server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_sorbent.lua:32

Gives the sorbents to the player being looked at with "Give", curing their diarrhea and healing them.

Fires PlayerHealed with the giver as the healer. Returns false when no player is looked at.

Parameters

  • player
  • name

Lets the item be dropped, with no extra effect.

Parameters

  • player
  • position

Cures the player's diarrhea, heals them and fires PlayerHealed.

Parameters

  • player
  • itemEntity

Defined in