SHARE
TWEET

Untitled

Fizzzzz Jan 24th, 2020 137 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----------------------
  2. --      IMPORTANT     -
  3. -----------------------
  4. -- With this new version, most of the entity based configuration is done in-game with the toolgun. You create and configure all the vaults and the Banker in-game.
  5. -- This allows for you to easily have several of the same vault with different configurations, making the addon easier to use in the process.
  6.  
  7.  
  8. /* ============
  9.  General Config
  10. =============*/
  11.  
  12. -- Chat prefix
  13. perfectVault.Config.PrefixColor = Color(155, 0, 0)
  14. perfectVault.Config.Prefix = "[pVault]"
  15.  
  16. -- Font used throughout the addon
  17. perfectVault.Config.Font = "Calibri"
  18.  
  19.  
  20. --- The usergroups/SteamIDs that get access to the in-game entity maker
  21. perfectVault.Config.AccessGroups = {}
  22. perfectVault.Config.AccessGroups["superadmin"] = true
  23. perfectVault.Config.AccessGroups["STEAM_0:1:467714925"] = true
  24.  
  25. /* =============
  26.  Moneybag Config
  27. ==============*/
  28.  
  29. -- Button used to throw the bag (See: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE for a list of button codes)
  30. perfectVault.Config.ButtonToThrowBag = 17 -- 17 = G
  31. -- Along with the code above, please also state the letter so that it can be used in user interfaces
  32. perfectVault.Config.ButtonToThrowBagString = "G"
  33.  
  34. -- How many bags can a user hold on their back (Regardless of this amount, it will only actually show 1 bag visually)
  35. perfectVault.Config.MaxBagCarry = 3
  36.  
  37. -- If you wish to alter the walk and run speed of someone holding moneybags, alter these values here (Set it to false to disable it)
  38. perfectVault.Config.MoneybagWalkSpeed = 120
  39. perfectVault.Config.MoneybagRunSpeed = 200
  40.  
  41. -- Should the player drop all the bags they are carrying when they die?
  42. perfectVault.Config.DropBagsOnDeath = true
  43.  
  44.  
  45.  
  46. /* =======
  47.  UI Config
  48. ========*/
  49. -- You can increase or decrease how hard the derma unlock system is. By lowering these values, it will make the bar smaller, making it harder to hit. The numbers are 0% of the height of the black bar. You can set a max and min % the bar can be.
  50. perfectVault.Config.DermaLevelMin = 0.05
  51. perfectVault.Config.DermaLevelMax = 0.2
  52.  
  53. -- This is the speed of which the white bar moves. The higher this number, the faster it is
  54. perfectVault.Config.DermaBarSpeed = 1.5
  55.  
  56. -- When you unlock a pin, should it play a sound?
  57. perfectVault.Config.DermaSounds = true
  58. -- If the above is true, what sound should it play?
  59. perfectVault.Config.DermaSoundsDir = "plats/hall_elev_door.wav"
  60.  
  61. -- The alarm sound
  62. perfectVault.Config.AlarmSound = "ambient/alarms/alarm1.wav"
  63.  
  64.  
  65. /* =========
  66.  Mask Config
  67. ==========*/
  68. -- DEVELOPER NOTICE
  69. -- I have a class that allows you to dsiplay "Masked person" as the user's name when they are wearing the mask.
  70. -- The class is ply:MaskedName() and it is both client and server side. If they are not wearing a mask, it will return their normal name.
  71. -- Open a ticket if you need any help with this.
  72. -- END OF DEVELOPER NOTICE
  73.  
  74. -- Button used to put on the mask (See: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE for a list of button codes)
  75. perfectVault.Config.ButtonToMaskOn = 18 -- 18 = H
  76. -- Along with the code above, please also state the letter so that it can be used in user interfaces
  77. perfectVault.Config.ButtonToMaskOnString = "H"
  78.  
  79. -- Button used to drop the mask (See: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE for a list of button codes)
  80. perfectVault.Config.ButtonToMaskDrop = 20 -- 18 = J
  81. -- Along with the code above, please also state the letter so that it can be used in user interfaces
  82. perfectVault.Config.ButtonToMaskDropString = "J"
  83.  
  84. -- Should the user lose their mask on death?
  85. perfectVault.Config.LoseMaskOnDeath = true
  86.  
  87. -- Should the mask be the halloween pumpkin hat?
  88. perfectVault.Config.HalloweenModels = false
  89.  
  90.  
  91.  
  92. /* ========
  93.  Job Config
  94. =========*/
  95.  
  96. -- If this option is true, then anyone who is not government can rob the bank (Saves you adding every job to the criminal table.)
  97. perfectVault.Config.AllowAnyoneToRob = true
  98.  
  99. hook.Add("loadCustomDarkRPItems", "pvault_load_jobs", function() -- Ignore this line, this just sets up the jobs so they load at the correct time.
  100.  
  101.     -- If you have your police jobs in the DarkRP government table (that thing at the bottom of the jobs.lua file) then they will be considered police without you needing to put the team in here. This is for the extra jobs.
  102.     perfectVault.Config.Government = {}
  103.     perfectVault.Config.Government[TEAM_PS0] = true
  104.     perfectVault.Config.Government[TEAM_PS1] = true
  105.     perfectVault.Config.Government[TEAM_PS2] = true
  106.     perfectVault.Config.Government[TEAM_PS3] = true
  107.     perfectVault.Config.Government[TEAM_PS4] = true
  108.     perfectVault.Config.Government[TEAM_PS5] = true
  109.     perfectVault.Config.Government[TEAM_PS6] = true
  110.     perfectVault.Config.Government[TEAM_PS7] = true
  111.     perfectVault.Config.Government[TEAM_PS8] = true
  112.     perfectVault.Config.Government[TEAM_PS9] = true
  113.     perfectVault.Config.Government[TEAM_PS10] = true
  114.     perfectVault.Config.Government[TEAM_PS11] = true
  115.     perfectVault.Config.Government[TEAM_PS12] = true
  116.     perfectVault.Config.Government[TEAM_PS13] = true
  117.     perfectVault.Config.Government[TEAM_PS14] = true
  118.     perfectVault.Config.Government[TEAM_PS15] = true
  119.     perfectVault.Config.Government[TEAM_SCO0] = true
  120.     perfectVault.Config.Government[TEAM_SCO1] = true
  121.     perfectVault.Config.Government[TEAM_SCO2] = true
  122.     perfectVault.Config.Government[TEAM_SCO3] = true
  123.     perfectVault.Config.Government[TEAM_SCO4] = true
  124.     perfectVault.Config.Government[TEAM_SCO5] = true
  125.     perfectVault.Config.Government[TEAM_SCO6] = true
  126.     perfectVault.Config.Government[TEAM_SCO7] = true
  127.     perfectVault.Config.Government[TEAM_NHS0] = true
  128.     perfectVault.Config.Government[TEAM_SCO1] = true
  129.     perfectVault.Config.Government[TEAM_SCO2] = true
  130.     perfectVault.Config.Government[TEAM_SCO3] = true
  131.     perfectVault.Config.Government[TEAM_SCO4] = true
  132.     perfectVault.Config.Government[TEAM_SCO5] = true
  133.     perfectVault.Config.Government[TEAM_SCO6] = true
  134.     perfectVault.Config.Government[TEAM_SCO7] = true
  135.     perfectVault.Config.Government[TEAM_SCO8] = true
  136.     perfectVault.Config.Government[TEAM_SCO9] = true
  137.     perfectVault.Config.Government[TEAM_SCO10] = true
  138.     perfectVault.Config.Government[TEAM_FAR0] = true
  139.     perfectVault.Config.Government[TEAM_FAR1] = true
  140.     perfectVault.Config.Government[TEAM_FAR2] = true
  141.     perfectVault.Config.Government[TEAM_FAR3] = true
  142.     perfectVault.Config.Government[TEAM_FAR4] = true
  143.     perfectVault.Config.Government[TEAM_FAR5] = true
  144.     perfectVault.Config.Government[TEAM_FAR6] = true
  145.     perfectVault.Config.Government[TEAM_FAR7] = true
  146.     perfectVault.Config.Government[TEAM_FAR8] = true
  147.     perfectVault.Config.Government[TEAM_FAR9] = true
  148.     perfectVault.Config.Government[TEAM_FAR10] = true
  149.  
  150.    
  151.     -- List here all the jobs that can rob the bank
  152.     perfectVault.Config.Criminals = {}
  153.     perfectVault.Config.Criminals[TEAM_ZT0] = true
  154.     perfectVault.Config.Criminals[TEAM_ZT1] = true
  155.     perfectVault.Config.Criminals[TEAM_ZT2] = true
  156.     perfectVault.Config.Criminals[TEAM_ZT3] = true
  157.     perfectVault.Config.Criminals[TEAM_ZT4] = true
  158.     perfectVault.Config.Criminals[TEAM_ZT5] = true
  159.     perfectVault.Config.Criminals[TEAM_ZT6] = true
  160.     perfectVault.Config.Criminals[TEAM_CH0] = true
  161.     perfectVault.Config.Criminals[TEAM_CH1] = true
  162.     perfectVault.Config.Criminals[TEAM_CH2] = true
  163.     perfectVault.Config.Criminals[TEAM_CH3] = true
  164.     perfectVault.Config.Criminals[TEAM_CH4] = true
  165.     perfectVault.Config.Criminals[TEAM_CH5] = true
  166.     perfectVault.Config.Criminals[TEAM_CH6] = true
  167.     perfectVault.Config.Criminals[TEAM_7th0] = true
  168.     perfectVault.Config.Criminals[TEAM_7th1] = true
  169.     perfectVault.Config.Criminals[TEAM_7th2] = true
  170.     perfectVault.Config.Criminals[TEAM_7th3] = true
  171.     perfectVault.Config.Criminals[TEAM_7th4] = true
  172.     perfectVault.Config.Criminals[TEAM_7th5] = true
  173.     perfectVault.Config.Criminals[TEAM_7th6] = true
  174.     perfectVault.Config.Criminals[TEAM_6th0] = true
  175.     perfectVault.Config.Criminals[TEAM_6th1] = true
  176.     perfectVault.Config.Criminals[TEAM_6th2] = true
  177.     perfectVault.Config.Criminals[TEAM_6th3] = true
  178.     perfectVault.Config.Criminals[TEAM_6th4] = true
  179.     perfectVault.Config.Criminals[TEAM_6th5] = true
  180.     perfectVault.Config.Criminals[TEAM_6th6] = true
  181.     perfectVault.Config.Criminals[TEAM_12th0] = true
  182.     perfectVault.Config.Criminals[TEAM_12th1] = true
  183.     perfectVault.Config.Criminals[TEAM_12th2] = true
  184.     perfectVault.Config.Criminals[TEAM_12th3] = true
  185.     perfectVault.Config.Criminals[TEAM_12th4] = true
  186.     perfectVault.Config.Criminals[TEAM_12th5] = true
  187.     perfectVault.Config.Criminals[TEAM_12th6] = true
  188.  
  189. end) -- Ignore this line also
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top