From DarkRP
Jump to navigation Jump to search
Hook name playerSellVehicle(Player ply, Entity ent)
When a player is about to sell a vehicle.
Returns: boolean allowed, string reason
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerSellVehicle]playerSellVehicle hook[/url][/b]


  1. ply (Player)
  2. The player who is to sell the vehicle.

  3. ent (Entity)
  4. The vehicle.

Return values[edit]

  1. allowed (boolean)
  2. Whether the player is allowed to sell the vehicle.

  3. reason (string)
  4. The reason why a player is not allowed to sell the vehicle, if applicable.