Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ITEM = {} -- not to be removed or edited.
- local SHORTNAME = "orange" -- A short name for the item
- ITEM.Name = "Orange"
- ITEM.SpecPrice = 10 -- Price for companies who have this spec
- ITEM.Price = 40 -- Price without the secondary spec that uses this item
- ITEM.UseType = "globaluse" -- This can be globaluse, worlduse, inventoryuse, drop, blend
- ITEM.Drop = "drop" -- This can be destroy or drop
- if SERVER then -- Only serverside (not to be removed or edited.)
- ITEM.OnUse = function( item, ent, user ) -- What happens when this entity is used (parameters: item, ent, user )
- user:SetHealth(user:Health()+10)
- end
- end -- End server functions (not to be removed or edited.)
- rp.items.register( ITEM, SHORTNAME ) -- register this item (not to be removed or edited.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement