Garry's Mod Wiki

Player:Spectate

  Player:Spectate( number mode )

Description

Starts spectate mode for given player. This will also affect the players movetype in some cases.

Player:UnSpectate should be used to remove the player from spectate mode, or call this with OBS_MODE_NONE.

The player must be respawned, otherwise they will be able to walk through doors and become invincible. This will be fixed in a future update.

Arguments

1 number with OBS_MODE enum mode
Spectate mode, see OBS_MODE enum.