From Official DarkRP Wiki
Jump to navigation Jump to search
Hook name playerBoughtVehicle(Player ply, Entity ent, number cost)
Called when a player has purchased a vehicle.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtVehicle]playerBoughtVehicle hook[/url][/b]


  1. ply (Player)
  2. The player who has purchased the vehicle.

  3. ent (Entity)
  4. The purchased vehicle.

  5. cost (number)
  6. The cost of the purchased vehicle.

Return values

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