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