Defines the Cough Syrup medical item (cough_syrup) of the Diseases plugin, which cures a cough when it is drunk
or given to the player being looked at with its Give action.
Summary
Methods
Gives the syrup to the player being looked at with "Give", curing their cough.
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures the player's cough.
Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_cough_syrup.lua:28Gives the syrup to the player being looked at with "Give", curing their cough.
Returns false when no player is looked at.
Parameters
- player
- name
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_cough_syrup.lua:45Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_cough_syrup.lua:18Cures the player's cough.
Parameters
- player
- itemEntity