Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.67 KB | None | 0 0
  1. -- [[ Addon by Diablos | Version 3.1.1 ]] --
  2. -- [[ SteamID64 of the buyer: 76561198090902198. Hoping you like the addon. ]] --
  3. -- [[ This is the configuration file. ]] --
  4.  
  5. -- [[ General Configuration ]] --
  6.  
  7. Diablos.RS.Language = "french" -- Language of the script. Available languages are written at http://diabloscoder.com/languages.
  8.  
  9. Diablos.RS.AdminGroups = { -- Groups able to use the Radar Placer toolgun.
  10. ["superadmin"] = true,
  11. ["sa"] = true,
  12. }
  13.  
  14. Diablos.RS.MPHCounter = false -- true = MPH system / false = KMH system.
  15.  
  16. 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.
  17.  
  18. -- [ If Diablos.RS.Speedometer is set to true ] --
  19.  
  20. Diablos.RS.SpeedometerPosX = 0.9 -- X pos of the Speedometer. The value must be between 0 and 1, 0 at the left and 1 at the right.
  21.  
  22. Diablos.RS.SpeedometerPosY = 0.85 -- Y pos of the Speedometer. The value must be between 0 and 1, 0 at the top and 1 at the bottom.
  23.  
  24. -- [[ End of this If ]] --
  25.  
  26. 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.
  27.  
  28. 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.
  29. -- put your vehicles here.
  30. -- ["charger12poltdm"] = true,
  31. }
  32.  
  33. Diablos.RS.JobVehicles = { -- Jobs which can't be caught at an excessive speed whatsoever the vehicles they are driving.
  34. ["*WL* Policier"] = true,
  35. ["Agent de police"] = true,
  36. ["*WL* Officier de police"] = true,
  37. ["*WL* Commissaire de police"] = true,
  38. ["Police Banalisé *VIP*"] = true,
  39. ["Membre du CGSU *VIP*"] = true,
  40. ["*WL* Officier du CGSU"] = true,
  41. }
  42.  
  43. Diablos.RS.NPCModel = "models/gman.mdl" -- Model of the NPC to pay fines (if you use it).
  44.  
  45. Diablos.RS.NPCHeadMessage = "Contravention à payer" -- Message ('title') above the NPC to pay fines. "" to disable.
  46.  
  47. Diablos.RS.AutoFine = false -- [SEP19 UPDATE] true = when you are caught the person caught automatically pays the fine (or what he can pay). false = you have to go to a NPC to pay your fines!
  48.  
  49. Diablos.RS.Indulgence = 0.1 -- The indulgence (speed allowed above the speedlimit before being taken for real). Can be a percent or a real value, it's the speed allowed compared to the speedlimit (0.1 = 10% of tolerance: you can be at 55MPH/KMH instead of 50 // 5 = 5MPH/KMH of tolerance: you can be at 95 instead of 90). 0 = disable.
  50.  
  51. Diablos.RS.IndulgenceSpeedGun = true -- If Diablos.RS.Indulgence is not at 0, then you can set this feature to true / false. true = the indulgence also applies for speed guns.
  52.  
  53. Diablos.RS.ARCBank = false -- [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.
  54.  
  55. 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.
  56.  
  57. -- [[ If Diablos.RS.DriverLicense is set to true ]] --
  58.  
  59. Diablos.RS.DLAmountMoreSpeed = 5 -- 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.
  60.  
  61. -- [[ End of this If ]] --
  62.  
  63. 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.
  64.  
  65. -- [[ If Diablos.RS.DriverLicense is set to true ]] --
  66.  
  67. Diablos.RS.BestRecordsTop = 10 -- Amount of records showed. It depends of if you want a top 3, top 5, top 10 or whatsoever.
  68.  
  69. -- [[ End of this If ]] --
  70.  
  71. Diablos.RS.AutomaticWanted = false -- true = the man who will pay the fine will be wanted too due to his excessive speed.
  72.  
  73. -- [[ If Diablos.RS.AutomaticWanted is set to true ]] --
  74.  
  75. Diablos.RS.AutomaticWantedReason = "Roule trop vite!" -- Reason text when the player will be in the wanted state due to his excessive speed.
  76.  
  77. -- [[ End of this If ]] --
  78.  
  79. Diablos.RS.WantedIfNotEnoughMoney = true -- true = the man who will pay the fine will be wanted if he can't pay the entire fine.
  80.  
  81. -- [[ If Diablos.RS.AutomaticWanted is set to true ]] --
  82.  
  83. Diablos.RS.NotEnoughMoneyWantedReason = "Ne paye pas sa contravention!" -- Reason text when the player will be in the wanted state due to the lack of money to pay the entire fine.
  84.  
  85. -- [[ End of this If ]] --
  86.  
  87. -- [[ Money depending speed settings ]] --
  88.  
  89. -- [[ Example usage: You have the value Diablos.RS.MoneyMoreSpeed set to 5 & Diablos.RS.MoneyAdded set to 0.2:
  90. -- 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.
  91. -- 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,
  92. -- 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
  93. -- 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.
  94. -- TO-KNOW: if the man caught is at 49MPH he will pay $120; $140 are only when you are at 50MPH or more.
  95. -- ]]
  96.  
  97. Diablos.RS.MoneyMoreSpeed = 5 -- 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.
  98.  
  99. Diablos.RS.MoneyToAdd = 0.2 -- 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.
  100.  
  101. -- [[ Speed Gun (SWEP) settings ]] --
  102.  
  103. Diablos.RS.SpeedLimit = 50 -- Default speed limit on the server. This value can be changed for every camera you put!
  104.  
  105. Diablos.RS.FinePrice = 500 -- Default fine price the caught player has to pay. This value can be changed for every camera you put!
  106.  
  107. -- [[ Speed Camera & Cops settings ]] --
  108.  
  109. Diablos.RS.ShowSpeedAboveRadar = false -- true = speed limit above all radar entities are shown (kind of help for drivers).
  110.  
  111. Diablos.RS.MoneyForCops = true -- true = for the speed cameras placed by the server, we detect all the cops which are on the server (there is no hierarchy system) and the money is subdivided by the amount of people in the GAMEMODE.CivilProtection.
  112.  
  113. Diablos.RS.MoneyForRadarOwners = false -- true = if you placed a speed camera by yourself, you receive the money taken by someone who has been caught (in other terms, the money is for you).
  114.  
  115. Diablos.RS.MinFinePrice = 200 -- Minimum fine price cops can put to apply parameters of their speed cameras.
  116.  
  117. Diablos.RS.MaxFinePrice = 5000 -- Maximum fine price cops can put to apply parameters of their speed cameras.
  118.  
  119. Diablos.RS.MinSpeedLimit = 10 -- Minimum speed limit cops can put to apply parameters of their speed cameras OR speedgun.
  120.  
  121. Diablos.RS.MaxSpeedLimit = 150 -- Maximum speed limit cops can put to apply parameters of their speed cameras OR speedgun.
  122.  
  123. Diablos.RS.OwnServerCameras = true -- true = cops can make they own or they change any parameter of the cameras initially owned by servers / false = they can't.
  124.  
  125. Diablos.RS.CopsCommand = "/vitesse" -- Text a cop must type on his chat to change the speedlimit of it's speedgun. He must type "<THECOMMAND> <THEVALUE>", "/speed 50" by example. "" = disable.
  126.  
  127. Diablos.RS.CopsMessage = "Tape " .. Diablos.RS.CopsCommand .. " suivit d'un nombre (entre " .. Diablos.RS.MinSpeedLimit .. " et " .. Diablos.RS.MaxSpeedLimit .. ") pour définir la limite de vitesse sur ton radar."
  128. -- This text will appear if a cop takes his speedgun, if he is trying to edit the speedlimit value of a speed camera or when he drives a vehicle equipped by a car camera. Be careful when you try to modify the string.
  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, 255) -- Color of the frame.
  135.  
  136. Diablos.RS.Colors.FrameLeft = Color(40, 40, 40, 255) -- Color of the frame menu, the left part on the records frame you can see by using the Radar Infos SWEP. It's also things as boxes around the records frame.
  137.  
  138. Diablos.RS.Colors.VBarGrip = Color(100, 100, 100, 120) -- Color of the vertical bar grip.
  139.  
  140. Diablos.RS.Colors.VBarBG = Color(20, 75, 75, 255) -- Color of the vertical bar background.
  141.  
  142. Diablos.RS.Colors.Label = Color(220, 220, 220, 220) -- Color of the labels (text in frames).
  143.  
  144. 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).
  145.  
  146. 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).
  147.  
  148. Diablos.RS.Colors.AboveRadarText = Color(230, 230, 230, 250) -- Color of the 'metric limit' above the radars. Also applies above NPC.
  149.  
  150. Diablos.RS.Colors.AboveRadarBorder = Color(50, 50, 50, 200) -- Color of the borders around the 'metric limit' of the radars. Also applies above NPC.
  151.  
  152. Diablos.RS.Colors.SpeedometerBG = Color(0, 0, 255, 200) -- Color of the speedometer background.
  153.  
  154. Diablos.RS.Colors.SpeedometerText = Color(255, 255, 255, 255) -- Color of the speedometer text.
  155.  
  156. -- [[ Content Download Configuration ]] --
  157.  
  158. Diablos.RS.Download.FastDL = false -- true = clients install the contents via FastDL.
  159.  
  160. Diablos.RS.Download.Workshop = true -- true = clients install the contents via Workshop.
  161.  
  162.  
  163. --[[-------------------------------------
  164. -- You can add the speed cameras to buy to your cops by taking the lines below:
  165. -- English speed camera
  166. DarkRP.createEntity("English speed camera", {
  167. ent = "english_speed_camera",
  168. model = "models/speed_camera/speed_camera.mdl",
  169. price = 100,
  170. max = 3,
  171. cmd = "buyenglishspeedcamera",
  172. allowed = {TEAM_POLICE, TEAM_CHIEF}
  173. })
  174.  
  175. -- French speed camera
  176. DarkRP.createEntity("French speed camera", {
  177. ent = "french_speed_camera",
  178. model = "models/french_speed_camera/french_speed_camera.mdl",
  179. price = 100,
  180. max = 3,
  181. cmd = "buyfrenchspeedcamera",
  182. allowed = {TEAM_POLICE, TEAM_CHIEF}
  183. })
  184. -------------------------------------]]--
  185.  
  186. -- [[ End of the configuration file ]] --
  187.  
  188. 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