Defines the Sleeping Pills (Prescription) medical item (snot) of the Diseases plugin, which cures insomnia and sets the Fatigue character data to 100 when swallowed, or to 0 when given to the player being looked at with its Give action.

Summary

Methods

Gives the pills to the player being looked at with "Give"; same effect as using them.
Lets the item be dropped, with no extra effect.
Cures the player's insomnia, sets their Fatigue to 100 and fires PlayerHealed.

Methods

ITEM:OnCustomFunction(player, name)

server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_snot.lua:33

Gives the pills to the player being looked at with "Give"; same effect as using 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 insomnia, sets their Fatigue to 100 and fires PlayerHealed.

Parameters

  • player
  • itemEntity

Defined in