Jump to navigation Jump to search
|Hook name||getVoteResults(table vote, number yea, number nay)|
|Override the results of a vote.|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/getVoteResults]getVoteResults hook[/url][/b]|
- vote (table)
- yea (number)
- nay (number)
A table that contains information about the vote.
The amount of people that voted yes.
The amount of people that voted no.
- result (number)
The result of the vote. Return 1 for win, -1 for lose, 0 for undecided.