Hooks/Server/playerSellVehicle

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name playerSellVehicle(Player ply, Entity ent)
Description:
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]

Parameters

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

  3. ent (Entity)
  4. The vehicle.

Return values

  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.