Guest User

Untitled

a guest
Dec 12th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. --[[
  2.     © 2011 CloudSixteen.com do not share, re-distribute or modify
  3.     without permission of its author (kurozael@gmail.com).
  4. --]]
  5.  
  6. ITEM = openAura.item:New(); -- do not change
  7. ITEM.name = "Citizen Supplements"; -- name of item
  8. ITEM.model = "models/props_lab/jar01b.mdl"; -- full path to model
  9. ITEM.weight = 0.6; -- item weight
  10. ITEM.useText = "Eat"; -- what pops up when you press E on it. drop is always there
  11. ITEM.category = "Consumables"; -- category of item. make it like CWU or something
  12. ITEM.description = "A tinned can, it slushes when you shake it."; -- item description
  13.  
  14. -- Called when a player uses the item.
  15. function ITEM:OnUse(player, itemEntity) -- use this to increase/decrease health, w/e
  16.     player:SetHealth( math.Clamp( player:Health() + 5, 0, player:GetMaxHealth() ) );
  17. end;
  18.  
  19. -- Called when a player drops the item.
  20. function ITEM:OnDrop(player, position) end;
  21.  
  22. openAura.item:Register(ITEM);
Add Comment
Please, Sign In to add comment