Hooks/Server/playerBoughtVehicle

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

Parameters[edit]

  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[edit]

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