Garry's Mod Wiki

GM:StartEntityDriving

  GM:StartEntityDriving( Entity ent, Player ply )

Description

Called right before an entity starts driving. Overriding this hook will cause it to not call drive.Start and the player will not begin driving the entity.

Arguments

1 Entity ent
The entity that is going to be driven
2 Player ply
The player that is going to drive the entity