Garry's Mod Wiki


  Player:Spectate( number mode )


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

Using this function while spectating the player's own ragdoll will cause it to teleport it to the center of the map. You will spectate the ragdoll even after it's been teleported. This only happens on the client of the player spectating the ragdoll and is purely client-side.

Issue Tracker: 4608


1 number mode
Spectate mode, see Enums/OBS_MODE.