PlayerToggleSpectating Method |
Toggle this player's spectate mode.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntaxpublic 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