Hooks/Server/playerBoughtCustomEntity
Hook | |
Hook name | playerBoughtCustomEntity(Player ply, table entityTable, Entity ent, number price) |
Description: | |
Called when a player bought an entity (like a money printer or a gun lab). | |
Returns: | nil |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtCustomEntity]playerBoughtCustomEntity hook[/url][/b] |
Parameters[edit]
- ply (Player)
- entityTable (table)
- ent (Entity)
- price (number)
The player.
The table of the custom entity (from the DarkRPEntities table).
The spawned entity.
The eventual price.
Return values[edit]
This hook does not accept return values. You can still return a value to override the default implementation of this hook.