Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. GM.Items = {}
  2. function GM:AddItem(signature, desc, category, worth, swep, callback, model, worthshop, pointshop, wave, unlocked, infliction, stock, objonly)
  3. local tab = {Signature = signature, Description = desc, Category = category, Worth = worth or 0, SWEP = swep, Callback = callback, Model = model, WorthShop = worthshop, PointShop = pointshop, Wave = wave or 0, Unlocked = unlocked, Infliction = infliction, Stock = stock or false, ObjectiveOnly = objonly or false}
  4. self.Items[#self.Items + 1] = tab
  5.  
  6. return tab
  7. end
  8.  
  9. function GM:AddStartingItem(signature, desc, category, points, worth, callback, model)
  10. return self:AddItem(signature, desc, category, points, worth, callback, model, true, false, 0, true, nil, nil, false)
  11. end
  12.  
  13. function GM:AddPointShopItem(signature, desc, category, points, worth, stock, wave, unlocked, infliction, objonly, callback, model)
  14. return self:AddItem("ps_"..signature, desc, category, points, worth, callback, model, false, true, wave, unlocked, infliction, stock, objonly)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement