Garry's Mod Wiki


  Vector, Angle, number Vehicle:GetVehicleViewPosition( number role = 0 )


Returns the view position and forward angle of a given passenger seat.


1 number role = 0
The passenger role. 0 is the driver. This parameter seems to be ignored by the game engine and is therefore optional.


1 Vector
The view position, will be 0, 0, 0 on failure
2 Angle
The view angles, will be 0, 0, 0 on failure
3 number
The field of view, will be 0 on failure