Garry's Mod Wiki

Vehicle:GetPassenger

  Entity Vehicle:GetPassenger( number passenger )

Description

Gets the passenger of the vehicle, returns NULL if no drivers is present.

Arguments

1 number passenger
The index of the passenger

Returns

1 Entity
The passenger