Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. local ITEM = {} -- not to be removed or edited.
  2.  
  3. local SHORTNAME = "orange" -- A short name for the item
  4. ITEM.Name = "Orange"
  5. ITEM.SpecPrice = 10 -- Price for companies who have this spec
  6. ITEM.Price = 40 -- Price without the secondary spec that uses this item
  7. ITEM.UseType = "globaluse" -- This can be globaluse, worlduse, inventoryuse, drop, blend
  8. ITEM.Drop = "drop" -- This can be destroy or drop
  9.  
  10. if SERVER then -- Only serverside (not to be removed or edited.)
  11.  
  12.     ITEM.OnUse = function( item, ent, user ) -- What happens when this entity is used (parameters: item, ent, user )
  13.         user:SetHealth(user:Health()+10)
  14.     end
  15.    
  16. end -- End server functions (not to be removed or edited.)
  17.  
  18. rp.items.register( ITEM, SHORTNAME ) -- register this item (not to be removed or edited.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement