Click or drag to resize

PlayerSpectateVehicle Method (EntityId, SpectateMode)

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

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public void SpectateVehicle(
	EntityId targetVehicle,
	SpectateMode mode
)

Parameters

targetVehicle
Type: SampSharp.EntitiesEntityId
The vehicle to spectate.
mode
Type: SampSharp.Entities.SAMPSpectateMode
Spectate mode.
Remarks
Order is CRITICAL! Ensure that you use ToggleSpectating(Boolean) before SpectateVehicle(EntityId, SpectateMode).
See Also