Garry's Mod Wiki

Garry's Mod Wiki

  Player:Freeze( boolean frozen = false )

Description

Freeze the player. Frozen players cannot move, look around, or attack. Key bindings are still called. Similar to Player:Lock but the player can still take damage.

Adds or removes the FL_FROZEN flag from the player.

Frozen bots will still be able to look around.

Arguments

1 boolean frozen = false
Whether the player should be frozen.

Example

Freezes all players

for _, ply in ipairs( player.GetAll() ) do ply:Freeze( true ) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...