Called when a person attempts to use the test drive function of the car dealer.
Used in: VCMod Main addon.
Server GM:VC_CD_canTestDrive(Entity ply, Entity npc, String id)
1. Entity ply; Player
Player who is doing it.
2. Entity npc; Car Dealer
The car dealer NPC.
3. String id; Vehicle ID
The VCMod ID for this specific vehicle.
1. Boolean If it should allow player to pick do this or not.
hook.Add("VC_CD_canTestDrive", "VC_CD_canTestDrive", function(ply, npc, id) print("Player :"..ply:Nick().." is attempting to test drive, not allowing.") local can = false return can end)