Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Votifier.Config = Votifier.Config or {}
- Votifier.Config.MenuCommand = "votes" -- This is the command for opening the Votifier menu. This string will be prepended with "!" and "/"
- Votifier.Config.Language = "en" -- Currently there is en, cz, es, tr, ru, sv, fr, pr and de translations available.
- Votifier.Config.AdminRanks = { -- These ranks can use the Votifier Add/Remove command.
- ["superadmin"] = true,
- ["admin"] = true
- }
- -- You can use the votifieradd command to add a vote to a player. This is the format of the command: votifieradd <SteamID64> <RewardAmount>
- -- You can use the votifierremove command to remove votes from a player. This is the format of the command: votifierremove <SteamID64>
- -- Which Reward Framework to use?
- -- PS1 = Support of PointShop 1 Points.
- -- PS2 = Support of PointShop 2 Points.
- -- DarkRP = Support of DarkRP money.
- -- NS = Support of NutScript money.
- -- ZPN = Support of Zero's PumpkinNight.
- Votifier.Config.RewardFramework = "DarkRP"
- 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.
- Votifier.Config.CurrencySymbolLocation = false -- This is the location of the currency symbol. True = Before the amount, false = After the amount.
- Votifier.Config.ZPNMultiplier = 1 -- This is the multiplier for the ZPN currency. This changes the amount of ZPN you get from voting.
- -- Voting website setup
- Votifier.Config.VotingServers = {
- gmodservers = {
- WebsiteEnabled = true, -- Enables the website.
- WebsiteTitle = "Gmod-Servers", -- Title for the website. This title is displayed in the UI.
- WebsiteVoteURL = "https://gmod-servers.com/server/12345/vote/", -- Link to your server on the voting site.
- 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.
- -- THIS IS OPTIONAL
- -- This is a custom reward you can code yourself. If you want to reward your players with something other than Money or Points.
- -- 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.
- WebsiteCustomRewardEnabled = false, -- This enables Custom Rewards
- WebsiteCustomRewardFunc = nil, -- For example: WebsiteCustomReward = Votifier.CustomRewards.CustomReward1
- WebsiteCustomRewardString = "" -- This is the custom string shown in the Votifier UI.
- },
- trackyserver = {
- WebsiteEnabled = true,
- WebsiteTitle = "TrackyServer",
- WebsiteVoteURL = "https://www.trackyserver.com/server/something-12345",
- WebsiteReward = 150,
- WebsiteCustomRewardEnabled = false,
- WebsiteCustomRewardFunc = nil,
- WebsiteCustomRewardString = ""
- },
- playservers = {
- WebsiteEnabled = true,
- WebsiteTitle = "Play-Servers",
- WebsiteVoteURL = "https://play-servers.com/server-12345",
- WebsiteReward = 150,
- WebsiteCustomRewardEnabled = false,
- WebsiteCustomRewardFunc = nil,
- WebsiteCustomRewardString = ""
- },
- servertilt = {
- WebsiteEnabled = true,
- WebsiteTitle = "ServerTilt",
- WebsiteVoteURL = "https://www.servertilt.com/server/server.12345",
- WebsiteReward = 150,
- WebsiteCustomRewardEnabled = false,
- WebsiteCustomRewardFunc = nil,
- WebsiteCustomRewardString = ""
- },
- topserveurs = {
- WebsiteEnabled = true,
- WebsiteTitle = "Top Serveurs",
- WebsiteVoteURL = "https://top-serveurs.net/garrys-mod/server",
- WebsiteReward = 150,
- WebsiteCustomRewardEnabled = false,
- WebsiteCustomRewardFunc = nil,
- WebsiteCustomRewardString = ""
- },
- gmodlisting = { // THE SERVER MUST BE VERFIED ON THE WEBSITE, TO USE THIS!!!!!
- WebsiteEnabled = true,
- WebsiteTitle = "GmodListing",
- WebsiteServerID = "00000000-0000-0000-0000-000000000000",
- WebsiteVoteURL = "https://www.gmodlisting.com/servers/details/00000000-0000-0000-0000-000000000000",
- WebsiteReward = 150000,
- WebsiteCustomRewardEnabled = false,
- WebsiteCustomRewardFunc = nil,
- WebsiteCustomRewardString = ""
- }
- }
- -- This is the API key for the voting websites. You can get the API key from the voting website.
- if SERVER then
- Votifier.Config.VotingServers.gmodservers.WebsiteAPIKey = "Your API key for Gmod-Servers"
- Votifier.Config.VotingServers.trackyserver.WebsiteAPIKey = "Your API key for TrackyServer"
- Votifier.Config.VotingServers.playservers.WebsiteServerID = 12345
- Votifier.Config.VotingServers.servertilt.WebsiteServerID = 12345
- Votifier.Config.VotingServers.topserveurs.WebsiteAPIKey = "Your API key for TopServeurs"
- Votifier.Config.VotingServers.gmodlisting.WebsiteAPIKey = "Your API key for GmodListing" // THE SERVER MUST BE VERFIED ON THE WEBSITE, TO USE THIS!!!!!
- end
- Votifier.Config.MilestonesEnabled = true -- Enables the vote milestones. Achieved milestones are wiped every month.
- Votifier.Config.Milestones = {
- {
- MilestoneName = "Milestone name 1", -- Milestone name
- MilestoneVotesRequired = 2, -- Required amount of Votes for this milestone
- MilestoneReward = 200, -- Reward for passing this milestone
- -- THIS IS OPTIONAL
- -- This is a custom reward you can code yourself. If you want to reward your players with something other than Money or Points.
- -- 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.
- MilestoneCustomRewardEnabled = false, -- This enables Custom Rewards
- MilestoneCustomRewardFunc = nil, -- For example: WebsiteCustomReward = Votifier.CustomRewards.CustomReward1
- MilestoneCustomRewardString = "" -- This is the custom string shown in the Votifier UI.
- },
- {
- MilestoneName = "Milestone name 2",
- MilestoneVotesRequired = 4,
- MilestoneReward = 200,
- MilestoneCustomRewardEnabled = false,
- MilestoneCustomRewardFunc = nil,
- MilestoneCustomRewardString = ""
- },
- {
- MilestoneName = "Milestone name 3",
- MilestoneVotesRequired = 15,
- MilestoneReward = 500,
- MilestoneCustomRewardEnabled = false,
- MilestoneCustomRewardFunc = nil,
- MilestoneCustomRewardString = ""
- },
- {
- MilestoneName = "Milestone name 4",
- MilestoneVotesRequired = 20,
- MilestoneReward = 500,
- MilestoneCustomRewardEnabled = false,
- MilestoneCustomRewardFunc = nil,
- MilestoneCustomRewardString = ""
- } -- If you want to add more milestones copy the format {} and change the variables.
- }
- Votifier.Config.BroadcastMessageEnabled = true -- If the broadcast messages are enabled.
- -- Message that will be broadcasted when someone votes for the server. PLAYERNAME will be replaced with the players name.
- Votifier.Config.BroadcastMessage = "[VOTIFIER] PLAYERNAME just voted for the server!"
- Votifier.Config.OpenOnjoin = false -- Opens the vote UI on players join.
- -- These are the colors for every element of the UI. Feel free to change them to your liking.
- Votifier.Config.Red = Color(255, 63, 5,255)
- Votifier.Config.White = Color(255,255,255,255)
- Votifier.Config.WhiteHighlight = Color(200,200,200,255)
- Votifier.Config.WhiteSecond = Color(255,255,255,30)
- Votifier.Config.Grey = Color(47, 54, 64,255)
- Votifier.Config.GreySecond = Color(53, 59, 72,255)
- Votifier.Config.BlueSecond = Color(0, 168, 255,255)
- Votifier.Config.Blue = Color(0, 151, 230,255)
- Votifier.Config.Gold = Color(251, 197, 49,255)
- Votifier.Config.Silver = Color(127, 143, 166,255)
- Votifier.Config.Bronze = Color(240, 147, 43,255)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement