Garry's Mod Wiki

Player:ExitVehicle

  Player:ExitVehicle()

Description

Forces the player to exit the vehicle if they're in one.

This function will bypass GM:CanExitVehicle. See also GM:PlayerLeaveVehicle

Example

Makes player 1 leave their vehicle if they're in one.

Output: Player 1 will exit the the vehicle that they're currently in.