Advertisement
DarkNessProvides

UnknownRP FAS2:AMMO All completely done

Nov 13th, 2015
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.80 KB | None | 0 0
  1. --[[---------------------------------------------------------------------------
  2. Ammo types
  3. ---------------------------------------------------------------------------
  4. Ammo boxes that can be purchased in the F4 menu.
  5.  
  6. Add your custom ammo types in this file. Here's the syntax:
  7. DarkRP.createAmmoType("ammoType", {
  8.     name = "Ammo name",
  9.     model = "Model",
  10.     price = 1234,
  11.     amountGiven = 5678,
  12.     customCheck = function(ply) return ply:IsAdmin()
  13. })
  14.  
  15. ammoType: The name of the ammo that Garry's mod recognizes
  16.     If you open your SWEP's shared.lua, you can find the ammo name next to
  17.     SWEP.Primary.Ammo = "AMMO NAME HERE"
  18.     or
  19.     SWEP.Secondary.Ammo = "AMMO NAME HERE"
  20.  
  21. name: The name you want to give to the ammo. This can be anything.
  22.  
  23. model: The model you want the ammo to have in the F4 menu
  24.  
  25. price: the price of your ammo in dollars
  26.  
  27. amountGiven: How much bullets of this ammo is given every time the player buys it
  28.  
  29. customCheck: (Optional! Advanced!) a Lua function that describes who can buy the ammo.
  30.     Similar to the custom check function for jobs and shipments
  31.     Parameters:
  32.         ply: the player who is trying to buy the ammo
  33.  
  34. Examples are below!
  35.  
  36. Pistol ammo type. Used by p228, desert eagle and all other pistols
  37. Example 1:
  38.  
  39. DarkRP.createAmmoType("pistol", {
  40.     name = "Pistol ammo",
  41.     model = "models/Items/BoxSRounds.mdl",
  42.     price = 30,
  43.     amountGiven = 24
  44. })
  45.  
  46. Buckshot ammo, used by the shotguns
  47. Example 2:
  48.  
  49. DarkRP.createAmmoType("buckshot", {
  50.     name = "Shotgun ammo",
  51.     model = "models/Items/BoxBuckshot.mdl",
  52.     price = 50,
  53.     amountGiven = 8
  54. })
  55.  
  56. Rifle ammo, usually used by assault rifles
  57. Example 3:
  58.  
  59. DarkRP.createAmmoType("smg1", {
  60.     name = "Rifle ammo",
  61.     model = "models/Items/BoxMRounds.mdl",
  62.     price = 80,
  63.     amountGiven = 30
  64. })
  65.  
  66. Add new ammo types under the next line!
  67. ---------------------------------------------------------------------------]]
  68.  
  69.  
  70. DarkRP.createAmmoType("fas2_ammo_9x18", {
  71.     name = "9x18 MM Ammo (60 Rounds)",
  72.     model = "models/Items/BoxMRounds.mdl",
  73.     price = 250,
  74.     amountGiven = 60,
  75. })
  76.  
  77. DarkRP.createAmmoType("fas2_ammo_9x19", {
  78.     name = "9x19 MM Ammo (40 Rounds)",
  79.     model = "models/Items/BoxMRounds.mdl",
  80.     price = 250,
  81.     amountGiven = 40,
  82. })
  83.  
  84. DarkRP.createAmmoType("fas2_ammo_10x25", {
  85.     name = "10x25 Ammo (60 Rounds)",
  86.     model = "models/Items/BoxMRounds.mdl",
  87.     price = 250,
  88.     amountGiven = 60,
  89. })
  90.  
  91. DarkRP.createAmmoType("fas2_ammo_12gauge", {
  92.     name = "12 Gauge Ammo (16 Rounds)",
  93.     model = "models/Items/BoxMRounds.mdl",
  94.     price = 250,
  95.     amountGiven = 16,
  96. })
  97.  
  98. DarkRP.createAmmoType("fas2_ammo_23x75", {
  99.     name = "23x75MMR Ammo (20 Rounds)",
  100.     model = "models/Items/BoxMRounds.mdl",
  101.     price = 250,
  102.     amountGiven = 20,
  103. })
  104.  
  105. DarkRP.createAmmoType("fas2_ammo_40mm", {
  106.     name = "40MM HE Ammo (10 Rounds)",
  107.     model = "models/Items/BoxMRounds.mdl",
  108.     price = 250,
  109.     amountGiven = 10,
  110. })
  111.  
  112. DarkRP.createAmmoType("fas2_ammo_44mag", {
  113.     name = ".44 Magnum Ammo (12 Rounds)",
  114.     model = "models/Items/BoxMRounds.mdl",
  115.     price = 250,
  116.     amountGiven = 20,
  117. })
  118.  
  119. DarkRP.createAmmoType("fas2_ammo_45acp", {
  120.     name = ".45 ACP Ammo (30 Rounds)",
  121.     model = "models/Items/BoxMRounds.mdl",
  122.     price = 250,
  123.     amountGiven = 30,
  124. })
  125.  
  126. DarkRP.createAmmoType("fas2_ammo_50ae", {
  127.     name = ".50 AE Ammo (14 Rounds)",
  128.     model = "models/Items/BoxMRounds.mdl",
  129.     price = 250,
  130.     amountGiven = 14,
  131. })
  132.  
  133. DarkRP.createAmmoType("fas2_ammo_50bmg", {
  134.     name = ".50 BMG Ammo (20 Rounds)",
  135.     model = "models/Items/BoxMRounds.mdl",
  136.     price = 250,
  137.     amountGiven = 20,
  138. })
  139.  
  140. DarkRP.createAmmoType("fas2_ammo_357sig", {
  141.     name = ".357 SIG Ammo (30 Rounds)",
  142.     model = "models/Items/BoxMRounds.mdl",
  143.     price = 250,
  144.     amountGiven = 30,
  145. })
  146.  
  147. DarkRP.createAmmoType("fas2_ammo_380acp", {
  148.     name = ".380 ACP Ammo (60 Rounds)",
  149.     model = "models/Items/BoxMRounds.mdl",
  150.     price = 250,
  151.     amountGiven = 60,
  152. })
  153.  
  154. DarkRP.createAmmoType("fas2_ammo_454casull", {
  155.     name = ".500 S&W Ammo (10 Rounds)",
  156.     model = "models/Items/BoxMRounds.mdl",
  157.     price = 250,
  158.     amountGiven = 10,
  159. })
  160.  
  161. DarkRP.createAmmoType("fas2_ammo_545x39", {
  162.     name = "5.45x39MM Ammo (60 Rounds)",
  163.     model = "models/Items/BoxMRounds.mdl",
  164.     price = 250,
  165.     amountGiven = 60,
  166. })
  167.  
  168. DarkRP.createAmmoType("fas2_ammo_556x45", {
  169.     name = "5.56x45MM Ammo (60 Rounds)",
  170.     model = "models/Items/BoxMRounds.mdl",
  171.     price = 250,
  172.     amountGiven = 60,
  173. })
  174.  
  175. DarkRP.createAmmoType("fas2_ammo_762x39", {
  176.     name = "7.62x39MM Ammo (60 Rounds)",
  177.     model = "models/Items/BoxMRounds.mdl",
  178.     price = 250,
  179.     amountGiven = 60,
  180. })
  181.  
  182. DarkRP.createAmmoType("fas2_ammo_762x51", {
  183.     name = "7.62x51MM Ammo (40 Rounds)",
  184.     model = "models/Items/BoxMRounds.mdl",
  185.     price = 250,
  186.     amountGiven = 40,
  187. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement