From Official DarkRP Wiki
|Hook name||playerBuyVehicle(Player ply, Entity ent)|
|When a player purchases a vehicle.|
|Returns:||boolean allowed, string reason, boolean surpress|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBuyVehicle]playerBuyVehicle hook[/url][/b]|
- allowed (boolean)
- reason (string)
- surpress (boolean)
Whether the player is allowed to buy the vehicle.
The reason why a player is not allowed to buy the vehicle, if applicable.
Whether to show the reason in a notification to the player, return true here to surpress the message.