Advertisement
dahhoovy

sh_attatchment_vendor_config.lua

Sep 28th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.90 KB | None | 0 0
  1. ATTACHMENT_VENDOR = {
  2. override = {
  3. enable = true // If this is set to true, Attachment Vendor will override functions in FAS2 and CW2
  4. // that deal with adding and removing weapon attachments.
  5. // In addition, these new functions will provide hooks for you to decide if an attachment
  6. // should be added or removed and what happens when and attachment is added or removed.
  7. },
  8.  
  9. ammo = {
  10. sell = true, // Should the vendor sell ammo for weapons?
  11. price = 75 // Price of buying ammo (1 clip worth)
  12. },
  13.  
  14. darkrpAllowedJobs = function() return {TEAM_GUN}; end, // List of DarkRP TEAM_ classes that spawn the vendor from F4/Entities
  15.  
  16. defaultAttachmentPrice = 100, // Default price for attachments that arent in the prices table below
  17. notifyPlayersOfInvalidAttachments = true, // Should the server print to player chat when it tries to get the price
  18. // of an attachment that doesnt have a price? (See the prices table below)
  19. getAttachmentPrice = function(ply, price, vendor)
  20. if (ply == vendor:Getowning_ent()) then
  21. return price * 0.75; // Owner pays 75% of the attachment price
  22. else
  23. return price;
  24. end
  25. end,
  26.  
  27. playerCanAffordAttachment = function(ply, att, price)
  28. if (isfunction(ply.canAfford)) then
  29. return ply:canAfford(price);
  30. else
  31. return true;
  32. end
  33. end,
  34.  
  35. playerPurchasedAttachment = function(ply, att, price)
  36. if (isfunction(ply.addMoney)) then
  37. ply:addMoney(-price);
  38. end
  39. end,
  40.  
  41. playerCanUseVendor = function(ply, ent)
  42. return true;
  43. end,
  44.  
  45. cw2Mags = {
  46. enable = true, // Use the CW2 Magazing addon (http://steamcommunity.com/sharedfiles/filedetails/?id=486217238)
  47. },
  48.  
  49.  
  50. prices = {
  51. // CW2
  52. bg_ak74_rpkbarrel = 650,
  53. bg_ak74_ubarrel = 350,
  54. bg_ak74foldablestock = 400,
  55. bg_ak74heavystock = 350,
  56. bg_ak74rpkmag = 500,
  57. bg_ar1560rndmag = 1000,
  58. bg_ar15heavystock = 400,
  59. bg_ar15sturdystock = 200,
  60. bg_bipod = 900,
  61. bg_deagle_compensator = 450,
  62. bg_deagle_extendedbarrel = 400,
  63. bg_foldsight = 50,
  64. bg_longbarrel = 800,
  65. bg_longbarrelmr96 = 800,
  66. bg_longris = 650,
  67. bg_magpulhandguard = 500,
  68. bg_mp530rndmag = 750,
  69. bg_mp5_kbarrel = 650,
  70. bg_mp5_sdbarrel = 450,
  71. bg_nostock = 400,
  72. bg_regularbarrel = 500,
  73. bg_retractablestock = 200,
  74. bg_ris = 150,
  75. bg_sg1scope = 900,
  76. md_acog = 600,
  77. md_acog_fixed = 700,
  78. md_aimpoint = 350,
  79. md_anpeq15 = 300,
  80. md_ballistic = 1000,
  81. md_bipod = 900,
  82. md_csgo_556 = 600,
  83. md_csgo_acog = 700,
  84. md_csgo_scope_ssg = 900,
  85. md_csgo_silencer_ballistic = 400,
  86. md_csgo_silencer_pistol = 400,
  87. md_csgo_silencer_rifle = 500,
  88. md_csgo_taclight = 100,
  89. md_docter = 100,
  90. md_elcan = 500,
  91. md_eotech = 100,
  92. md_foregrip = 400,
  93. md_kobra = 100,
  94. md_m203 = 10000,
  95. md_microt1 = 100,
  96. md_pbs1 = 500,
  97. md_pso1 = 750,
  98. md_reflex = 100,
  99. md_rmr = 100,
  100. md_saker = 300,
  101. md_schmidt_shortdot = 1000,
  102. md_trijicon = 800,
  103. md_tundra9mm = 200,
  104. md_uecw_60rnd = 1000,
  105. md_uecw_akmag = 500,
  106. md_uecw_cmag = 2500,
  107. md_uecw_csgo_556 = 600,
  108. md_uecw_emag = 300,
  109. md_uecw_foldsight = 50,
  110. md_uecw_usgimag = 100,
  111. uecw_skin_silencer = 200,
  112. am_magnum = 400,
  113. am_matchgrade = 400,
  114. md_cmore = 100,
  115. md_cobram2 = 100,
  116. md_insight_x2 = 100,
  117. md_nightforce_nxs = 100,
  118. md_sight_rail = 100,
  119. md_sight_rail_larue = 100,
  120. md_sight_railmount = 100,
  121. md_uecw_csgo_acog = 100,
  122. md_uecw_csgo_scope_ssg = 100,
  123. am_flechetterounds = 100,
  124. am_slugrounds = 100,
  125. bg_makarov_pb6p9 = 100,
  126. bg_sr3m = 100,
  127. bg_makarov_extmag = 100,
  128. bg_mac11_unfolded_stock = 100,
  129. bg_asval_20rnd = 100,
  130. bg_mac11_extended_barrel = 100,
  131. bg_vss_foldable_stock = 100,
  132. am_sp7 = 100,
  133. bg_makarov_pm_suppressor = 100,
  134. bg_asval = 100,
  135. bg_asval_30rnd = 100,
  136. bg_makarov_pb_suppressor = 100,
  137.  
  138. // CW2 MAG
  139. pistolMag = 50,
  140. smgMag = 60,
  141. arMag = 75,
  142. brMag = 70,
  143. srMag = 70,
  144.  
  145. // Khris SWEPs Collection
  146. bg_r8rail = 100,
  147. md_mark2em = 100,
  148. bg_makpmm12rnd = 100,
  149. am_7n31 = 100,
  150. bg_makpmm = 100,
  151. am_slugroundsneo = 100,
  152. md_khr_ins2ws_acog = 100,
  153. md_mnbrandnew2 = 100,
  154. am_slugrounds2k = 100,
  155. bg_makpmext = 100,
  156. md_avt40 = 100,
  157. md_bfstock = 100,
  158. md_extmag22 = 100,
  159. md_gemtechmm = 100,
  160. md_ins2_suppressor_ins = 100,
  161. md_cz52barrel = 100,
  162. bg_makpmmext = 100,
  163. bg_dsmag = 100,
  164. am_416barrett = 100,
  165. bg_sksbayonetfold = 100,
  166. bg_mncustombody = 100,
  167. bg_long38 = 100,
  168. bg_38 = 100,
  169. bg_short38 = 100,
  170. bg_3006extmag = 100,
  171. bg_mnobrezbody = 100,
  172. bg_mncarbinebody = 100,
  173. md_mnbrandnew1 = 100,
  174. md_shortdot = 100,
  175. bg_medium38 = 100,
  176. bg_rugerext = 100,
  177. md_cblongerbarrel = 100,
  178. md_tritiumispmm = 100,
  179. bg_sksbayonetunfold = 100,
  180. bg_6inchsw29 = 100,
  181. bg_delislescope = 100,
  182. bg_mdemag = 100,
  183. md_cblongbarrel = 100,
  184. bg_bentbolt = 100,
  185. md_fas2_eotech = 100,
  186. am_45lc = 100,
  187. md_mnolddark = 100,
  188. bg_skspuscope = 100,
  189. md_tritiumis = 100,
  190. bg_makpbsup = 100,
  191. am_flechette410 = 100,
  192. bg_judgelong = 100,
  193. bg_cbstock = 100,
  194. am_4borehp = 100,
  195. kry_docter_sight = 100,
  196. am_duprojectile = 100,
  197. md_pr3 = 100,
  198. md_pr2 = 100,
  199. md_makeshift = 100,
  200. odec3d_cmore_kry = 100,
  201. odec3d_barska_sight = 100,
  202. bg_4inchsw29 = 100,
  203. md_rugersup = 100,
  204. bg_cz52ext = 100,
  205. bg_ots_extmag = 100,
  206. md_lightbolt = 100,
  207. bg_hcarfoldsight = 100,
  208. md_cz52chrome = 100,
  209. md_tritiumispb = 100,
  210. bg_makpb6 = 100,
  211. bg_cz52compact = 100,
  212. md_nxs = 100,
  213. bg_judgelonger = 100,
  214. md_cz52silver = 100,
  215. md_prextmag = 100,
  216. md_fas2_aimpoint = 100,
  217. md_griplaser = 100,
  218. md_item62em = 100,
  219. md_microt1kh = 100,
  220. md_muzl = 100,
  221.  
  222. // FAS2
  223. c79 = 100,
  224. sks20mag = 100,
  225. compm4 = 100,
  226. mp5k30mag = 100,
  227. harrisbipod = 100,
  228. leupold = 100,
  229. eotech = 100,
  230. slugrounds = 100,
  231. uziwoodenstock = 100,
  232. tritiumsights = 100,
  233. foregrip = 100,
  234. acog = 100,
  235. sks30mag = 100,
  236. pso1 = 100,
  237. sg55x30mag = 100,
  238. suppressor = 100,
  239. m2120mag = 100
  240. }
  241. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement