Called when a person attempts to use drive by.
Used in: VCMod Main addon.
Server GM:VC_canEnterDriveBy(Entity ply, Entity seat, Entity ent)
1. Entity ply; Player
Player who is doing it.
2. Entity seat; Seat
Passenger seat that the player is in.
3. Entity ent; Entity
The main vehicle entity.
1. Boolean If it should allow player to pick do this or not.
hook.Add("VC_canEnterDriveBy", "VC_canEnterDriveBy", function(ply, seat, ent) print("Player :"..ply:Nick().." is attempting to go into drive by mode, not allowing.") local can = false return can end)