From DarkRP
Jump to navigation Jump to search
Hook name getVoteResults(table vote, number yea, number nay)
Override the results of a vote.
Returns: number result
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/getVoteResults]getVoteResults hook[/url][/b]


  1. vote (table)
  2. A table that contains information about the vote.

  3. yea (number)
  4. The amount of people that voted yes.

  5. nay (number)
  6. The amount of people that voted no.

Return values[edit]

  1. result (number)
  2. The result of the vote. Return 1 for win, -1 for lose, 0 for undecided.