Garry's Mod Wiki

Player:ExitVehicle

  Player:ExitVehicle()

Description

Makes the player exit the vehicle if they're in one.

Example

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

Entity( 1 ):ExitVehicle()
Output: Player 1 will exit the the vehicle that they're currently in.