Garry's Mod Wiki

Garry's Mod Wiki

  Player:EnterVehicle( Vehicle vehicle )

Description

Force puts the player into a specified vehicle. This does not bypass GM:CanPlayerEnterVehicle.

Arguments

1 Vehicle vehicle
Vehicle the player will enter

Example

Enters the player into the vehicle they're looking at

local jeep = Entity( 1 ):GetEyeTrace().Entity Entity( 1 ):EnterVehicle( jeep )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...