Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. //To add a new item or remove an item, this is the file to do it.
  2.  
  3. local ITEMS = {}
  4.  
  5. ITEMS.scrap_metal = {
  6. ["name"] = "Scrap Metal",
  7. ["model"] = "models/props_debris/metal_panelchunk02d.mdl",
  8. ["description"] = "A small chunk of scrap metal, useless unless combined with other items.",
  9. ["width"] = 1,
  10. ["height"] = 1,
  11. ["chance"] = 75 --This is used for the 'item spawner plugin' this defines how many 'tickets' the item gets to spawn.
  12. }
  13.  
  14. ITEMS.reclaimed_metal = {
  15. ["name"] = "Reclaimed Metal",
  16. ["model"] = "models/props_c17/oildrumchunk01d.mdl",
  17. ["description"] = "A small chunk of reclaimed metal, useless unless combined with other items.",
  18. ["width"] = 1,
  19. ["height"] = 1,
  20. ["chance"] = 25
  21. }
  22.  
  23.  
  24. ITEMS.refined_metal = {
  25. ["name"] = "Refined Metal",
  26. ["model"] = "models/props_c17/canisterchunk02a.mdl",
  27. ["description"] = "A small chunk of refined metal, useless unless combined with other items.",
  28. ["width"] = 1,
  29. ["height"] = 1,
  30. ["chance"] = 10
  31. }
  32.  
  33. ITEMS.scrap_electronics = {
  34. ["name"] = "Scrap Electronics",
  35. ["model"] = "models/props_lab/reciever01c.mdl",
  36. ["description"] = "A small assorted set of Electronics, useless unless broken down into individual components or combined with other items.",
  37. ["width"] = 2,
  38. ["height"] = 1,
  39. ["chance"] = 45
  40. }
  41.  
  42. ITEMS.refined_electronics = {
  43. ["name"] = "Refined Electronics",
  44. ["model"] = "models/props_lab/reciever01b.mdl",
  45. ["description"] = "A small assorted set of Electronics, it's been refined to perfection.",
  46. ["width"] = 2,
  47. ["height"] = 1,
  48. ["chance"] = 3
  49. }
  50.  
  51. ITEMS.empty_carton_of_milk = {
  52. ["name"] = "Empty Carton of Milk",
  53. ["model"] = "models/props_junk/garbage_milkcarton002a.mdl",
  54. ["description"] = "An empty carton of milk.",
  55. ["width"] = 1,
  56. ["height"] = 1,
  57. ["chance"] = 60
  58. }
  59.  
  60. ITEMS.empty_can = {
  61. ["name"] = "Empty Can",
  62. ["model"] = "models/props_junk/garbage_metalcan001a.mdl",
  63. ["description"] = "An empty can.",
  64. ["width"] = 1,
  65. ["height"] = 1,
  66. ["chance"] = 80
  67. }
  68.  
  69. ITEMS.empty_glass_bottle = {
  70. ["name"] = "Empty Glass Bottle",
  71. ["model"] = "models/props_junk/garbage_glassbottle003a.mdl",
  72. ["description"] = "An empty glass bottle.",
  73. ["width"] = 1,
  74. ["height"] = 1,
  75. ["chance"] = 80
  76. }
  77.  
  78. ITEMS.empty_paint_can = {
  79. ["name"] = "Empty Paint Can",
  80. ["model"] = "models/props_junk/metal_paintcan001b.mdl",
  81. ["description"] = "An empty paint can.",
  82. ["width"] = 1,
  83. ["height"] = 1,
  84. ["chance"] = 80
  85. }
  86.  
  87. ITEMS.junk_newspaper = {
  88. ["name"] = "Junk Newspaper",
  89. ["model"] = "models/props_junk/garbage_newspaper001a.mdl",
  90. ["description"] = "An old issue of the City Times, dated a couple years ago.",
  91. ["width"] = 1,
  92. ["height"] = 1,
  93. ["chance"] = 80
  94. }
  95.  
  96. ITEMS.empty_jar = {
  97. ["name"] = "Empty Jar",
  98. ["model"] = "models/props_lab/jar01b.mdl",
  99. ["description"] = "An empty jar, looks like there was once some vitamin supplement inside.",
  100. ["width"] = 1,
  101. ["height"] = 1,
  102. ["chance"] = 80
  103. }
  104.  
  105. ITEMS.cardboard_scraps = {
  106. ["name"] = "Cardboard Scraps",
  107. ["model"] = "models/props_junk/garbage_carboard002a.mdl",
  108. ["description"] = "Some scraps of cardboard.",
  109. ["width"] = 2,
  110. ["height"] = 1,
  111. ["chance"] = 80
  112. }
  113.  
  114. ITEMS.locker_door = {
  115. ["name"] = "Locker Door",
  116. ["model"] = "models/props_lab/lockerdoorleft.mdl",
  117. ["description"] = "A simple locker door.",
  118. ["width"] = 1,
  119. ["height"] = 4,
  120. ["chance"] = 1
  121. }
  122.  
  123. ITEMS.cloth_scrap = {
  124. ["name"] = "Cloth Scrap",
  125. ["model"] = "models/props_debris/concrete_chunk04a.mdl",
  126. ["description"] = "A set of scrap cloth.",
  127. ["width"] = 1,
  128. ["height"] = 1,
  129. ["chance"] = 90
  130. }
  131.  
  132. ITEMS.sewn_cloth = {
  133. ["name"] = "Sewn Cloth",
  134. ["model"] = "models/props_debris/concrete_chunk04a.mdl",
  135. ["description"] = "A sewn set of cloth, useful for crafting clothing.",
  136. ["width"] = 1,
  137. ["height"] = 1,
  138. ["chance"] = 10
  139. }
  140.  
  141. ITEMS.battered_scrap = {
  142. ["name"] = "Battered Scrap",
  143. ["model"] = "models/props_debris/metal_panelchunk02d.mdl",
  144. ["description"] = "A lower tier set of metal, useful to put together with scrap.",
  145. ["width"] = 1,
  146. ["height"] = 1,
  147. ["chance"] = 85
  148. }
  149.  
  150. ITEMS.burned_metal = {
  151. ["name"] = "Charred Metal",
  152. ["model"] = "models/props_debris/rebar001a_32.mdl",
  153. ["description"] = "A useless chunk of burnt metal, flimsy and practically worthless.",
  154. ["width"] = 1,
  155. ["height"] = 1,
  156. ["chance"] = 85
  157. }
  158.  
  159. ITEMS.empty_ammo_box = {
  160. ["name"] = "Empty Ammunition Case",
  161. ["model"] = "models/Items/BoxSRounds.mdl",
  162. ["description"] = "An empty box of used ammunition.",
  163. ["width"] = 1,
  164. ["height"] = 1,
  165. ["chance"] = 75
  166. }
  167.  
  168. ITEMS.bullet_casings = {
  169. ["name"] = "Bullet Casings",
  170. ["model"] = "models/Items/357ammobox.mdl",
  171. ["description"] = "A set of bullet casings, used up",
  172. ["width"] = 1,
  173. ["height"] = 1,
  174. ["chance"] = 85
  175. }
  176.  
  177. ITEMS.gunpowder = {
  178. ["name"] = "Gunpowder",
  179. ["model"] = "models/props_lab/box01a.mdl",
  180. ["description"] = "Black powder as it's commonly called, gunpowder is one of the primary ingredients of weaponry.",
  181. ["width"] = 1,
  182. ["height"] = 1,
  183. ["chance"] = 45
  184. }
  185.  
  186. ITEMS.scrap_screwdriver = {
  187. ["name"] = "Scrap Screwdriver",
  188. ["model"] = "models/props_c17/TrapPropeller_Lever.mdl",
  189. ["description"] = "A screwdriver fashioned from scrap metal",
  190. ["width"] = 1,
  191. ["height"] = 1,
  192. ["chance"] = 10
  193. }
  194.  
  195. ITEMS.plank = {
  196. ["name"] = "Plank",
  197. ["model"] = "models/props_debris/wood_board06a.mdl",
  198. ["description"] = "A wooden plank.",
  199. ["width"] = 1,
  200. ["height"] = 3,
  201. ["chance"] = 80
  202. }
  203.  
  204. ITEMS.wood_piece = {
  205. ["name"] = "Wooden Piece",
  206. ["model"] = "models/props_debris/wood_chunk02d.mdl",
  207. ["description"] = "A piece of wood.",
  208. ["width"] = 1,
  209. ["height"] = 3,
  210. ["chance"] = 80
  211. }
  212.  
  213. ITEMS.scrap_hammer = {
  214. ["name"] = "Scrap Hammer",
  215. ["model"] = "models/props_interiors/pot02a.mdl",
  216. ["description"] = "A weak scrap hammer devised of several tools.",
  217. ["width"] = 1,
  218. ["height"] = 2,
  219. ["chance"] = 80
  220. }
  221.  
  222. ITEMS.normal_screwdriver = {
  223. ["name"] = "Screwdriver",
  224. ["model"] = "models/props_c17/TrapPropeller_Lever.mdl",
  225. ["description"] = "A full fledged screwdriver.",
  226. ["width"] = 2,
  227. ["height"] = 1,
  228. ["chance"] = 20,
  229. ["tool"] = true
  230. }
  231.  
  232.  
  233. for k, v in pairs(ITEMS) do
  234. local ITEM = ix.item.Register(k, nil, false, nil, true)
  235. ITEM.name = v.name
  236. ITEM.model = v.model
  237. ITEM.description = v.description
  238. ITEM.category = "Crafting"
  239. ITEM.width = v.width or 1
  240. ITEM.height = v.height or 1
  241. ITEM.chance = v.chance or 0
  242. ITEM.isTool = v.tool or false
  243. ITEM.flag = "3"
  244. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement