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