Click or drag to resize

PlayerSpectatePlayer Method (EntityId, SpectateMode)

Makes this player spectate (watch) another player.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void SpectatePlayer(
	EntityId targetPlayer,
	SpectateMode mode
)

Parameters

targetPlayer
Type: SampSharp.EntitiesEntityId
The Player that should be spectated.
mode
Type: SampSharp.Entities.SAMPSpectateMode
The mode to spectate with.
Remarks
Order is CRITICAL! Ensure that you use ToggleSpectating(Boolean) before SpectatePlayer(EntityId, SpectateMode).
See Also