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-local+709673996c0cc3c0733358a87691d1009326afa7
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