Hooks/Server/hungerUpdate

From DarkRP
Jump to navigation Jump to search
Hook
Hook name hungerUpdate(Player ply, number energy)
Description:
Called every 10 seconds for every player when hungermod is on. This updates the player's hunger level.
Returns: boolean override
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/hungerUpdate]hungerUpdate hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player who might be slightly more hungery.

  3. energy (number)
  4. The energy the player has left.

Return values[edit]

  1. override (boolean)
  2. Override the default behaviour of substracting some and killing the player when starving.