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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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