Garry's Mod Wiki

GM:EndEntityDriving

  GM:EndEntityDriving( Entity ent, Player ply )

Description

Called right before an entity stops driving. Overriding this hook will cause it to not call drive.End and the player will not stop driving.

Arguments

1 Entity ent
The entity being driven
2 Player ply
The player driving the entity