Hooks/Server/playerKeysSold

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name playerKeysSold(Player ply, Player ent, number GiveMoneyBack)
Description:
When a player sold a door or vehicle.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerKeysSold]playerKeysSold hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player who sold the door or vehicle.

  3. ent (Player)
  4. The entity that was sold.

  5. GiveMoneyBack (number)
  6. The amount of money refunded to the player

Return values

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