Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.64 KB | None | 0 0
  1. -- If you need any help, just open a support ticket and I'll help you out.
  2.  
  3. /* ============
  4. General Config
  5. =============*/
  6.  
  7. -- Chat prefix
  8. perfectVault.Config.PrefixColor = Color(155, 0, 0)
  9. perfectVault.Config.Prefix = "[Vault]"
  10.  
  11. -- Font used throughout the addon
  12. perfectVault.Config.Font = "Calibri"
  13.  
  14. -- Can the vault be lockpicked to be unlocked? (I suggest you disable this and instead use the custom unlock system we provide)
  15. perfectVault.Config.PicklockUnlock = false
  16.  
  17.  
  18.  
  19. /* ================
  20. Door Vault Config
  21. ===================*/
  22.  
  23. -- The max amount of moneybags inside the vault (Anything higher than 11 will result in not all moneybags having representitive stacks in the model. But the addon will still work fine.)
  24. perfectVault.Config.MaxMoneybags = 11
  25.  
  26. -- How many moneybags does the vault start with (it will generate more over time.)
  27. perfectVault.Config.StartingMoneybags = 6
  28.  
  29. -- How often should a new bag be added the the vault? (seconds)
  30. perfectVault.Config.AddNewBag = 120
  31.  
  32. -- After the vault has been broken in to, how long before the door automatically closes again?
  33. perfectVault.Config.VaultOpenTime = 60
  34.  
  35. -- After the vault has been raided, how long till the cooldown expires? (Seconds)
  36. perfectVault.Config.RaidCooldown = 1200
  37.  
  38. /* =================
  39. Floor Vault Config
  40. ====================*/
  41.  
  42. -- The max amount of moneybags inside the vault (Anything higher than 8 will result in not all moneybags having representitive stacks in the model. But the addon will still work fine.)
  43. perfectVault.Config.FloorMaxMoneybags = 8
  44.  
  45. -- How many moneybags does the vault start with (it will generate more over time.)
  46. perfectVault.Config.FloorStartingMoneybags = 4
  47.  
  48. -- How often should a new bag be added the the vault? (seconds)
  49. perfectVault.Config.FloorAddNewBag = 120
  50.  
  51. -- After the vault has been broken in to, how long before the door automatically closes again?
  52. perfectVault.Config.FloorVaultOpenTime = 30
  53.  
  54. -- After the vault has been raided, how long till the cooldown expires? (Seconds)
  55. perfectVault.Config.FloorRaidCooldown = 900
  56.  
  57. /* ============
  58. Robbery Config
  59. =============*/
  60.  
  61. -- Minimum number of players needed on the server to start a bank robbery
  62. perfectVault.Config.NeededPlayers = 3
  63.  
  64. -- What % of people need to be cops in order to have the bank be robable. This is a decimal based system meaning 0.1 = 10%, 0.5 = 50%, 0.01 = 1%
  65. perfectVault.Config.NeededCops = 0.1
  66.  
  67. -- How long should the alarm last for? (Seconds)
  68. perfectVault.Config.AlarmLasting = 60
  69.  
  70. -- The alarm sound
  71. perfectVault.Config.AlarmSound = "ambient/alarms/alarm1.wav"
  72.  
  73. -- If you fail to unlock the vault, should it trigger an alarm?
  74. perfectVault.Config.VaultFailAlarm = true
  75.  
  76. -- If the alarm is triggered, should it inform all goverment?
  77. perfectVault.Config.VaultFailAlarmInformPolice = true
  78.  
  79. -- If you fail to unlock the vault, should it start a cooldown? (will be unraidable untill the cooldown ends)
  80. perfectVault.Config.VaultFailCooldown = false
  81.  
  82. -- Minimum numbers of money bags in the vault needed in order to be able to rob it
  83. perfectVault.Config.MinNeededBags = 1
  84.  
  85. -- When the vault is cracked, should it alert the police?
  86. perfectVault.Config.VaultAlertPolice = true
  87.  
  88. -- If the robber successfully robs the vault, should they get wanted?
  89. perfectVault.Config.WantedOnRobbery = true
  90. -- If the above is true, what is the wanted reason?
  91. perfectVault.Config.WantedReason = "Robbing the bank"
  92. -- You can enable this and it will want everyone around the bank that had access to rob it. Note, this may give false positives and want innocent people like hostages.
  93. perfectVault.Config.WantAround = false
  94. -- If the above is true, how close do they need to be?
  95. perfectVault.Config.WantAroundDistance = 200
  96.  
  97. -- 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.
  98. perfectVault.Config.DermaLevelMin = 0.05
  99. perfectVault.Config.DermaLevelMax = 0.2
  100.  
  101. -- This is the speed of which the white bar moves. The higher this number, the faster it is
  102. perfectVault.Config.DermaBarSpeed = 1.5
  103.  
  104. -- When you unlock a pin, should it play a sound?
  105. perfectVault.Config.DermaSounds = true
  106. -- If the above is true, what sound should it play?
  107. perfectVault.Config.DermaSoundsDir = "plats/hall_elev_door.wav"
  108.  
  109.  
  110.  
  111. /* ========
  112. NPC Config
  113. If you wish to run extra actions like giving XP when the user cleans a bag, use the hook 'pVaultMoneyCleaned'. It gives 2 arguments: ply, amount_cleaned
  114. =========*/
  115.  
  116. -- NPC Model
  117. perfectVault.Config.NPCModel = "models/Humans/Group02/Male_05.mdl"
  118.  
  119. -- Should you be able to negotiate with the banker about cut %? (If false, he will use the min cut below as his cut.)
  120. perfectVault.Config.Negotiate = true
  121.  
  122. -- When the user has his money cleaned by the banker, the banker wants a cut. here you set the min and max % the banker will want. It is suggested to keep this low so that the players can easily guess it.
  123. -- 1 = 1%, 100 = 100%
  124. perfectVault.Config.NPCMinCut = 5
  125. perfectVault.Config.NPCMaxCut = 15
  126.  
  127. -- Only configure this if negotiation is enabled.
  128. -- If the banker doesn't like your deal, should he snitch you to the police? (Make you wanted)
  129. perfectVault.Config.NPCSnitch = true
  130. -- What is the chances of him snitching on you?
  131. -- 1 = 1%, 100 = 100%
  132. perfectVault.Config.NPCSnitchChanceMin = 5
  133. perfectVault.Config.NPCSnitchChanceMax = 35
  134.  
  135.  
  136.  
  137. /* =============
  138. Moneybag Config
  139. ==============*/
  140.  
  141. -- Button used to throw the bag (See: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE for a list of button codes)
  142. perfectVault.Config.ButtonToThrowBag = 17 -- 17 = G
  143. -- Along with the code above, please also state the letter so that it can be used in user interfaces
  144. perfectVault.Config.ButtonToThrowBagString = "G"
  145.  
  146. -- How many bags can a user hold on their back (Regardless of this amount, it will only actually show 1 bag visually)
  147. perfectVault.Config.MaxBagCarry = 3
  148.  
  149. -- You can set the money of the moneybag between 2 vaules. If you want the vaule to be static, then set both the min and max to eb the same.
  150. perfectVault.Config.MoneybagMinValue = 50000 -- Minimum
  151. perfectVault.Config.MoneybagMaxValue = 100000 -- Maximum
  152.  
  153. -- 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)
  154. perfectVault.Config.MoneybagWalkSpeed = 120
  155. perfectVault.Config.MoneybagRunSpeed = 200
  156.  
  157. -- Should the player drop all the bags they are carrying when they die?
  158. perfectVault.Config.DropBagsOnDeath = true
  159.  
  160.  
  161.  
  162. /* =========
  163. Mask Config
  164. ==========*/
  165. -- DEVELOPER NOTICE
  166. -- I have a class that allows you to dsiplay "Masked person" as the user's name when they are wearing the mask.
  167. -- 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.
  168. -- Open a ticket if you need any help with this.
  169. -- END OF DEVELOPER NOTICE
  170.  
  171. -- Button used to put on the mask (See: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE for a list of button codes)
  172. perfectVault.Config.ButtonToMaskOn = 18 -- 18 = H
  173. -- Along with the code above, please also state the letter so that it can be used in user interfaces
  174. perfectVault.Config.ButtonToMaskOnString = "H"
  175.  
  176. -- Button used to drop the mask (See: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE for a list of button codes)
  177. perfectVault.Config.ButtonToMaskDrop = 20 -- 18 = J
  178. -- Along with the code above, please also state the letter so that it can be used in user interfaces
  179. perfectVault.Config.ButtonToMaskDropString = "J"
  180.  
  181. -- Should the user lose their mask on death?
  182. perfectVault.Config.LoseMaskOnDeath = true
  183.  
  184. -- Should the mask be the halloween pumpkin hat?
  185. perfectVault.Config.HalloweenModels = true
  186.  
  187.  
  188.  
  189. /* ========
  190. Job Config
  191. =========*/
  192.  
  193. -- If this option is true, then anyone who is not government can rob the bank (Saves you adding every job to the criminal table.)
  194. perfectVault.Config.AllowAnyoneToRob = false
  195.  
  196. hook.Add("loadCustomDarkRPItems", "pvault_load_jobs", function() -- Ignore this line, this just sets up the jobs so they load at the correct time.
  197.  
  198. -- 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.
  199. perfectVault.Config.Government = {}
  200. perfectVault.Config.Government[TEAM_POLICE] = true
  201.  
  202. -- List here all the jobs that can rob the bank
  203. perfectVault.Config.Criminals = {}
  204. perfectVault.Config.Criminals[TEAM_MOB] = true
  205. perfectVault.Config.Criminals[TEAM_GANG] = true
  206.  
  207. end) -- Ignore this line also
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement