Advertisement
DiablosCorp

gate_config.lua

Nov 11th, 2018
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.71 KB | None | 0 0
  1. -- [[ Addon by Diablos | Version 1.1 ]] --
  2. -- [[ SteamID64 of the buyer: {{ user_id }}. Hoping you like the addon. ]] --
  3. -- [[ BEFORE OPENING A TICKET ON GMODSTORE READ THE KNOWLEDGE BASE. ]] --
  4. -- [[ This is the configuration file. ]] --
  5.  
  6. -- [[ /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\      DON'T TOUCH ALL OF THIS      /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ ]] --
  7. Diablos = Diablos or {}
  8. Diablos.GS = {}
  9. Diablos.GS.Colors = {}
  10. Diablos.GS.Download = {}
  11. Diablos.GS.Strings = {}
  12. Diablos.GS.Gates = {}
  13. Diablos.GS.Parkings = {}
  14. -- [[ /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ NOW YOU CAN EDIT THE THINGS BELOW /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ ]] --
  15.  
  16. -- [[ General Configuration ]] --
  17.  
  18.     Diablos.GS.Language = "english" -- Language of the script. Available languages are written at http://diabloscoder.com/languages.
  19.  
  20.     Diablos.GS.AdminGroups = {"superadmin", "admin"} -- Groups which can open the admin frames.
  21.  
  22.     Diablos.GS.MachineActionKey = IN_RELOAD -- The key (IN enumeration!) to press the button of a machine gate!
  23.  
  24.     Diablos.GS.GateHealth = 200 -- Health of a gate (if the feature "Gate can be broken" is enabled). YOU LOSE THE SPEED OF THE VEHICLE WHICH TAKES YOU.
  25.  
  26.     Diablos.GS.GateRetrieveWorkableState = 50 -- Amount of seconds before the gate becomes in the "workable" state after the gate has been broken. If you put this to 0, you must take the "Gate" entity, gravgun it and put it on the base gate to retrieve the "workable" state of the gate.
  27.  
  28.     Diablos.GS.CrackMachineTime = 10 -- Amount of seconds to crack a machine when you hold the "Crack SWEP". 0 = instant crack.
  29.  
  30.     Diablos.GS.CrackRetrieveWorkableState = 50 -- Amount of seconds before the machine becomes in the "workable" state after the machine has been hacked using "Crack SWEP". Don't give the Crack SWEP if you don't want people to crack the machine gates.
  31.  
  32.     Diablos.GS.BreakMachineTime = 10 -- Amount of seconds to break a machine when you hold the "Lockpick SWEP". 0 = instant crack.
  33.  
  34.     Diablos.GS.BreakRetrieveWorkableState = 50 -- Amount of seconds before the machine becomes in the "workable" state after the machine has been broken using "Lockpick SWEP". Don't give the Crack SWEP if you don't want people to crack the machine gates.
  35.  
  36.     Diablos.GS.SparksWhenBroken = true -- true = machines which have been broken (using "Lockpick SWEP") will have Sparks particles.
  37.  
  38.     Diablos.GS.BillboardOptimization = 200 -- Value for optimization. The lower the value will be, near a billboard the player will have to be to see the informations.
  39.  
  40.     Diablos.GS.MachineDistance = 200 -- The distance between you (in your vehicle) and in the machine to retrieve a ticket. The lower the value will be, near a machine the player will have to be to retrieve a ticket.
  41.  
  42.     Diablos.GS.FreeVehicles = { -- Classnames of vehicles (which are probably governement ones) which don't pay when there is a parking or a toll.
  43.         -- put your vehicles here.
  44.     }
  45.  
  46.     Diablos.GS.FreeJobs = { -- Jobs which don't pay when there is a parking or a toll.
  47.         -- "Civil Protection",
  48.         -- "Civil Protection Chief"
  49.     }
  50.  
  51. -- [[ Color Theme Configuration ]] --
  52.  
  53.     -- [[ Colors of frame related things ]] --
  54.  
  55.         Diablos.GS.Colors.Blurs = true -- true = enable blur effects (around the frames NOT in them).
  56.  
  57.         Diablos.GS.Colors.Frame = Color(50, 50, 50, 200) -- Color of the frame.
  58.  
  59.         Diablos.GS.Colors.Panel = Color(100, 100, 100, 40) -- Color of the panels in the frame.
  60.  
  61.         Diablos.GS.Colors.Header = Color(80, 140, 80, 200) -- CoLor of the headers.
  62.  
  63.         Diablos.GS.Colors.Label = Color(220, 220, 220, 220) -- Color of the labels (text in frames).
  64.  
  65.         Diablos.GS.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).
  66.  
  67.         Diablos.GS.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).
  68.  
  69.         Diablos.GS.Colors.LoadingBar = Color(255, 0, 0, 255) -- Color of the loading bar when you are trying to break or crack a machine gate.
  70.  
  71.         Diablos.GS.Colors.BillboardText = Color(0, 0, 0, 255) -- Color of the texts on the billboard.
  72.  
  73.         Diablos.GS.Colors.MachineGreenText = Color(20, 200, 20, 220) -- Color of the machine text when it's green (retrieving a ticket, ticket took, thanks, free, ...)
  74.  
  75.         Diablos.GS.Colors.MachineRedText = Color(200, 20, 20, 220) -- Color of the machine text when it's red (not enough money, vehicle not detected,...)
  76.  
  77.         Diablos.GS.Colors.MachineBlueText = Color(20, 20, 200, 220) -- Color of the machine text when it's blue (on exit machines when you must insert a ticket / money or press the button if it's a free toll,...)
  78.  
  79. -- [[ Content Download Configuration ]] --
  80.  
  81.     Diablos.GS.Download.FastDL = false -- true = clients install the contents via FastDL.
  82.  
  83.     Diablos.GS.Download.Workshop = true -- true = clients install the contents via Workshop.
  84.  
  85. --[[-------------------------------------
  86. -- You can add the gate to be bought by cops or someone by taking the lines below. A gate isn't a base gate, it's only the gate part that you must to gravgun to make the gate works as it should be.
  87. -- Keep in mind that depending on what you put above, the gate retrieves its initial state after a certain amount of seconds anyway. But maybe it could be useful to have a job
  88. -- which has for job the fact of keeping the working state of the gates.....
  89. DarkRP.createEntity("Gate", {
  90.     ent = "gate",
  91.     model = "models/tpgsa/gate/gate.mdl",
  92.     price = 100,
  93.     max = 3,
  94.     cmd = "buygate",
  95.     allowed = {TEAM_POLICE, TEAM_CHIEF}
  96. })
  97. -------------------------------------]]--
  98.  
  99. -- [[ End of the configuration file ]] --
  100.  
  101. TPGSAExtensions() -- 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