Garry's Mod Wiki

Player:Spectate

  Player:Spectate( number mode )

Description

The player must be respawned, otherwise they will be able to walk through doors and become invincible.

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

Arguments

1 number mode
Spectate mode, see OBS_MODE enum.