<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RU/Resource:Votemanager?action=history&amp;feed=atom</id>
	<title>RU/Resource:Votemanager - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RU/Resource:Votemanager?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;action=history"/>
	<updated>2026-04-07T11:41:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=47179&amp;oldid=prev</id>
		<title>Ccw: Reverted edits by Bonzo (talk) to last revision by Vincent</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=47179&amp;oldid=prev"/>
		<updated>2016-04-01T03:05:49Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/Bonzo&quot; title=&quot;Special:Contributions/Bonzo&quot;&gt;Bonzo&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Bonzo&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Bonzo (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last revision by &lt;a href=&quot;/wiki/User:Vincent&quot; title=&quot;User:Vincent&quot;&gt;Vincent&lt;/a&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;amp;diff=47179&amp;amp;oldid=47110&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Ccw</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=47110&amp;oldid=prev</id>
		<title>Bonzo: Blanked the page</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=47110&amp;oldid=prev"/>
		<updated>2016-03-31T16:13:44Z</updated>

		<summary type="html">&lt;p&gt;Blanked the page&lt;/p&gt;
&lt;a href=&quot;https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;amp;diff=47110&amp;amp;oldid=31781&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bonzo</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=31781&amp;oldid=prev</id>
		<title>Vincent: /* onPollEnd */</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=31781&amp;oldid=prev"/>
		<updated>2012-07-04T14:39:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;onPollEnd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:39, 4 July 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===onPollEnd===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===onPollEnd===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollEnd ( chosenOption )&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollEnd ( chosenOption )&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Срабатывает по окончании опроса. Отмена не дает никакого эффекта.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Срабатывает по окончании опроса. Отмена не дает никакого эффекта.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''chosenOption''': Возвращает номер выбранной опции.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''chosenOption''': Возвращает номер выбранной опции.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-31780:rev-31781 --&gt;
&lt;/table&gt;</summary>
		<author><name>Vincent</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=31780&amp;oldid=prev</id>
		<title>Vincent at 14:39, 4 July 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=31780&amp;oldid=prev"/>
		<updated>2012-07-04T14:39:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:39, 4 July 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l110&quot;&gt;Line 110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 110:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===onPollEnd===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===onPollEnd===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollEnd ( &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;)&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollEnd ( &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;chosenOption &lt;/ins&gt;)&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Срабатывает по окончании опроса. Отмена не дает никакого эффекта.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Срабатывает по окончании опроса. Отмена не дает никакого эффекта.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''chosenOption''': Возвращает номер выбранной опции.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===onPollDraw===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===onPollDraw===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-30901:rev-31780 --&gt;
&lt;/table&gt;</summary>
		<author><name>Vincent</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=30901&amp;oldid=prev</id>
		<title>Vincent at 20:16, 18 May 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=30901&amp;oldid=prev"/>
		<updated>2012-05-18T20:16:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;amp;diff=30901&amp;amp;oldid=19092&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Vincent</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=19092&amp;oldid=prev</id>
		<title>D0lph1n: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Votemanager&amp;diff=19092&amp;oldid=prev"/>
		<updated>2009-04-12T07:13:38Z</updated>

		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RU/Resource page}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This script manages any kind of poll with multiple options. '''votemap''', '''votekick''', '''votekill''' and '''voteban''' are built in.&lt;br /&gt;
==Built-in polls==&lt;br /&gt;
&lt;br /&gt;
'''votemap''' (starts a vote between a random list of up to 9 maps compatible with the current gamemode, if one is running)&lt;br /&gt;
&lt;br /&gt;
'''votemap gamemode''' (starts a vote between a random list of up to 9 maps compatible with the specified gamemode)&lt;br /&gt;
&lt;br /&gt;
'''votemap gamemode map''' (starts a vote to launch the specified gamemode with the specified map)&lt;br /&gt;
&lt;br /&gt;
'''votemap map gamemode''' (same as previous one)&lt;br /&gt;
&lt;br /&gt;
'''votemap map''' (starts a vote to change to another map for the current gamemode, if one is running)&lt;br /&gt;
&lt;br /&gt;
'''votemode''' (starts a vote between a random list of up to 9 gamemodes. once the vote is done and a new gamemode is picked, automatically starts 'votemap gamemode')&lt;br /&gt;
&lt;br /&gt;
'''votekick player''' (starts a vote to kick the specified player)&lt;br /&gt;
&lt;br /&gt;
'''votekill player''' (starts a vote to kill the specified player)&lt;br /&gt;
&lt;br /&gt;
'''voteban player''' (starts a vote to ban the specified player)&lt;br /&gt;
&lt;br /&gt;
==Serverside functions==&lt;br /&gt;
===startPoll===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int startPoll ( table pollData )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Creates a poll. Returns ''true'' if the poll was created successfully, ''false'' and an error code otherwise (see the source for error codes).&lt;br /&gt;
&lt;br /&gt;
* '''pollData''' is a table containing poll settings and an array of ''at least two'' options. Each option comes in the form:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
string optionName,&lt;br /&gt;
string eventToTrigger,&lt;br /&gt;
[element triggerFrom = getRootElement()],&lt;br /&gt;
default = [bool isDefaultOption = false],&lt;br /&gt;
var argument1,&lt;br /&gt;
var argument2,&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The chosen option will trigger eventToTrigger from the triggerFrom element with ''arguments...'' as parameters when the poll ends.&lt;br /&gt;
&lt;br /&gt;
If there's not enough votes, the default option will be executed if there's one.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local playerToKill = getRandomPlayer()&lt;br /&gt;
local notEnoughVotesMessage = &amp;quot;Not enough votes to kill &amp;quot;..getPlayerName(playerToKill)..&amp;quot;.&amp;quot;&lt;br /&gt;
startPoll {&lt;br /&gt;
   --start settings (dictionary part)&lt;br /&gt;
   title=&amp;quot;Kill &amp;quot;..getPlayerName(playerToKill)..&amp;quot;?&amp;quot;,&lt;br /&gt;
   percentage=75,&lt;br /&gt;
   timeout=30,&lt;br /&gt;
   allowchange=false,&lt;br /&gt;
   maxnominations=3,&lt;br /&gt;
   visibleTo=getRootElement(),&lt;br /&gt;
   --start options (array part)&lt;br /&gt;
   [1]={&amp;quot;Yes&amp;quot;, &amp;quot;doKillPlayer&amp;quot;, playerToKill},&lt;br /&gt;
   [2]={&amp;quot;No&amp;quot;, &amp;quot;doOutputChatBox&amp;quot;, notEnoughVotesMessage, getRootElement(), vR, vG, vB; default=true},&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''title''' (required): the poll title which will be seen by clients on the manager GUI&lt;br /&gt;
*'''percentage''' (optional, defaults to default.percentage): percentage needed for an option to pass&lt;br /&gt;
*'''timeout''' (optional, defaults to default.timeout): poll timeout in seconds&lt;br /&gt;
*'''allowchange''' (optional, defaults to default.allowchange): specifies if changing your vote is allowed&lt;br /&gt;
*'''maxnominations''' (optional, defaults to default.maxnominations): specifies the max number of nominations in case there's a draw&lt;br /&gt;
*'''visibleTo''' (optional, defaults to [[getRootElement]]()): a table or players that will be able to see the poll, OR an element that contains the players.&lt;br /&gt;
If it is root, new players joining the server will be able to vote.&lt;br /&gt;
&lt;br /&gt;
''voteconfig.xml'' defaults will be used for missing optional settings.&lt;br /&gt;
&lt;br /&gt;
===stopPoll===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int stopPoll ( )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Stops the running poll. Returns ''true'' if the current poll was stopped successfully, ''false'' and an error code otherwise.&lt;br /&gt;
&lt;br /&gt;
===voteMap===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int voteMap ( string mapName )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Starts a votemap. Returns ''true'' if it was successfully started, ''false'' and an error code otherwise.&lt;br /&gt;
&lt;br /&gt;
===voteBetweenMaps===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int voteBetweenMaps ( resource map1, resource map2, [ resource map3, ... ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Starts a poll to choose a map. Returns ''true'' if it was successfully started, ''false'' and an error code otherwise.&lt;br /&gt;
&lt;br /&gt;
===voteKick===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int voteKick ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Starts a votekick. Returns ''true'' if it was successfully started, ''false'' and an error code otherwise.&lt;br /&gt;
&lt;br /&gt;
===voteKill===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int voteKill ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Starts a votekill. Returns ''true'' if it was successfully started, ''false'' and an error code otherwise.&lt;br /&gt;
&lt;br /&gt;
===voteBan===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool, int voteBan ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Starts a voteban. Returns ''true'' if it was successfully started, ''false'' and an error code otherwise.&lt;br /&gt;
&lt;br /&gt;
==Serverside events==&lt;br /&gt;
===onPollStart===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollStart (  )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Fired before a poll starts. Cancelling it aborts the poll.&lt;br /&gt;
&lt;br /&gt;
===onPollStop===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollStop (  )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Fired before a poll is halted. Cancelling it prevents the poll from being halted.&lt;br /&gt;
&lt;br /&gt;
===onPollEnd===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollEnd (  )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Fired after a poll finished. Cancelling it has no effect.&lt;br /&gt;
&lt;br /&gt;
===onPollDraw===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onPollDraw (  )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Fired when a poll ends in a draw. Cancelling it aborts renominations.&lt;br /&gt;
&lt;br /&gt;
===onClientSendVote===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;void onClientSendVote ( int vote )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Fired when a vote is sent to the server. ''client'' is the client who sent the vote. Cancelling it makes the manager ignore the client's choice.&lt;br /&gt;
&lt;br /&gt;
==Default settings==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;settings&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*color&amp;quot; value=&amp;quot;#DF6464&amp;quot; /&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*log_votes&amp;quot; value=&amp;quot;[true]&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*default.timeout&amp;quot; value=&amp;quot;[30]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*default.allowchange&amp;quot; value=&amp;quot;[false]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*default.percentage&amp;quot; value=&amp;quot;[75]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*default.maxnominations&amp;quot; value=&amp;quot;[3]&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votemap.enabled&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votemap.timeout&amp;quot; value=&amp;quot;[30]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votemap.locktime&amp;quot; value=&amp;quot;[60]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votemap.percentage&amp;quot; value=&amp;quot;[70]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votemap.allowchange&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekick.enabled&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekick.timeout&amp;quot; value=&amp;quot;[30]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekick.locktime&amp;quot; value=&amp;quot;[120]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekick.percentage&amp;quot; value=&amp;quot;[75]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekick.allowchange&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*voteban.enabled&amp;quot; value=&amp;quot;[false]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*voteban.timeout&amp;quot; value=&amp;quot;[30]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*voteban.locktime&amp;quot; value=&amp;quot;[120]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*voteban.percentage&amp;quot; value=&amp;quot;[85]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*voteban.allowchange&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekill.enabled&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekill.timeout&amp;quot; value=&amp;quot;[30]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekill.locktime&amp;quot; value=&amp;quot;[120]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekill.percentage&amp;quot; value=&amp;quot;[75]&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;setting name=&amp;quot;*votekill.allowchange&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/settings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>D0lph1n</name></author>
	</entry>
</feed>