Garry's Mod Wiki

Player:SetDrivingEntity

Player:SetDrivingEntity( Entity drivingEntity = NULL, number drivingMode )

Description

This is used internally - although you're able to use it you probably shouldn't.

Sets the driving entity and driving mode.

Use drive.PlayerStartDriving instead, see Entity Driving.

Arguments

1 Entity drivingEntity = NULL
The entity the player should drive.
2 number drivingMode
The driving mode index.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 12