Click or drag to resize

PlayerToggleSpectating Method

Toggle this player's spectate mode.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void ToggleSpectating(
	bool toggle
)

Parameters

toggle
Type: SystemBoolean
True to enable spectating and False to disable.
Remarks
When the spectating is turned off, OnPlayerSpawn will automatically be called.
See Also