Skip to main content

Configuring the settings

The folder you inserted contains a Settings script which allows you to configure the admins, everything about the voting and the appearance of the UI. You have to edit the Admins setting if you want to be able to open the voting.

Admins

The Admins setting contains a list of players who are allowed to control the voting panel. Each player should be in their own quotes and separated by a comma. For example, if you wanted to allow 3 people to control the voting: gabys2005, idezye and GiorgioworldcupTEMP, then the setting would look like this:

Admins = { "gabys2005", "idezye", "GiorgioworldcupTEMP" };

Blacklist

This setting controls who isn't allowed to vote and will not see the voting GUI. This is useful for broadcasters who don't want to show the voting UI on their screens. It's controlled the same way as the Admins setting above.

VoteOptions

This setting controls what you can vote for on the GUI. Each entry should be in their own quotes and separated by a comma. For example, if you wanted to add 4 countries people can vote for: Switzerland, Ireland, Portugal and Greece, then this setting would look like this:

VoteOptions = {
"Switzerland",
"Ireland",
"Portugal",
"Greece",
};

GUI customisation

The next couple settings allow you to customise the voting GUI:

  • BackgroundImage - the image used as the background of the GUI, make sure to use an image ID and not a decal ID (those are two different IDs)
  • BackgroundColor - the colour of the image, this allows you to tint it to make it darker
  • TextColor - the colour of every text piece
  • ButtonColor - the colour of all buttons
  • ScrollbarColor - the colour of the scrollbar
  • OptionSelectedColor - vote options (countries) will turn this colour when they're selected
  • UnableToSelectColor - vote options (countries) will turn this colour when a maximum selection was reached and this option wasn't selected

MinVotingOptions and MaxVotingOptions

Those settings control how many vote options you can select. You must select at least MinVotingOptions options to be able to submit a vote and you can't select more than MaxVotingOptions