Player/EnterVehicle

From Garry's Mod
Jump to: navigation, search
 Player:EnterVehicle( )

Contents

Description

Enters the player into specified vehicle

Arguments

Vehicle vehicle

Vehicle the player will enter

Examples

Example

Enters the player into the vehicle they're looking at

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


Personal tools
Navigation