Garry's Mod Wiki

Player:Lock

  Player:Lock()

Description

Stops a player from using any inputs, such as moving, turning, or attacking. Key binds are still called. Similar to Player:Freeze but the player takes no damage.

Adds the FL_FROZEN and FL_GODMODE flags to the player.

Frozen bots will still be able to look around.