Hooks/Server/getVoteResults

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name getVoteResults(table vote, number yea, number nay)
Description:
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]

Parameters

  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

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