From Official DarkRP Wiki
|Hook name||playerBoughtFood(Player ply, table food, Entity spawnedfood, number cost)|
|Called when a player bought food.|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtFood]playerBoughtFood hook[/url][/b]|
- ply (Player)
- food (table)
- spawnedfood (Entity)
- cost (number)
The player who bought food.
Entity of spawned food.
How much player paid.
This hook does not accept return values. You can still return a value to override the default implementation of this hook.