Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.86 KB | None | 0 0
  1. -- [[ Addon by Diablos | Version 2 ]] --
  2. -- [[ SteamID64 of the buyer: 76561198132130492. Hoping you like the addon. ]] --
  3. -- [[ BEFORE OPENING A TICKET ON GMODSTORE READ THE FAQ AT http://diabloscoder.com/faq/. ]] --
  4. -- [[ This is the configuration file. ]] --
  5.  
  6. -- [[ /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ DON'T TOUCH ALL OF THIS /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ ]] --
  7. Diablos = Diablos or {}
  8. Diablos.RS = {}
  9. Diablos.RS.Colors = {}
  10. Diablos.RS.Download = {}
  11. Diablos.RS.Records = {}
  12. Diablos.RS.Strings = {}
  13. -- [[ /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ NOW YOU CAN EDIT THE THINGS BELOW /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ ]] --
  14.  
  15. -- [[ General Configuration ]] --
  16.  
  17. Diablos.RS.Language = "french" -- Language of the script. Available languages are written at http://diabloscoder.com/languages.
  18.  
  19. Diablos.RS.MPHCounter = false -- true = MPH system / false = KMH system.
  20.  
  21. Diablos.RS.Speedometer = true -- true = enable a (very very) basic speedometer (a rounded box with the speed). You must restart the server when you change this value.
  22.  
  23. -- [ If Diablos.RS.Speedometer is set on true ] --
  24.  
  25. Diablos.RS.SpeedometerPosX = 0.8 -- X pos of the Speedometer. The value must be between 0 and 1, 0 at the left and 1 at the right.
  26.  
  27. Diablos.RS.SpeedometerPosY = 0.9 -- Y pos of the Speedometer. The value must be between 0 and 1, 0 at the top and 1 at the bottom.
  28.  
  29. -- [[ End of this If ]] --
  30.  
  31. Diablos.RS.OwnerOrDriver = true -- true = man who will be caught at an excessive speed will be the OWNER of the vehicle / false = will be the DRIVER of the vehicle.
  32.  
  33. Diablos.RS.GovernementVehicles = { -- Classnames of vehicles (which are probably governement ones) which can't be caught at an excessive speed by a speed gun or by a speed camera.
  34. -- put your vehicles here.
  35. }
  36.  
  37. Diablos.RS.JobVehicles = { -- Jobs which can't be caught at an excessive speed whatsoever the vehicles they are driving.
  38. "Policier Municipale",
  39. "Policier Nationale",
  40. "Commissaire",
  41. "*WL* Chef RAID",
  42. "*WL**VIP* Sniper RAID",
  43. "*WL* Sniper RAID",
  44. "*WL* Medecin RAID",
  45. "BAC",
  46. "*VIP* Militaire",
  47. "*VIP* Chef Militaire",
  48. "*VIP* Policier Nationale Corrompu",
  49. "Pompier Volontaire",
  50. "WL*Pompier",
  51. "*WL* Equipier RAID",
  52. "Docteur",
  53. "*VIP* Chef Militaire",
  54. "*WL* Gouverneur de la République",
  55. "*VIP* BAC"
  56. }
  57.  
  58. Diablos.RS.ARCBank = true -- [ONLY WORKS ON THE PAID VERSION!] true = you use the ARCBank addon (https://www.gmodstore.com/scripts/view/324/) AND you want to make that the money will be taken from the bank account of the man himself if he doesn't have enough money in wallet.
  59.  
  60. Diablos.RS.DriverLicense = true -- true = you use the Driver License System addon (https://www.gmodstore.com/scripts/view/3152) AND you want to make that if someone is caught by a radar he will win/loose (depending of country) some points on his license.
  61.  
  62. -- [[ If Diablos.RS.DriverLicense is set to true ]] --
  63.  
  64. Diablos.RS.DLAmountMoreSpeed = 30 -- Amount of kilometers/miles above the speed limit to add 1 driver point to win/loose. 0 means it's 1 point removed whatsoever the speeding regarding the speed limit.
  65.  
  66. -- [[ End of this If ]] --
  67.  
  68. Diablos.RS.ShowBestRecords = true --true = by pressing the +USE (E) key in front of a speed camera, you will have a frame showing the best speed records.
  69.  
  70. -- [[ If Diablos.RS.DriverLicense is set to true ]] --
  71.  
  72. Diablos.RS.BestRecordsTop = 5 -- Amount of records showed. It depends of if you want a top 3, top 5, top 10 or whatsoever.
  73.  
  74. -- [[ End of this If ]] --
  75.  
  76. Diablos.RS.AutomaticWanted = false -- true = the man who will pay the fine will be wanted too due to his excessive speed.
  77.  
  78. -- [[ If Diablos.RS.AutomaticWanted is set to true ]] --
  79.  
  80. Diablos.RS.AutomaticWantedReason = "Caught at an excessive speed!" -- Reason text when the player will be in the wanted state due to his excessive speed.
  81.  
  82. -- [[ End of this If ]] --
  83.  
  84. Diablos.RS.WantedIfNotEnoughMoney = true -- true = the man who will pay the fine will be wanted if he can't pay the entire fine.
  85.  
  86. -- [[ If Diablos.RS.AutomaticWanted is set to true ]] --
  87.  
  88. Diablos.RS.NotEnoughMoneyWantedReason = "[RADAR] Excès de vitesse, ammende non payé" -- Reason text when the player will be in the wanted state due to the lack of money to pay the entire fine.
  89.  
  90. -- [[ End of this If ]] --
  91.  
  92. -- [[ Money depending speed settings ]] --
  93.  
  94. -- [[ Example usage: You have the value Diablos.RS.MoneyMoreSpeed set to 5 & Diablos.RS.MoneyAdded set to 0.2:
  95. -- Let's say you are driving at 50MPH while the radar is fixed at 40MPH. The fine price when you are caught by the radar is set at $100.
  96. -- You are 10MPH above the speed limit, which means it's 2* the value Diablos.RS.MoneyMoreSpeed you set. Since Diablos.RS.MoneyAdded is set to 0.2,
  97. -- it means that you pay 0.2*fine price = 0.2*100 = $20 more and since you are 2*Diablos.RS.MoneyMoreSpeed above the speed limit, you'll pay 2*20=$40
  98. -- plus the initial fine price which is $100 so you'll pay $140 total. If you are 15MPH above the speed limit it will be $160 total and so on.
  99. -- TO-KNOW: if the man caught is at 49MPH he will pay $120; $140 are only when you are at 50MPH or more.
  100. -- ]]
  101.  
  102. Diablos.RS.MoneyMoreSpeed = 0 -- This is the amount of kilometers/miles above the speed limit to add some money (the value Diablos.RS.MoneyToAdd) for the final fine price. 0 to disable.
  103.  
  104. Diablos.RS.MoneyToAdd = 0 -- This is the amount of money relative to the fine price which will be added every Diablos.RS.MoneyMoreSpeed MPH/KMH more than the speed limit. 0 to disable.
  105.  
  106. -- [[ Speed Gun (SWEP) settings ]] --
  107.  
  108. Diablos.RS.SpeedLimit = 90 -- Speed limit in the server. If someone is caught at more than this value, he will have a fine.
  109.  
  110. Diablos.RS.FinePrice = 0 -- Price the man who has been caught will automatically pay if he drove too fast.
  111.  
  112. Diablos.RS.CopsAbilitySpeedLimit = true -- true = a cop can change the speedlimit of his own speed gun by typing a command. The speedlimit he will set must be between two values configurable below.
  113.  
  114. -- [ If Diablos.RS.CopsAbilitySpeedLimit is set to true ] --
  115.  
  116. Diablos.RS.CommandCopsSpeedLimit = "/vitesse" -- Text a cop must type inside his chat to change the speedlimit. He must type "<THECOMMAND> <THEVALUE>", "/speed 50" by example.
  117.  
  118. Diablos.RS.CopsSpeedLimitMinVal = 30 -- Minimal value: a cop can't put the speed of his own speed gun to below than this value (to avoid shitty non-RP cops).
  119.  
  120. Diablos.RS.CopsSpeedLimitMaxVal = 140 -- Maximal value: a cop can't put the speed of his own speed gun to above than this value (to avoid shitty non-RP cops).
  121.  
  122. Diablos.RS.CopsMessageSpeedLimit = "Tapes " .. Diablos.RS.CommandCopsSpeedLimit .. " suivis de la limitation de vitesse (entre " .. Diablos.RS.CopsSpeedLimitMinVal .. " et " .. Diablos.RS.CopsSpeedLimitMaxVal .. ") si vous voulez choisir la vitesse de votre propre radar." -- Text which will appear if a cop takes his speedgun. Be careful when you try to modify the string.
  123.  
  124. -- [[ End of this If ]] --
  125.  
  126. -- [[ Speed Camera (Entity) settings ]] --
  127.  
  128. Diablos.RS.ShowSpeedAboveRadar = false -- true = speed limit above all radar entities are shown (kind of help for drivers).
  129.  
  130. -- [[ Color Theme Configuration ]] --
  131.  
  132. Diablos.RS.Colors.Blurs = true -- true = enable blur effects (around the frames NOT in them).
  133.  
  134. Diablos.RS.Colors.Frame = Color(50, 50, 50, 200) -- Color of the frame.
  135.  
  136. Diablos.RS.Colors.Panel = Color(100, 100, 100, 40) -- Color of the panels in the frame.
  137.  
  138. Diablos.RS.Colors.Header = Color(80, 80, 140, 200) -- Color of the headers.
  139.  
  140. Diablos.RS.Colors.VBarGrip = Color(40, 40, 120, 120) -- Color of the vertical bar grip.
  141.  
  142. Diablos.RS.Colors.VBarBG = Color(75, 75, 75, 255) -- Color of the vertical bar background.
  143.  
  144. Diablos.RS.Colors.Label = Color(220, 220, 220, 220) -- Color of the labels (text in frames).
  145.  
  146. Diablos.RS.Colors.LabelHovered = Color(50, 50, 50, 220) -- If it's a button, color of the labels when they are in the "hovered" mode (there is the mouse on the label).
  147.  
  148. Diablos.RS.Colors.LabelDown = Color(0, 0, 0, 220) -- If it's a button, color of the labels when they are in the "down" mode (you press left click on the label).
  149.  
  150. Diablos.RS.Colors.AboveRadarText = Color(230, 230, 230, 250) -- Color of the 'metric limit' above the radars.
  151.  
  152. Diablos.RS.Colors.AboveRadarBorder = Color(50, 50, 50, 200) -- Color of the borders around the 'metric limit' of the radars.
  153.  
  154. Diablos.RS.Colors.SpeedometerBG = Color(0, 0, 255, 200) -- Color of the speedometer background.
  155.  
  156. Diablos.RS.Colors.SpeedometerText = Color(255, 255, 255, 255) -- Color of the speedometer text.
  157.  
  158. -- [[ Content Download Configuration ]] --
  159.  
  160. Diablos.RS.Download.FastDL = true -- true = clients install the contents via FastDL.
  161.  
  162. Diablos.RS.Download.Workshop = false -- true = clients install the contents via Workshop.
  163.  
  164. -- [[ End of the configuration file ]] --
  165.  
  166. TPRSAExtensions() -- DO NOT DELETE THIS LINE. This line updates the language strings and some informations of the addon.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement