Called after a player has purchased a vehicle using VCMod car dealer.
Used in: VCMod Main addon.
Server GM:VC_CD_playerPurchasedVehicle(Entity ply, String ID, Integer price, Entity NPC)
1. Entity ply; Player
Player who used the Car Dealer to purchase this vehicle.
2. String ID; Vehicle ID
VCMod car dealer vehicle ID.
3. Integer price; Transaction price
Vehicle has been purchased for this amount.
4. Entity NPC; VCMod Car Dealer
The NPC which handelled the transaction.
hook.Add("VC_CD_playerPurchasedVehicle", "CustomHookName", function(ply, ID, price, NPC) print(ply:Nick().." has purchased a vehicle for "..price..".") end)