Garry's Mod Wiki

Player:EnterVehicle

Player:EnterVehicle( Vehicle vehicle )

Description

Enters the player into specified vehicle

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 )

Page Links


Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 6