From DarkRP
Jump to navigation Jump to search
Hook name playerKeysSold(Player ply, Entity ent, number GiveMoneyBack)
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]


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

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

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

Return values[edit]

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