Advertisement
Lukyspore

sh_config.lua

Jul 28th, 2022 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.84 KB | None | 0 0
  1. Votifier.Config = Votifier.Config or {}
  2.  
  3. Votifier.Config.MenuCommand = "votes" -- This is the command for opening the Votifier menu. This string will be prepended with "!" and "/"
  4.  
  5. Votifier.Config.Language = "en" -- Currently there is en, cz, es, tr, ru, sv, fr, pr and de translations available.
  6.  
  7. Votifier.Config.AdminRanks = { -- These ranks can use the Votifier Add/Remove command.
  8.     ["superadmin"] = true,
  9.     ["admin"] = true
  10. }
  11. -- You can use the votifieradd command to add a vote to a player. This is the format of the command: votifieradd <SteamID64> <RewardAmount>
  12. -- You can use the votifierremove command to remove votes from a player. This is the format of the command: votifierremove <SteamID64>
  13.  
  14. -- Which Reward Framework to use?
  15. -- PS1 = Support of PointShop 1 Points.
  16. -- PS2 = Support of PointShop 2 Points.
  17. -- DarkRP = Support of DarkRP money.
  18. -- NS = Support of NutScript money.
  19. -- ZPN = Support of Zero's PumpkinNight.
  20. Votifier.Config.RewardFramework = "DarkRP"
  21.  
  22. Votifier.Config.CurrencySymbol = " Points" -- This is the name of the currency that will be used in the Votifier menu when using the PS1, PS2 or ZPN reward framework.
  23.  
  24. Votifier.Config.CurrencySymbolLocation = false -- This is the location of the currency symbol. True = Before the amount, false = After the amount.
  25.  
  26. Votifier.Config.ZPNMultiplier = 1 -- This is the multiplier for the ZPN currency. This changes the amount of ZPN you get from voting.
  27.  
  28.  
  29. -- Voting website setup
  30. Votifier.Config.VotingServers = {
  31.     gmodservers = {
  32.         WebsiteEnabled = true, -- Enables the website.
  33.         WebsiteTitle = "Gmod-Servers", -- Title for the website. This title is displayed in the UI.
  34.         WebsiteVoteURL = "https://gmod-servers.com/server/12345/vote/", -- Link to your server on the voting site.
  35.         WebsiteReward = 150, -- Reward given when the user votes. This can be Pointshop points, Nutscript money or DarkRP money it depends on the Reward Framework chosen.
  36.  
  37.         -- THIS IS OPTIONAL
  38.         -- This is a custom reward you can code yourself. If you want to reward your players with something other than Money or Points.
  39.         -- If you want to add a custom reward modify the server/sv_custom_rewards.lua file. Then replace the nil with the custom reward function name.
  40.         WebsiteCustomRewardEnabled = false, -- This enables Custom Rewards
  41.         WebsiteCustomRewardFunc = nil, -- For example: WebsiteCustomReward = Votifier.CustomRewards.CustomReward1
  42.         WebsiteCustomRewardString = "" -- This is the custom string shown in the Votifier UI.
  43.     },
  44.     trackyserver = {
  45.         WebsiteEnabled = true,
  46.         WebsiteTitle = "TrackyServer",
  47.         WebsiteVoteURL = "https://www.trackyserver.com/server/something-12345",
  48.         WebsiteReward = 150,
  49.         WebsiteCustomRewardEnabled = false,
  50.         WebsiteCustomRewardFunc = nil,
  51.         WebsiteCustomRewardString = ""
  52.     },
  53.     playservers = {
  54.         WebsiteEnabled = true,
  55.         WebsiteTitle = "Play-Servers",
  56.         WebsiteVoteURL = "https://play-servers.com/server-12345",
  57.         WebsiteReward = 150,
  58.         WebsiteCustomRewardEnabled = false,
  59.         WebsiteCustomRewardFunc = nil,
  60.         WebsiteCustomRewardString = ""
  61.     },
  62.     servertilt = {
  63.         WebsiteEnabled = true,
  64.         WebsiteTitle = "ServerTilt",
  65.         WebsiteVoteURL = "https://www.servertilt.com/server/server.12345",
  66.         WebsiteReward = 150,
  67.         WebsiteCustomRewardEnabled = false,
  68.         WebsiteCustomRewardFunc = nil,
  69.         WebsiteCustomRewardString = ""
  70.     },
  71.     topserveurs = {
  72.         WebsiteEnabled = true,
  73.         WebsiteTitle = "Top Serveurs",
  74.         WebsiteVoteURL = "https://top-serveurs.net/garrys-mod/server",
  75.         WebsiteReward = 150,
  76.         WebsiteCustomRewardEnabled = false,
  77.         WebsiteCustomRewardFunc = nil,
  78.         WebsiteCustomRewardString = ""
  79.     },
  80.     gmodlisting = { // THE SERVER MUST BE VERFIED ON THE WEBSITE, TO USE THIS!!!!!
  81.         WebsiteEnabled = true,
  82.         WebsiteTitle = "GmodListing",
  83.         WebsiteServerID = "00000000-0000-0000-0000-000000000000",
  84.         WebsiteVoteURL = "https://www.gmodlisting.com/servers/details/00000000-0000-0000-0000-000000000000",
  85.         WebsiteReward = 150000,
  86.         WebsiteCustomRewardEnabled = false,
  87.         WebsiteCustomRewardFunc = nil,
  88.         WebsiteCustomRewardString = ""
  89.     }
  90. }
  91.  
  92. -- This is the API key for the voting websites. You can get the API key from the voting website.
  93. if SERVER then
  94.     Votifier.Config.VotingServers.gmodservers.WebsiteAPIKey = "Your API key for Gmod-Servers"
  95.     Votifier.Config.VotingServers.trackyserver.WebsiteAPIKey = "Your API key for TrackyServer"
  96.     Votifier.Config.VotingServers.playservers.WebsiteServerID = 12345
  97.     Votifier.Config.VotingServers.servertilt.WebsiteServerID = 12345
  98.     Votifier.Config.VotingServers.topserveurs.WebsiteAPIKey = "Your API key for TopServeurs"
  99.     Votifier.Config.VotingServers.gmodlisting.WebsiteAPIKey = "Your API key for GmodListing" // THE SERVER MUST BE VERFIED ON THE WEBSITE, TO USE THIS!!!!!
  100. end
  101.  
  102. Votifier.Config.MilestonesEnabled = true -- Enables the vote milestones. Achieved milestones are wiped every month.
  103.  
  104. Votifier.Config.Milestones = {
  105.     {
  106.         MilestoneName = "Milestone name 1", -- Milestone name
  107.         MilestoneVotesRequired = 2, -- Required amount of Votes for this milestone
  108.         MilestoneReward = 200, -- Reward for passing this milestone
  109.  
  110.         -- THIS IS OPTIONAL
  111.         -- This is a custom reward you can code yourself. If you want to reward your players with something other than Money or Points.
  112.         -- If you want to add a custom reward modify the server/sv_custom_rewards.lua file. Then replace the nil with the custom reward function name.
  113.         MilestoneCustomRewardEnabled = false, -- This enables Custom Rewards
  114.         MilestoneCustomRewardFunc = nil, -- For example: WebsiteCustomReward = Votifier.CustomRewards.CustomReward1
  115.         MilestoneCustomRewardString = "" -- This is the custom string shown in the Votifier UI.
  116.     },
  117.     {
  118.         MilestoneName = "Milestone name 2",
  119.         MilestoneVotesRequired = 4,
  120.         MilestoneReward = 200,
  121.         MilestoneCustomRewardEnabled = false,
  122.         MilestoneCustomRewardFunc = nil,
  123.         MilestoneCustomRewardString = ""
  124.     },
  125.     {
  126.         MilestoneName = "Milestone name 3",
  127.         MilestoneVotesRequired = 15,
  128.         MilestoneReward = 500,
  129.         MilestoneCustomRewardEnabled = false,
  130.         MilestoneCustomRewardFunc = nil,
  131.         MilestoneCustomRewardString = ""
  132.     },
  133.     {
  134.         MilestoneName = "Milestone name 4",
  135.         MilestoneVotesRequired = 20,
  136.         MilestoneReward = 500,
  137.         MilestoneCustomRewardEnabled = false,
  138.         MilestoneCustomRewardFunc = nil,
  139.         MilestoneCustomRewardString = ""
  140.     } -- If you want to add more milestones copy the format {} and change the variables.
  141. }
  142.  
  143. Votifier.Config.BroadcastMessageEnabled = true -- If the broadcast messages are enabled.
  144.  
  145. -- Message that will be broadcasted when someone votes for the server. PLAYERNAME will be replaced with the players name.
  146. Votifier.Config.BroadcastMessage = "[VOTIFIER] PLAYERNAME just voted for the server!"
  147.  
  148. Votifier.Config.OpenOnjoin = false -- Opens the vote UI on players join.
  149.  
  150.  
  151. -- These are the colors for every element of the UI. Feel free to change them to your liking.
  152. Votifier.Config.Red = Color(255, 63, 5,255)
  153.  
  154. Votifier.Config.White = Color(255,255,255,255)
  155. Votifier.Config.WhiteHighlight = Color(200,200,200,255)
  156. Votifier.Config.WhiteSecond = Color(255,255,255,30)
  157.  
  158. Votifier.Config.Grey = Color(47, 54, 64,255)
  159. Votifier.Config.GreySecond = Color(53, 59, 72,255)
  160. Votifier.Config.BlueSecond = Color(0, 168, 255,255)
  161. Votifier.Config.Blue = Color(0, 151, 230,255)
  162.  
  163. Votifier.Config.Gold = Color(251, 197, 49,255)
  164. Votifier.Config.Silver = Color(127, 143, 166,255)
  165. Votifier.Config.Bronze = Color(240, 147, 43,255)
  166.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement