Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- © 2011 CloudSixteen.com do not share, re-distribute or modify
- without permission of its author (kurozael@gmail.com).
- --]]
- ITEM = openAura.item:New(); -- do not change
- ITEM.name = "Citizen Supplements"; -- name of item
- ITEM.model = "models/props_lab/jar01b.mdl"; -- full path to model
- ITEM.weight = 0.6; -- item weight
- ITEM.useText = "Eat"; -- what pops up when you press E on it. drop is always there
- ITEM.faction = FACTION_CWU; -- do not change
- ITEM.category = "Consumables"; -- category of item. make it like CWU or something
- ITEM.description = "A tinned can, it slushes when you shake it."; -- item description
- -- Called when a player uses the item.
- function ITEM:OnUse(player, itemEntity) -- use this to increase/decrease health, w/e
- player:SetHealth( math.Clamp( player:Health() + 5, 0, player:GetMaxHealth() ) );
- end;
- -- Called when a player drops the item.
- function ITEM:OnDrop(player, position) end;
- openAura.item:Register(ITEM);
Add Comment
Please, Sign In to add comment