Guest User

Untitled

a guest
Dec 12th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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.faction = FACTION_CWU; -- do not change
  12. ITEM.category = "Consumables"; -- category of item. make it like CWU or something
  13. ITEM.description = "A tinned can, it slushes when you shake it."; -- item description
  14.  
  15. -- Called when a player uses the item.
  16. function ITEM:OnUse(player, itemEntity) -- use this to increase/decrease health, w/e
  17. player:SetHealth( math.Clamp( player:Health() + 5, 0, player:GetMaxHealth() ) );
  18. end;
  19.  
  20. -- Called when a player drops the item.
  21. function ITEM:OnDrop(player, position) end;
  22.  
  23. openAura.item:Register(ITEM);
Add Comment
Please, Sign In to add comment