Garry's Mod Wiki


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


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.


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

Page Links

Special Pages



Render Time: 24ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 10
Render Body 0
Render Sidebar 7