Hooks/Server/playerSellVehicle

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

Parameters[edit]

  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.