From DarkRP
Jump to navigation Jump to search
Hook name lotteryEnded(table participants, Player chosen, number amount)
When a lottery has ended.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/lotteryEnded]lotteryEnded hook[/url][/b]


  1. participants (table)
  2. The participants of the lottery. An empty table when no one entered the lottery.

  3. chosen (Player)
  4. The winner of the lottery.

  5. amount (number)
  6. The amount won by the winner.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.