Hooks/Server/lotteryEnded

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name lotteryEnded(table participants, Player chosen, number amount)
Description:
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]

Parameters

  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

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