Defines the Antidepressants medical item, which sets the player's antidepressants net var for ten minutes (restoring normal screen colours on the client) and trades 2 strength for 2 endurance for two minutes.

Summary

Methods

Lets the item be dropped; nothing else happens.
Sets the antidepressants net var to ten minutes from now, raises endurance by 2 and lowers strength by 2 for two minutes.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_antidepressants.lua:26

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_antidepressants.lua:18

Sets the antidepressants net var to ten minutes from now, raises endurance by 2 and lowers strength by 2 for two minutes.

Parameters

  • player
  • itemEntity

Defined in