Hooks/Server/lotteryEnded

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

Parameters[edit]

  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.