Click or drag to resize

BasePlayerToggleSpectating Method

Toggle this BasePlayer's spectate mode.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public virtual 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