Hooks/Server/lotteryEnded
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]
- participants (table)
- chosen (Player)
- amount (number)
The participants of the lottery. An empty table when no one entered the lottery.
The winner of the lottery.
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.