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.