Click or drag to resize

BasePlayerSpectateVehicle Method (BaseVehicle)

Sets this BasePlayer to spectate another vehicle, i.e. see what its driver sees.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public virtual void SpectateVehicle(
	BaseVehicle targetVehicle
)

Parameters

targetVehicle
Type: SampSharp.GameMode.WorldBaseVehicle
The vehicle to spectate.
Remarks
Order is CRITICAL! Ensure that you use ToggleSpectating(Boolean) before SpectateVehicle(BaseVehicle, SpectateMode).
See Also