SampSharp
SampSharp
SampSharp.Entities.SAMP
Player Class
Player Methods
SpectatePlayer Method
SpectatePlayer Method (EntityId)
SpectatePlayer Method (EntityId, SpectateMode)
Player
SpectatePlayer 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#
Copy
public
void
SpectatePlayer
(
EntityId
targetPlayer
,
SpectateMode
mode
)
Parameters
targetPlayer
Type:
SampSharp.Entities
EntityId
The Player that should be spectated.
mode
Type:
SampSharp.Entities.SAMP
SpectateMode
The mode to spectate with.
Remarks
Order is CRITICAL! Ensure that you use
ToggleSpectating(Boolean)
before
SpectatePlayer(EntityId, SpectateMode)
.
See Also
Reference
Player Class
SpectatePlayer Overload
SampSharp.Entities.SAMP Namespace