Advertisement
Guest User

Some shipments for gd and guns, for our server trulx too

a guest
May 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.74 KB | None | 0 0
  1. -- AddCustomShipment("Desert eagle", "models/weapons/w_pist_deagle.mdl", "weapon_deagle2", 215, 10, true, 215, true, {TEAM_GUN})
  2. -- AddCustomShipment("Fiveseven", "models/weapons/w_pist_fiveseven.mdl", "weapon_fiveseven2", 0, 10, true, 205, true, {TEAM_GUN})
  3. -- AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_glock2", 0, 10, true, 160, true, {TEAM_GUN})
  4. -- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_p2282", 0, 10, true, 185, true, {TEAM_GUN})
  5.  
  6. -- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_ak472", 2450, 10, false, nil, false, {TEAM_GUN})
  7. -- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mp52", 2200, 10, false, nil, false, {TEAM_GUN})
  8. -- AddCustomShipment("M4", "models/weapons/w_rif_m4a1.mdl", "weapon_m42", 2450, 10, false, nil, false, {TEAM_GUN})
  9. -- AddCustomShipment("Mac 10", "models/weapons/w_smg_mac10.mdl", "weapon_mac102", 2150, 10, false, nil, false, {TEAM_GUN})
  10. -- AddCustomShipment("Pump shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_pumpshotgun2", 1750, 10, false, nil, false, {TEAM_GUN})
  11. -- AddCustomShipment("Sniper rifle", "models/weapons/w_snip_g3sg1.mdl", "ls_sniper", 3750, 10, false, nil, false, {TEAM_GUN})
  12.  
  13. AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, "/buydruglab", {TEAM_GANG, TEAM_MOB})
  14. AddEntity("Money printer", "money_printer", "models/props_c17/consolebox01a.mdl", 1000, 2, "/buymoneyprinter")
  15. AddEntity("Microwave", "microwave", "models/props/cs_office/microwave.mdl", 400, 1, "/buymicrowave", TEAM_COOK)
  16. AddEntity("Gun lab", "gunlab", "models/props_c17/TrapPropeller_Engine.mdl", 500, 1, "/buygunlab", TEAM_GUN)
  17.  
  18. /*
  19. How to add custom vehicles:
  20. FIRST
  21. go ingame, type rp_getvehicles for available vehicles!
  22. then:
  23. AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
  24. Examples:
  25. AddCustomVehicle("Jeep", "models/buggy.mdl", 100 )
  26. AddCustomVehicle("Airboat", "models/airboat.mdl" 600, {TEAM_GUN})
  27. AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN, TEAM_MEDIC})
  28.  
  29. Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt
  30.  
  31. HOW TO ADD CUSTOM SHIPMENTS:
  32. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  33.  
  34. Notes:
  35. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  36. CLASSNAME OF THE WEAPON
  37. there are half-life 2 weapons you can add:
  38. weapon_pistol
  39. weapon_smg1
  40. weapon_ar2
  41. weapon_rpg
  42. weapon_crowbar
  43. weapon_physgun
  44. weapon_357
  45. weapon_crossbow
  46. weapon_slam
  47. weapon_bugbait
  48. weapon_frag
  49. weapon_physcannon
  50. weapon_shotgun
  51. gmod_tool
  52.  
  53. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  54. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  55. This means the classname is weapon_posessor
  56.  
  57. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  58. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  59.  
  60. true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no
  61.  
  62. the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.
  63.  
  64.  
  65. EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */
  66.  
  67. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  68.  
  69. --EXAMPLE OF AN ENTITY(in this case a medkit)
  70. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  71. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  72. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  73. -- ADD CUSTOM SHIPMENTS HERE(next line):
  74.  
  75. -- CS:S Weapons:
  76. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  77. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  78. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  79. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  80. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  81. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  82. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  83. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  84. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  85. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  86. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  87. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  88. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  89. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  90. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  91. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  92. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  93. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  94. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  95. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  96. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  97. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  98. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  99. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  100. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  101. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  102.  
  103. -- Half life 2 weapons:
  104. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  105. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  106. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  107. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  108. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  109.  
  110. -- Other:
  111. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  112. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  113.  
  114. -- Insane weapons: (Remove the "--" at the start of each to activate)
  115. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  116. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  117. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  118. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  119. CustomShipments = {}
  120. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  121. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  122. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  123. print(text)
  124. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  125. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  126. return
  127. end
  128. if not util.IsValidModel(model) then
  129. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  130. print(text)
  131. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  132. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  133. return
  134. end
  135. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  136. local price = tonumber(price)
  137. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  138. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  139. end
  140.  
  141. /*
  142. HOW TO ADD CUSTOM SHIPMENTS:
  143. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  144.  
  145. Notes:
  146. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  147. CLASSNAME OF THE WEAPON
  148. there are half-life 2 weapons you can add:
  149. weapon_pistol
  150. weapon_smg1
  151. weapon_ar2
  152. weapon_rpg
  153. weapon_crowbar
  154. weapon_physgun
  155. weapon_357
  156. weapon_crossbow
  157. weapon_slam
  158. weapon_bugbait
  159. weapon_frag
  160. weapon_physcannon
  161. weapon_shotgun
  162. gmod_tool
  163.  
  164. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  165. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  166. This means the classname is weapon_posessor
  167.  
  168. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  169. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  170.  
  171. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  172.  
  173. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  174.  
  175.  
  176. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  177.  
  178. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  179.  
  180. --EXAMPLE OF AN ENTITY(in this case a medkit)
  181. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  182. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  183. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  184. -- ADD CUSTOM SHIPMENTS HERE(next line):
  185.  
  186. -- CS:S Weapons:
  187. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  188. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  189. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  190. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  191. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  192. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  193. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  194. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  195. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  196. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  197. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  198. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  199. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  200. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  201. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  202. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  203. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  204. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  205. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  206. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  207. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  208. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  209. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  210. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  211. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  212. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  213.  
  214. -- Half life 2 weapons:
  215. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  216. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  217. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  218. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  219. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  220.  
  221. -- Other:
  222. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  223. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  224.  
  225. -- Insane weapons: (Remove the "--" at the start of each to activate)
  226. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  227. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  228. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  229. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  230. CustomShipments = {}
  231. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  232. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  233. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  234. print(text)
  235. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  236. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  237. return
  238. end
  239. if not util.IsValidModel(model) then
  240. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  241. print(text)
  242. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  243. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  244. return
  245. end
  246. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  247. local price = tonumber(price)
  248. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  249. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  250. end
  251.  
  252. /*
  253. HOW TO ADD CUSTOM SHIPMENTS:
  254. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  255.  
  256. Notes:
  257. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  258. CLASSNAME OF THE WEAPON
  259. there are half-life 2 weapons you can add:
  260. weapon_pistol
  261. weapon_smg1
  262. weapon_ar2
  263. weapon_rpg
  264. weapon_crowbar
  265. weapon_physgun
  266. weapon_357
  267. weapon_crossbow
  268. weapon_slam
  269. weapon_bugbait
  270. weapon_frag
  271. weapon_physcannon
  272. weapon_shotgun
  273. gmod_tool
  274.  
  275. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  276. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  277. This means the classname is weapon_posessor
  278.  
  279. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  280. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  281.  
  282. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  283.  
  284. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  285.  
  286.  
  287. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  288.  
  289. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  290.  
  291. --EXAMPLE OF AN ENTITY(in this case a medkit)
  292. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  293. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  294. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  295. -- ADD CUSTOM SHIPMENTS HERE(next line):
  296.  
  297. -- CS:S Weapons:
  298. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  299. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  300. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  301. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  302. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  303. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  304. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  305. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  306. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  307. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  308. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  309. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  310. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  311. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  312. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  313. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  314. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  315. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  316. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  317. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  318. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  319. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  320. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  321. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  322. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  323. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  324.  
  325. -- Half life 2 weapons:
  326. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  327. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  328. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  329. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  330. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  331.  
  332. -- Other:
  333. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  334. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  335.  
  336. -- Insane weapons: (Remove the "--" at the start of each to activate)
  337. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  338. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  339. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  340. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN}) CustomShipments = {}
  341. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  342. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  343. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  344. print(text)
  345. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  346. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  347. return
  348. end
  349. if not util.IsValidModel(model) then
  350. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  351. print(text)
  352. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  353. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  354. return
  355. end
  356. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  357. local price = tonumber(price)
  358. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  359. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  360. end
  361.  
  362. /*
  363. HOW TO ADD CUSTOM SHIPMENTS:
  364. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  365.  
  366. Notes:
  367. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  368. CLASSNAME OF THE WEAPON
  369. there are half-life 2 weapons you can add:
  370. weapon_pistol
  371. weapon_smg1
  372. weapon_ar2
  373. weapon_rpg
  374. weapon_crowbar
  375. weapon_physgun
  376. weapon_357
  377. weapon_crossbow
  378. weapon_slam
  379. weapon_bugbait
  380. weapon_frag
  381. weapon_physcannon
  382. weapon_shotgun
  383. gmod_tool
  384.  
  385. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  386. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  387. This means the classname is weapon_posessor
  388.  
  389. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  390. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  391.  
  392. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  393.  
  394. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  395.  
  396.  
  397. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  398.  
  399. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  400.  
  401. --EXAMPLE OF AN ENTITY(in this case a medkit)
  402. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  403. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  404. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  405. -- ADD CUSTOM SHIPMENTS HERE(next line):
  406.  
  407. -- CS:S Weapons:
  408. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  409. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  410. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  411. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  412. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  413. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  414. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  415. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  416. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  417. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  418. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  419. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  420. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  421. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  422. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  423. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  424. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  425. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  426. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  427. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  428. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  429. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  430. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  431. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  432. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  433. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  434.  
  435. -- Half life 2 weapons:
  436. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  437. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  438. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  439. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  440. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  441.  
  442. -- Other:
  443. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  444. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  445.  
  446. -- Insane weapons: (Remove the "--" at the start of each to activate)
  447. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  448. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  449. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  450. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  451. CustomShipments = {}
  452. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  453. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  454. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  455. print(text)
  456. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  457. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  458. return
  459. end
  460. if not util.IsValidModel(model) then
  461. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  462. print(text)
  463. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  464. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  465. return
  466. end
  467. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  468. local price = tonumber(price)
  469. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  470. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  471. end
  472.  
  473. /*
  474. HOW TO ADD CUSTOM SHIPMENTS:
  475. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  476.  
  477. Notes:
  478. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  479. CLASSNAME OF THE WEAPON
  480. there are half-life 2 weapons you can add:
  481. weapon_pistol
  482. weapon_smg1
  483. weapon_ar2
  484. weapon_rpg
  485. weapon_crowbar
  486. weapon_physgun
  487. weapon_357
  488. weapon_crossbow
  489. weapon_slam
  490. weapon_bugbait
  491. weapon_frag
  492. weapon_physcannon
  493. weapon_shotgun
  494. gmod_tool
  495.  
  496. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  497. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  498. This means the classname is weapon_posessor
  499.  
  500. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  501. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  502.  
  503. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  504.  
  505. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  506.  
  507.  
  508. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  509.  
  510. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  511.  
  512. --EXAMPLE OF AN ENTITY(in this case a medkit)
  513. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  514. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  515. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  516. -- ADD CUSTOM SHIPMENTS HERE(next line):
  517.  
  518. -- CS:S Weapons:
  519. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  520. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  521. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  522. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  523. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  524. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  525. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  526. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  527. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  528. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  529. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  530. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  531. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  532. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  533. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  534. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  535. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  536. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  537. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  538. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  539. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  540. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  541. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  542. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  543. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  544. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  545.  
  546. -- Half life 2 weapons:
  547. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  548. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  549. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  550. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  551. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  552.  
  553. -- Other:
  554. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  555. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  556.  
  557. -- Insane weapons: (Remove the "--" at the start of each to activate)
  558. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  559. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  560. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  561. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  562. CustomShipments = {}
  563. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  564. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  565. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  566. print(text)
  567. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  568. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  569. return
  570. end
  571. if not util.IsValidModel(model) then
  572. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  573. print(text)
  574. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  575. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  576. return
  577. end
  578. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  579. local price = tonumber(price)
  580. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  581. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  582. end
  583.  
  584. /*
  585. HOW TO ADD CUSTOM SHIPMENTS:
  586. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  587.  
  588. Notes:
  589. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  590. CLASSNAME OF THE WEAPON
  591. there are half-life 2 weapons you can add:
  592. weapon_pistol
  593. weapon_smg1
  594. weapon_ar2
  595. weapon_rpg
  596. weapon_crowbar
  597. weapon_physgun
  598. weapon_357
  599. weapon_crossbow
  600. weapon_slam
  601. weapon_bugbait
  602. weapon_frag
  603. weapon_physcannon
  604. weapon_shotgun
  605. gmod_tool
  606.  
  607. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  608. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  609. This means the classname is weapon_posessor
  610.  
  611. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  612. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  613.  
  614. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  615.  
  616. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  617.  
  618.  
  619. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  620.  
  621. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  622.  
  623. --EXAMPLE OF AN ENTITY(in this case a medkit)
  624. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  625. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  626. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  627. -- ADD CUSTOM SHIPMENTS HERE(next line):
  628.  
  629. -- CS:S Weapons:
  630. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  631. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  632. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  633. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  634. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  635. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  636. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  637. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  638. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  639. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  640. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  641. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  642. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  643. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  644. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  645. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  646. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  647. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  648. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  649. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  650. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  651. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  652. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  653. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  654. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  655. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  656.  
  657. -- Half life 2 weapons:
  658. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  659. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  660. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  661. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  662. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  663.  
  664. -- Other:
  665. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  666. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  667.  
  668. -- Insane weapons: (Remove the "--" at the start of each to activate)
  669. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  670. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  671. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  672. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  673. CustomShipments = {}
  674. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  675. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  676. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  677. print(text)
  678. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  679. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  680. return
  681. end
  682. if not util.IsValidModel(model) then
  683. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  684. print(text)
  685. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  686. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  687. return
  688. end
  689. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  690. local price = tonumber(price)
  691. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  692. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  693. end
  694.  
  695. /*
  696. HOW TO ADD CUSTOM SHIPMENTS:
  697. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  698.  
  699. Notes:
  700. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  701. CLASSNAME OF THE WEAPON
  702. there are half-life 2 weapons you can add:
  703. weapon_pistol
  704. weapon_smg1
  705. weapon_ar2
  706. weapon_rpg
  707. weapon_crowbar
  708. weapon_physgun
  709. weapon_357
  710. weapon_crossbow
  711. weapon_slam
  712. weapon_bugbait
  713. weapon_frag
  714. weapon_physcannon
  715. weapon_shotgun
  716. gmod_tool
  717.  
  718. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  719. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  720. This means the classname is weapon_posessor
  721.  
  722. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  723. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  724.  
  725. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  726.  
  727. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  728.  
  729.  
  730. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  731.  
  732. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  733.  
  734. --EXAMPLE OF AN ENTITY(in this case a medkit)
  735. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  736. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  737. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  738. -- ADD CUSTOM SHIPMENTS HERE(next line):
  739.  
  740. -- CS:S Weapons:
  741. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  742. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  743. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  744. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  745. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  746. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  747. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  748. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  749. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  750. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  751. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  752. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  753. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  754. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  755. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  756. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  757. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  758. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  759. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  760. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  761. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  762. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  763. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  764. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  765. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  766. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  767.  
  768. -- Half life 2 weapons:
  769. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  770. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  771. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  772. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  773. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  774.  
  775. -- Other:
  776. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  777. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  778.  
  779. -- Insane weapons: (Remove the "--" at the start of each to activate)
  780. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  781. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  782. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  783. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  784. CustomShipments = {}
  785. function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
  786. if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
  787. local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
  788. print(text)
  789. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  790. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  791. return
  792. end
  793. if not util.IsValidModel(model) then
  794. local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
  795. print(text)
  796. hook.Add("PlayerSpawn", "ShipmentError", function(ply)
  797. if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
  798. return
  799. end
  800. local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
  801. local price = tonumber(price)
  802. local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
  803. table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
  804. end
  805.  
  806. /*
  807. HOW TO ADD CUSTOM SHIPMENTS:
  808. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  809.  
  810. Notes:
  811. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  812. CLASSNAME OF THE WEAPON
  813. there are half-life 2 weapons you can add:
  814. weapon_pistol
  815. weapon_smg1
  816. weapon_ar2
  817. weapon_rpg
  818. weapon_crowbar
  819. weapon_physgun
  820. weapon_357
  821. weapon_crossbow
  822. weapon_slam
  823. weapon_bugbait
  824. weapon_frag
  825. weapon_physcannon
  826. weapon_shotgun
  827. gmod_tool
  828.  
  829. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  830. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  831. This means the classname is weapon_posessor
  832.  
  833. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  834. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  835.  
  836. true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
  837.  
  838. the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
  839.  
  840.  
  841. EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
  842.  
  843. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  844.  
  845. --EXAMPLE OF AN ENTITY(in this case a medkit)
  846. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  847. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  848. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  849. -- ADD CUSTOM SHIPMENTS HERE(next line):
  850.  
  851. -- CS:S Weapons:
  852. AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
  853. AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
  854. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
  855. AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
  856. AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
  857. AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
  858. AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
  859. AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
  860. AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
  861. AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
  862. AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
  863. AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
  864. AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
  865. AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
  866. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
  867. AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
  868. AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
  869. AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
  870. AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
  871. AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
  872. AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
  873. AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
  874. AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
  875. AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
  876. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
  877. AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
  878.  
  879. -- Half life 2 weapons:
  880. AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
  881. AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
  882. AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
  883. AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
  884. AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
  885.  
  886. -- Other:
  887. AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
  888. AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})
  889.  
  890. -- Insane weapons: (Remove the "--" at the start of each to activate)
  891. -- AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", "weapon_mad_grenadelauncher", 20000, 10, false, 0, false, {TEAM_GUN})
  892. -- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", "weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
  893. -- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
  894. -- AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", "weapon_mad_mine", 60000, 10, true, 7000, true, {TEAM_GUN})
  895. AddCustomShipment("Desert eagle", "models/weapons/w_pist_deagle.mdl", "weapon_deagle2", 215, 10, true, 215, true, {TEAM_GUN})
  896. AddCustomShipment("Fiveseven", "models/weapons/w_pist_fiveseven.mdl", "weapon_fiveseven2", 0, 10, true, 205, true, {TEAM_GUN})
  897. AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_glock2", 0, 10, true, 160, true, {TEAM_GUN})
  898. AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_p2282", 0, 10, true, 185, true, {TEAM_GUN})
  899.  
  900. AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_ak472", 2450, 10, false, nil, false, {TEAM_GUN})
  901. AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mp52", 2200, 10, false, nil, false, {TEAM_GUN})
  902. AddCustomShipment("M4", "models/weapons/w_rif_m4a1.mdl", "weapon_m42", 2450, 10, false, nil, false, {TEAM_GUN})
  903. AddCustomShipment("Mac 10", "models/weapons/w_smg_mac10.mdl", "weapon_mac102", 2150, 10, false, nil, false, {TEAM_GUN})
  904. AddCustomShipment("Pump shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_pumpshotgun2", 1750, 10, false, nil, false, {TEAM_GUN})
  905. AddCustomShipment("Sniper rifle", "models/weapons/w_snip_g3sg1.mdl", "ls_sniper", 3750, 10, false, nil, false, {TEAM_GUN})
  906.  
  907. AddCustomShipment("Cigarettes", "models/boxopencigshib.mdl", "durgz_cigarette", 150, 10, false, 0, false, {TEAM_DRUG})
  908. AddCustomShipment("Beer", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 200, 10, false, 0, false, {TEAM_DRUG})
  909. AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 400, 10, false, 0, false, {TEAM_DRUG})
  910. AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 250, 10, false, 0, false, {TEAM_DRUG})
  911. AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 500, 10, false, 0, false, {TEAM_DRUG})
  912. AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 400, 10, false, 0, false, {TEAM_DRUG})
  913. AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 600, 10, false, 0, false, {TEAM_DRUG})
  914. AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 550, 10, false, 0, false, {TEAM_DRUG})
  915.  
  916. AddCustomShipment("Jihad Bomb", "models/weapons/w_jb.mdl", "weapon_jihadbomb", 500, 1, true, 500, true, {TEAM_TERRORIST})
  917.  
  918. AddCustomVehicle("Jeep", 100)
  919. AddCustomVehicle("Airboat", 100, {TEAM_SGS})
  920.  
  921. AddCustomShipment("Colt 45"), "models/weapons/v_colt.mdl", "weapon_colt", 2500, 10, false, 0, false, {TEAM_TRADESMAN})
  922.  
  923. AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, "/buydruglab", {TEAM_GANG, TEAM_MOB})
  924. AddEntity("Money printer", "money_printer", "models/props_c17/consolebox01a.mdl", 1000, 2, "/buymoneyprinter")
  925. AddEntity("Microwave", "microwave", "models/props/cs_office/microwave.mdl", 400, 1, "/buymicrowave", TEAM_COOK)
  926. AddEntity("Gun lab", "gunlab", "models/props_c17/TrapPropeller_Engine.mdl", 500, 1, "/buygunlab", TEAM_GUN)
  927.  
  928. /*
  929. How to add custom vehicles:
  930. FIRST
  931. go ingame, type rp_getvehicles for available vehicles!
  932. then:
  933. AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
  934. Examples:
  935. AddCustomVehicle("Jeep", 100)
  936. AddCustomVehicle("Airboat", 600, {TEAM_GUN})
  937. AddCustomVehicle("Airboat", 600, {TEAM_GUN, TEAM_MEDIC})
  938.  
  939. Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt
  940.  
  941. HOW TO ADD CUSTOM SHIPMENTS:
  942. AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
  943.  
  944. Notes:
  945. MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
  946. CLASSNAME OF THE WEAPON
  947. there are half-life 2 weapons you can add:
  948. weapon_pistol
  949. weapon_smg1
  950. weapon_ar2
  951. weapon_rpg
  952. weapon_crowbar
  953. weapon_physgun
  954. weapon_357
  955. weapon_crossbow
  956. weapon_slam
  957. weapon_bugbait
  958. weapon_frag
  959. weapon_physcannon
  960. weapon_shotgun
  961. gmod_tool
  962.  
  963. But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
  964. Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
  965. This means the classname is weapon_posessor
  966.  
  967. YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
  968. YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
  969.  
  970. true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no
  971.  
  972. the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.
  973.  
  974.  
  975. EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */
  976.  
  977. //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
  978.  
  979. --EXAMPLE OF AN ENTITY(in this case a medkit)
  980. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
  981. --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
  982. --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
  983. -- ADD CUSTOM SHIPMENTS HERE(next line):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement