Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.lua
- CH_BankVault = {}
- CH_BankVault.Config = {}
- CH_BankVault.Content = {}
- CH_BankVault.Design = {}
- CH_BankVault.TransportDLC = {}
- CH_BankVault.CurrentRobbers = { "NONE" }
- -- General config options.
- CH_BankVault.Config.StartMoney = 1500 -- Amount of money the bank will have from server startup. [Default = 1500]
- CH_BankVault.Config.MoneyTimer = 60 -- This is the time that defines when money is added to the bank. In seconds! [Default = 60]
- CH_BankVault.Config.MoneyOnTime = 1000 -- This is the amount of money to be added to the bank every x minutes/seconds. Defined by the setting above. [Default = 1000]
- CH_BankVault.Config.Max = 30000 -- The maximum the bank can have. Set to 0 for no limit. [Default = 30000]
- CH_BankVault.Config.AliveTime = 60 -- The amount of SECONDS the player must stay alive before he will receive what the bank has. [Default = 60 seconds]
- -- If you own the transport dlc this is also the time the robbers needs to complete the heist/transport of the money in. If not, the mission will fail.
- CH_BankVault.Config.CooldownTime = 25 -- The amount of SECONDS the bank is on a cooldown after a robbery! [Default = 600 (10 min)]
- CH_BankVault.Config.RobberyDistance = 300000 -- The amount of space the player can move away from the armory entity, before the robbery fails. [Default = 300000]
- CH_BankVault.Config.PlayerLimit = 1 -- The amount of players there must be on the server before you can rob the bank. [Default = 5]
- CH_BankVault.Config.KillReward = 1000 -- The amount of money a person is rewarded for killing the bank robber. [Default = 1000]
- CH_BankVault.Config.PoliceRequired = 0 -- The amount of police officers there must be before a person can rob the bank. [Default = 3]
- CH_BankVault.Config.DropMoneyOnSucces = false -- Should money drop from the bank when a robbery is successful? true/false option. [Default = false]
- CH_BankVault.Config.RobbersCanJoin = 120 -- Amount of seconds before robbers are no longer able to join a robbery after it has first been started. [Default = 120 (2 minutes)]
- CH_BankVault.Config.EmitSoundOnRob = true -- Should an alarm go off when the bank vault gets robbed. [Default = true]
- CH_BankVault.Config.TheSound = "ambient/alarms/alarm_citizen_loop1.wav" -- The sound to be played. [Default = ambient/alarms/alarm1.wav - default gmod sound]
- CH_BankVault.Config.SoundLevel = 75 -- The sound level. Ranges from 20 to 180. 180 is super loud. [Default = 75]
- CH_BankVault.Config.SoundDuration = 20 -- Amount of seconds the sound should play for. [Default = 20]
- -- Vrondakis XP Support
- CH_BankVault.Config.VrondakisXPEnable = false -- Enable xp reward for https://github.com/vrondakis/Leveling-System
- CH_BankVault.Config.VrondakisXPAmount = 1500 -- Amount of XP given to each robber after a succesful robbery.
- CH_BankVault.Config.UseRequiredModels = false -- Should the robber be a specific model to be able to rob the bank? Uses the models from the table below. [Default = false]
- CH_BankVault.Config.RequiredModels = { -- These are the models required to rob the bank. These only come in use if the option above (CH_BankVault.Config.UseRequiredModels) is enabled.
- "models/player/Group01/Male_01.mdl",
- "models/player/Group01/Male_02.mdl",
- "models/player/Group01/Male_03.mdl",
- "models/player/Group01/Male_04.mdl",
- "models/player/Group01/Male_05.mdl",
- "models/player/Group01/Male_06.mdl",
- "models/player/Group01/Male_07.mdl",
- "models/player/Group01/Male_08.mdl",
- "models/player/Group01/Male_09.mdl" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
- }
- CH_BankVault.Config.RequiredTeams = { -- These are the names of the jobs that counts with the police required config. The amount of players on these teams are calculated together in the count.
- "Civil Protection",
- "Civil Protection Chief" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
- }
- CH_BankVault.Config.GovernmentTeams = { -- These are the teams that will receive a notify when a player is trying to rob a bank. Use the actual team name, as shown below.
- "Civil Protection",
- "Civil Protection Chief",
- "Mayor" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
- }
- CH_BankVault.Config.AllowedTeams = { -- These are the teams that are allowed to rob the bank.
- "Citizen",
- "Gangster",
- "Mob boss",
- "Gun Dealer",
- "Medic",
- "Hobo" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
- }
- Design.lua
- -- Design options for the bank entity display.
- -- TOP
- CH_BankVault.Design.DesignText_VaultName = "GModStore Ltd."
- CH_BankVault.Design.DesignColor_VaultName = Color(48, 151, 255, 150)
- CH_BankVault.Design.DesignColor_VaultNameBoarder = Color(0, 0, 0, 255)
- CH_BankVault.Design.DesignText_BankVault = "Bank Vault"
- CH_BankVault.Design.DesignColor_BankVault = Color(255, 255, 200, 150)
- CH_BankVault.Design.DesignColor_BankVaultBoarder = Color(0, 0, 0, 255)
- CH_BankVault.Design.DesignColor_BackCircle = Color(0, 0, 0, 220)
- CH_BankVault.Design.DesignColor_MoneyCircle = Color(153, 0, 0, 200)
- CH_BankVault.Design.DesignColor_FrontCircle = Color(60, 60, 60, 255)
- CH_BankVault.Design.DesignText_Money = "MONEY"
- CH_BankVault.Design.DesignColor_Money = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_MoneyBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_VaultAmount = Color(0, 150, 0, 255)
- CH_BankVault.Design.DesignColor_VaultAmountBoarder = Color(0, 0, 0, 255)
- -- LEFT SIDE BOTTOM
- CH_BankVault.Design.DesignColor_LeftBox = Color(0, 0, 0, 220)
- CH_BankVault.Design.DesignText_Cooldown = "Robbery Cooldown"
- CH_BankVault.Design.DesignColor_Cooldown = Color( 200, 200, 200, 255 )
- CH_BankVault.Design.DesignColor_CooldownBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_CooldownValue = Color( 200, 200, 200, 255 )
- CH_BankVault.Design.DesignColor_CooldownValueBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignText_Countdown = "Robbery Countdown"
- CH_BankVault.Design.DesignColor_Countdown = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_CountdownBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_CountdownValue = Color( 150, 150, 150, 255 )
- CH_BankVault.Design.DesignColor_CountdownValueBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignText_RobStatus = "Rob Status"
- CH_BankVault.Design.DesignColor_RobStatus = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_RobStatusBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignText_EnoughPoliceYes = "Enough Police: Yes"
- CH_BankVault.Design.DesignText_AllowedTeamYes = "Team Allowed: Yes"
- CH_BankVault.Design.DesignText_EnoughPlayersYes = "Enough Players: Yes"
- CH_BankVault.Design.DesignText_RequiredModelYes = "Required Model: Yes"
- CH_BankVault.Design.DesignText_EnoughPoliceNo = "Enough Police: No"
- CH_BankVault.Design.DesignText_AllowedTeamNo = "Team Allowed: No"
- CH_BankVault.Design.DesignText_EnoughPlayersNo = "Enough Players: No"
- CH_BankVault.Design.DesignText_RequiredModelNo = "Required Model: No"
- CH_BankVault.Design.DesignColor_TheYes = Color( 0, 150, 0, 255 )
- CH_BankVault.Design.DesignColor_TheNo = Color( 150, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_TheBoarder = Color( 0, 0, 0, 255 )
- -- RIGHT SIDE BOTTOM
- CH_BankVault.Design.DesignColor_RightBox = Color(0, 0, 0, 220)
- CH_BankVault.Design.DesignText_CurrentRobbers = "Current Robbers"
- CH_BankVault.Design.DesignColor_CurrentRobbers = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_CurrentRobbersBoarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_Robber1 = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_Robber2 = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_Robber3 = Color( 200, 200, 200, 200 )
- CH_BankVault.Design.DesignColor_Robber1Boarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_Robber2Boarder = Color( 0, 0, 0, 255 )
- CH_BankVault.Design.DesignColor_Robber3Boarder = Color( 0, 0, 0, 255 )
- NPC.lua
- -- NPC POLICE CONFIG
- -- THIS FEATURE IS NOT FINISHED!
- -- I would advise NOT using this, but you can test it out if you wish on your development server :)
- CH_BankVault.Config.UseNPCCopsDLC = false -- Enables the DLC. Police NPCs will spawn at your positions (the bank most likely) and attack current robbers.
- -- Default Config
- -- Max NPCs
- -- Continue to spawn or just one-time
- CH_BankVault.Config.NPCCOPS_RandomWeapons = { -- List of random weapons given to the NPC police officers when they spawn.
- "weapon_357",
- "weapon_ar2",
- "weapon_bugbait",
- "weapon_crossbow",
- "weapon_crowbar",
- "weapon_frag",
- "weapon_pistol",
- "weapon_rpg",
- "weapon_shotgun",
- "weapon_smg1",
- "weapon_stunstick" -- THE LAST TEAM SHOULD NOT HAVE A COMMA
- }
- CH_BankVault.Config.NPCCOPS_TimerLoop = 4 -- How many rounds of police npcs should there be?
- CH_BankVault.Config.NPCCOPS_TimerInterval = 60 -- Seconds between each wave of police npcs.
- CH_BankVault.Config.NPCCOPS_MinHealth = 100 -- Minimum amount of health a npc police will spawn with.
- CH_BankVault.Config.NPCCOPS_MaxHealth = 200 -- Maximum amount of health a npc police will spawn with.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement