Garry's Mod Wiki

Player:EnterVehicle

void 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: 30ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 11
Render Body 0
Render Sidebar 12